Coding agents 69
Claude Code, Codex CLI and Gemini CLI: setup, settings and the errors you hit, with the exact messages.
- Gemini CLI mcp add --exclude-tools Ignores Comma Lists
Gemini CLI 0.71.1 saves comma-separated tool names as one entry. Check user and project settings and fix the arrays while preserving existing server options.
Gemini CLI 0.71.1 · node:24-slim · Node 24.22.3 - Claude Code Error: Cannot use both --append-subagent-system-prompt and --append-subagent-system-prompt-file. Please use only one.
Fix the Claude Code subagent prompt flag conflict by keeping inline text or a file. To use fixed and per-run instructions, combine them in one file.
Claude Code 2.1.302 · 2026-11 - Claude Code Error: --json-schema is not a valid JSON Schema
Trace a Claude Code --json-schema failure to the type value. Compare the diagnostic with the earlier checks for malformed JSON and a top-level array.
Linux · Claude Code 2.1.330 · 2026-11 - Claude Code Error: Invalid --agents configuration:
Read the second line of an invalid --agents error to locate broken JSON, a missing prompt field, or a leading hyphen in the agent name.
Linux · Claude Code 2.1.330 · 2026-11 - Claude Code User-Agent email report: which version do you have?
Check which Claude Code version you run, when it started asking before sending your account email, and which tool calls later versions refuse.
Claude Code official docs and changelog · 2026-11 - The browser access host is unavailable in Codex
Check where Codex shows this browser access error. Test the desktop browser, the Chrome extension, and website permissions before checking reported fixes.
OpenAI Codex documentation · openai/codex issues #57641 and #56928 · 2026-11 - Claude Code "Your organization's settings need an update" fix
Fix Claude Code "Your organization's settings need an update" and "Couldn't load your organization's settings": what you do and what your admin fixes.
Claude Code official docs · 2026-11 - Claude Code "Sign in again to take your previous account or API key off the config file"
Claude Code warns your previous account or API key may still be in ~/.claude.json after a login or logout. Re-run claude auth login or logout to retry the save.
Claude Code official docs · 2026-11 - Claude Code DISABLE_TELEMETRY Also Turns Off Feature Flags
DISABLE_TELEMETRY stops more than analytics: it also stops feature-flag fetching. Four variables do this and 16 features need it. Find which one is set.
Claude Code official docs (env-vars, remote-control) · 2026-11 - Claude Code Your apiKeyHelper script is failing
Claude Code ran your apiKeyHelper command and got no key back. Tell the three failure types apart with /status, then fix the script to print only the key.
Claude Code official docs · 2026-11 - Fix Claude Code "Could not resolve authentication method"
"Could not resolve authentication method" in a Claude Code background or cloud session means the worker has no credential. Check version, env, supervisor.
Claude Code official docs · Node 24.22.3 · @anthropic-ai/sdk 0.137.0 and 1.8.0 (Docker) · 2026-11 - Claude Code subagentStatusLine setting removed (2.1.323)
Subagent rows back to the default look? Claude Code 2.1.323 removed subagentStatusLine. Find the leftover key, decide whether to delete it.
Claude Code changelog (CHANGELOG, as of 2.1.325) · official statusline and settings docs · 2026-11 - Claude Code "the prompt to confirm went unanswered"
Claude Code "the prompt to confirm went unanswered": the Fable usage-credits prompt timed out. Resend and answer it where the session runs, or /model.
Claude Code official docs · 2026-11 - Fix Claude Code "spend limit reached" (gateway cap)
Lowercase "spend limit reached" in Claude Code is a cap set by your gateway operator. A date means it resets at 00:00 UTC that day; no date, ask the operator.
Claude Code official docs · 2026-11 - Claude Code "Agent terminated early due to an API error" fix
Claude Code shows "Agent terminated early due to an API error" when a subagent's request fails. The text after the colon is the cause; match it, fix it, retry.
Claude Code official docs · v2.1.199 or later · 2026-11 - Fix Claude Code "Couldn't save your login"
Claude Code "Couldn't save your login" means sign-in worked but the credential store rejected the write. On macOS, unlock the login keychain, then run /login.
Claude Code official docs · 2026-11 - Claude Code settings.local.json secrets from "Don't ask again"
Find tokens Don't ask again saved in Claude Code settings.local.json, check if git ignores or tracks the file or its history, and rotate keys first if exposed.
Ubuntu 24.04 · git 2.43.0 · npm 10.9.9 (Docker) · Claude Code official docs · 2026-11 - Gemini CLI Is Not Loading Your GEMINI.md
GEMINI.md rules ignored? List the files Gemini CLI loaded with /memory list, then check folder trust, the file name, the .git boundary and context.fileName.
Gemini CLI 0.64.0 · Node.js 24.22 · Ubuntu 24.04 - Claude Code Forgets Rules in Long Chats: /compact vs /clear
When a long session loses early instructions, check usage with /context, pick /compact or /clear, and see what survives compaction and what drops out.
Claude Code 2.1.302 · official docs as of 2026-10 - Switch Codex CLI Model and Reasoning Effort with Profiles
Create <name>.config.toml profile files in Codex CLI 0.163.0, switch between fast and deep setups with --profile, and see the legacy error and override order.
Codex CLI 0.163.0 · Ubuntu 24.04 · Node 24 - Fix Claude Code "You've hit your monthly spend limit"
Claude Code shows "You've hit your monthly spend limit" when usage credits hit a spend cap. Read the wording to see whose limit it is, then raise it or wait.
Claude Code official docs · 2026-11 - How to check Codex and ChatGPT usage limits and credits
Where to see remaining Codex and ChatGPT usage, reset time and credit balance, the order usage and credits are spent, and what to check before auto-reload.
ChatGPT and Codex official docs · 2026-11 - Gemini CLI "High memory usage detected" warning: what to do
Gemini CLI's High memory usage detected warning means the process passed 7 GiB. It shows once: save your work, then /compress, /clear and trim big PDFs.
Gemini CLI 0.62.0 and main source · 2026-11 - Fix Claude Code "Connection lost before a response was produced"
Claude Code "Connection lost before a response was produced": auto-retries failed after a drop between thinking and output. Resend, then check the network.
Claude Code official docs · 2026-10 - Claude Code skill not showing up or never used
When a project skill is missing from the list or Claude never calls it, check the file name, location, frontmatter and invocation settings in this order.
Claude Code 2.1.302 · Ubuntu 24.04 - Fix Claude Code "The response above may be incomplete"
Claude Code "The response above may be incomplete" means the stream broke mid-response; finished blocks were kept. The prefix names the cause. Send continue.
Claude Code official docs · 2026-10 - Fix Claude Code API Error 400: tool use concurrency issues
Claude Code API Error 400 tool use concurrency issues means tool_use and tool_result blocks in history no longer match. Check your version, then /rewind.
Claude Code official docs · 2026-10 - Fix Claude Code "Auto-update failed · Run claude doctor"
Claude Code Auto-update failed · Run claude doctor means a background update did not install. Run claude update in your shell to see the real error.
curl 8.5 · Claude Code official docs · 2026-10 - Fix GitHub Copilot "Sorry, you have been rate-limited"
Copilot "Sorry, you have been rate-limited" is a short, 5-hour, or weekly limit. Tell them apart by error code, then wait or switch to Auto.
GitHub Copilot official docs and community discussions · 2026-10 - Fix Claude Code "API Error: 401 OAuth token has expired"
Claude Code 401 OAuth token has expired means the saved login failed to refresh. Run /login, then check for a stale CLAUDE_CODE_OAUTH_TOKEN variable.
Claude Code official docs · 2026-10 - Fix Codex Windows "setup refresh had errors" (os error 32)
Codex on Windows: setup refresh had errors (os error 32) is a sandbox ACL bug in app 26.1002. Update the app to 26.1007.21434 and the CLI to 0.163.0+.
Codex official docs, release notes and issue · 2026-10 - Fix "Claude Code process exited with code 1" in VS Code
"Claude Code process exited with code 1" in VS Code hides the real cause. Find the actual error with Show Logs and by running claude in a terminal.
Claude Code official docs · 2026-10 - Fix Claude Code "Unable to connect to API" errors
Claude Code Unable to connect to API (ENOTFOUND, ECONNREFUSED) means no connection to the API. Run curl -I in the same shell to split DNS, proxy and VPN causes.
curl 8.17.0 (Docker) · Claude Code official docs · 2026-10 - Check why Claude Code is not following your CLAUDE.md
When CLAUDE.md rules seem ignored, check that the file loaded first. Then test lazy loading of subdirectory files and claudeMdExcludes with claude -p.
Claude Code 2.1.302 · Ubuntu 24.04 · 2026-10 - Fix Claude Code "AWS credentials expired or invalid"
Claude Code AWS credentials expired or invalid means an expired AWS token. Refresh the credential you use (SSO or keys), then run aws sts get-caller-identity.
Claude Code official docs · 2026-10 - Fix Claude Code "image dimensions exceed max allowed size"
Claude Code 400 image dimensions exceed max allowed size means an image is over the pixel limit. Resize under 2000px and /rewind past it in history.
Ubuntu 24.04 · ImageMagick 6.9.12 (Docker) · Claude Code official docs · 2026-10 - Codex Web "Unable to determine project root for task" error
Codex Web "Unable to determine project root for task" is an open bug with no fix yet. Check the environment, then use the desktop app or CLI.
Codex Web · official repo issue #49497 · 2026-10 - Gemini CLI: "JavaScript heap out of memory" crash
Gemini CLI dies with JavaScript heap out of memory after long sessions as history piles up in the heap. Delay it with /compress, /clear and .geminiignore.
Node.js 22.23.4 (Docker) · Gemini CLI official docs and repo · 2026-10 - Fix Claude Code "API Error: 500 Internal server error"
Claude Code API Error 500 Internal server error is a temporary API-side failure. Check the status page, type try again, and test tool search behind a gateway.
Claude Code official docs · curl 8.5 · jq 1.7 · 2026-10 - Claude Code "Stream idle timeout - no chunks received" fix
Claude Code Stream idle timeout - no chunks received: a watchdog closed a stalled stream. Confirm in the debug log, raise CLAUDE_STREAM_IDLE_TIMEOUT_MS.
Claude Code official docs · 2026-10 - Fix Codex app "Cannot serialize value" error starting chat
Codex app "Cannot serialize value" is a Worktree bug in 26.1016.51333. Update to 26.1016.61520+ (macOS) or 62342+ (Windows); use Local mode meanwhile.
Codex desktop app · official repo issue #55744 · 2026-10 - Fix Claude Code "Prompt is too long" (Context limit reached)
Claude Code Prompt is too long or Context limit reached means the context window is full. Run /compact, or /clear and resend less for a single exchange.
Claude Code official docs · 2026-10 - Claude Code "ENOSPC: no space left on device, mkdir" fix
Claude Code ENOSPC: no space left on device, mkdir means the temp volume is full. Check df -h and df -i, then free it or set CLAUDE_CODE_TMPDIR.
Ubuntu 24.04 (Docker · tmpfs) · Claude Code official docs · 2026-10 - Fix "fatal: unable to access 'NUL'" in Gemini CLI on Windows
Gemini CLI on Windows failing with fatal: unable to access 'NUL' is a Git for Windows 2.56.0 regression. Update Git to 2.56.0.2 or later.
Git for Windows 2.56.0.2 release notes and official issues · 2026-10 - Fix Claude Code "No response from API" (API_TIMEOUT_MS)
Claude Code No response from API means response headers never arrived in time. Resend once; if it repeats, suspect a proxy and raise API_TIMEOUT_MS.
Claude Code official docs · 2026-10 - claude -p: "Input must be provided either through stdin" fix
claude -p Input must be provided either through stdin or as a prompt argument means the prompt was empty. Check variables and pipes before calling claude.
Ubuntu 24.04 (Docker) · bash 5.2.21 · Claude Code official docs · 2026-10 - Fix Claude Code response exceeded 32000 output token maximum
Claude Code "exceeded the 32000 output token maximum" means a reply hit its output cap and was cut off. Reply continue, split the work, or raise the variable.
Claude Code official docs · 2026-10 - Fix Claude Code "auto mode classifier gave no verdict" error
Claude Code auto mode "classifier gave no verdict": the server-side safety check failed. Retry once, then try /compact or CLAUDE_CODE_AUTO_MODE_SERVER=0.
Claude Code 2.1.302 (command existence only) · official docs · 2026-10 - Fix Gemini CLI "Untrusted Command Flags Detected" in YOLO
Gemini CLI --yolo stopping on "Untrusted Command Flags Detected" for git diff or ls is a false positive in 0.62-0.63. Upgrade to 0.65.0 or later.
Gemini CLI 0.65.0 (npm release checked only) · official repo issues and releases · 2026-10 - Fix Codex "Failed to create unified exec process" in WSL
Codex Windows app in WSL mode fails every command with "Failed to create unified exec process". Update to 26.1013.31256+; a community workaround exists.
Codex Windows app · WSL2 · per issue #49731 · 2026-10 - Fix Claude Code "Autocompact is thrashing" error
"Autocompact is thrashing" means compaction worked but a large file or tool output refilled the context at once. Official recovery steps and a /context check.
Claude Code 2.1.302 (option existence only) · official docs · 2026-10 - Copilot retired Claude Opus 4.8, Opus 5, GPT-5.6 Terra on Nov 16
Copilot retired Claude Opus 4.8, Opus 5 and GPT-5.6 Terra on Nov 16. See the updated alternatives and the Opus 4.8 exception for annual individual plans.
GitHub official changelog (2026-10-15 notice) and Copilot supported models docs (2026-12) - Fix Codex CLI "exceeded retry limit, last status: 429"
When Codex CLI stops with "exceeded retry limit, last status: 429", tell a plan usage limit from an API rate limit, then wait and tune retries.
Codex CLI 0.162.1 · OpenAI official docs · 2026-10 - Fix Copilot "could not connect to server" (ETIMEDOUT)
When Copilot in VS Code fails with "Extension activation failed" and ETIMEDOUT, use curl to split the problem, then check proxy, login and certificates.
GitHub Copilot official docs · curl test · 2026-10 - Gemini CLI login: GOOGLE_CLOUD_PROJECT and "invalid argument"
Gemini CLI login wants GOOGLE_CLOUD_PROJECT or says "invalid argument"? Check your account type first: personal free and Google One moved to Antigravity.
Gemini CLI 0.59.0 bundled docs · official docs · 2026-10 - Fix Cursor "Connection failed ... check your VPN"
When Cursor says "Connection failed ... check your internet connection or VPN", run Network Diagnostics, then check HTTP/2, VPN and the domains it needs.
Cursor official docs and forum replies · 2026-10 - Fix Copilot "exceeded your premium request allowance"
When Copilot says you exceeded your premium request allowance, keep working on included models or check your budget to allow extra requests, per GitHub's docs.
GitHub Copilot official docs · 2026-10 - Codex CLI "stream disconnected before completion": what to try
When Codex CLI gives up after "Reconnecting... 5/5" with a stream disconnect, narrow the cause by target, network, transport and retries. No fix is confirmed.
Codex CLI 0.162.1 · OpenAI official docs and repo issues · 2026-10 - Pass arguments to a Claude Code custom slash command
Put $ARGUMENTS, $0, $1 or named arguments in a .claude/commands markdown file, then check how quoted values and missing arguments are substituted.
Claude Code 2.1.302 · Ubuntu 24.04 - Codex approval_policy and sandbox_mode: fix the settings
Check what Codex CLI's approval_policy and sandbox_mode accept today, fix the untrusted error, replace --full-auto, and cut down per-command approval prompts.
Codex CLI 0.163.0 · Ubuntu 24.04 · Node 24 - Fix Codex CLI "exceeded retry limit, last status: 401"
When Codex CLI reconnects five times and ends in 401 Unauthorized, check which credentials it is using, then log out and sign in again in the right order.
Codex CLI 0.163.0 · Ubuntu 24.04 · Node 24 (tested without logging in) - Give Codex your repository rules with AGENTS.md
Put an AGENTS.md in your repository so Codex reads build commands and rules first. Covers the read order, AGENTS.override.md and the 32 KiB size limit.
Codex CLI 0.163.0 · Ubuntu 24.04 · official docs as of 2026-10 - Show the model and context usage in the Claude Code status line
Build a status line that shows the model name and context usage below the prompt: stdin JSON, the settings.json entry, null handling and re-run triggers.
Claude Code 2.1.302 · Ubuntu 24.04 · bash 5.2 · jq 1.7 · script run directly, on-screen behavior per the official docs - Claude Code 429 and Rate Limit Errors: Usage Limit or Outage?
Tell a usage limit from a throttle, a key problem or an outage by the exact message: `Request rejected (429)`, `You've hit your session limit` and more.
Claude Code official docs · 2026-10 (installed version 2.1.302) - Fix common Claude Code errors by message
Match a Claude Code error — Invalid API key, Not logged in, 529, connection refused, certificate errors — to its cause and fix it with env vars and settings.
Claude Code 2.1.302 · Ubuntu 24.04 - Fix Gemini CLI 429 "No capacity available for model"
Tell a Gemini CLI 429 quota error from a server capacity error by its message, then switch models with /model, move to an API key, and set a retry interval.
Gemini CLI 0.64.0 bundled source · official docs · 2026-10 - Fix Gemini CLI install and login errors
Install Gemini CLI, check the version, and work through common login blockers: auth errors, the org-subscription check, CI_ variables, and debug mode.
Gemini CLI 0.64.0 · Node.js 24.22 · Ubuntu 24.04 - Where Gemini CLI reads settings.json and which file wins
Find where Gemini CLI reads settings.json, which of the user, project and system files overrides which, and why a project's settings can be ignored entirely.
Gemini CLI 0.64.0 · Ubuntu 24.04 · Node 24 - /agents wizard has been removed: subagent not listed or called
After "The /agents wizard has been removed": create subagents by asking Claude or writing a file, and what to check if a .claude/agents subagent is not listed.
Claude Code 2.1.251 · 2.1.302 · 2026-10