Common issues with Forge health checks, OpenRouter config, fallback ladder behavior, and AGENTS.md — with fixes.
Cause: The Forge binary was installed but your shell's PATH doesn't include the install directory. This is the most common post-install issue.
Fix:
which forge or ls ~/.forge/bin/forge~/.zshrc or ~/.bashrc:Cause: The Sidekick plugin was installed in Claude Code but the Forge binary itself was never installed on your machine. Sidekick needs both the plugin and the Forge binary.
Fix: Follow the full install sequence in Getting Started → Installation. Install the Forge binary first, then install the Sidekick plugin.
/forge health check. This verifies the binary is reachable, credentials are configured, and OpenRouter is responding before you delegate any task.Cause: Invalid API key, no network access, or OpenRouter service issue.
Fix:
~/forge/.credentials.json under api_key~/forge/.forge.tomlCause: The forge/forge-code model is temporarily unavailable or your account tier doesn't include it.
Fix: Check openrouter.ai/models for availability. If unavailable, wait and retry — ForgeCode has high uptime.
Cause: .forge/skills/ directory is missing or corrupted.
Fix: Reinstall Sidekick to restore bootstrap skills:
Cause: ~/forge/.credentials.json may not have been written correctly.
Fix: Check if ~/forge/.credentials.json exists and contains an api_key field. If not, follow the STEP 0A setup in skills/forge.md to recreate it.
Fix: Edit .forge.toml and set model = "forge/forge-code" explicitly. Other models may not have Forge's agentic coding capabilities.
~/forge/.credentials.json (global, never in the repo). The project-root .forge.toml contains only compaction settings and is gitignored automatically.Cause: Your OpenRouter account has hit its per-minute or per-day request limit. Free tier accounts have much lower limits than paid accounts.
Symptoms: Forge returns a 429 error mid-task, or the health check fails with a rate limit message.
Fix:
/forge:deactivate, wait a minute, then reactivate and retry.Cause: Your OpenRouter account balance is zero or below the minimum required to run the forge/forge-code model. This model is not on the free tier.
Symptoms: Health check passes (credentials valid) but the first task delegation immediately returns 402.
Fix:
/forge — the health check will confirm the model is now accessibleCause: Forge entered a loop — typically trying the same fix repeatedly, or oscillating between two states. This is a known edge case in agentic coding systems when the DESIRED STATE is ambiguous or the SUCCESS CRITERIA is underspecified.
Symptoms: Forge output shows the same file being edited multiple times with no net change, or the same error appearing after each attempt.
Fix:
Cause: Forge is trying to fix a failing test but the test itself has a bug, or the test expects behaviour that conflicts with what's in AGENTS.md.
Fix: Tell Claude: "The test has a bug, not the implementation." Claude will inspect both, fix the root cause, and update AGENTS.md with the correct testing pattern.
Cause: The failure signal wasn't in one of the three recognized patterns (error output, wrong output, stall).
Fix: Describe to Claude what went wrong — "Forge's output doesn't satisfy the success criteria because…". Claude will manually trigger the fallback ladder from the appropriate level.
This is expected — L1 is a single retry with a reframed prompt. If L1 fails, the ladder escalates to L2 automatically. If you see Claude not escalating after L1 fails, say "that's still wrong, escalate to L2".
Fix: Ask Claude explicitly: "Please produce a DEBRIEF for this L3 takeover." The DEBRIEF (TASK / FORGE_FAILURE / LEARNED / AGENTS_UPDATE) should always follow an L3 takeover.
Cause: The deduplication check found a semantically similar entry already exists.
This is correct behavior — the dedup prevents duplicate entries. If you believe the new instruction is genuinely different, ask Claude to add it with explicit phrasing that distinguishes it from existing entries.
Fix: Edit ./AGENTS.md directly — it's a plain Markdown file. Remove incorrect entries and add your project's actual conventions. Claude will use your edits on the next /forge invocation.
The global AGENTS.md at ~/forge/AGENTS.md is optional. If it doesn't exist, Claude creates it on the first cross-session write. No action needed.
Fix: Deactivate and reactivate Forge:
After L3, Claude returns to delegation mode automatically for the next task. If Claude seems to be implementing directly instead of delegating, say "re-enter Forge delegation mode" — it will reload the delegation protocol from SKILL.md.
To do a clean reinstall of Sidekick (preserves AGENTS.md and session logs):
To fully reset your API credentials (e.g. to change your API key):