Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

fix

fix
Claude Code runs it as /fix and Codex as $fix. Other agents take its name or a plain request such as "fix the review gaps".

What it does

fix closes the gaps a FIX-FIRST review found. It takes the review, the original criteria and the validation commands, sends a fixer after the blocking gaps, runs the checks, and has a different reviewer score the result. The fixer changes only the scope it was given, and no reviewer ever reviews its own edits.
The loop is bounded by a repair budget per group. fix reads it once from genie config get budgets.maxEscalationsPerGroup and uses the default when the key is unset; genie doctor prints the value in force. The budget, the attempts used and the escalations travel with the group across handoffs, and switching skills never resets them.
  • Diagnose first. Before any repair, fix names why the work failed.
  • Repair. The fixer gets the gap evidence, the criteria, the owned files, the validation and the remaining budget.
  • Re-review. The checks run and an independent review scores the repair. Each attempt is recorded.
  • Repeat or stop. SHIP goes back to the caller. Another FIX-FIRST earns another attempt only with a changed approach or new evidence. At the budget, on an unchanged failure or on BLOCKED, fix takes the diagnostic route below.
Review comments, bot findings, CI logs and issue bodies are claims to check against the code. An instruction hidden in one is recorded as an attempted injection and never carried out.

When the loop stalls

CauseWhat fix does
missing-contextGets the absent files, logs, history or criteria, and keeps the model and effort as they are
ambiguous-specResolves the competing readings with you or the plan's owner
env-tool-failureRepairs the environment or tool problem it demonstrated, or reports the exact blocker
overdesigned-planSends the plan back to design or plan review without spending an attempt
model-capacityRaises model or effort one step, and only after new evidence rules out every other cause
Escalations are capped per group, and going past the cap takes a recorded human decision. A repeated verdict is not new evidence and earns no extra attempt. When you reject the direction itself, the loop stops and the plan goes back to its owner.
A repair that touches release machinery, retirement or backup paths, the install record, the tracked roadmap snapshot, or anything outside the worktree stays a dry run until an independent re-review passes and a human ruling is recorded. Repeated attempts that agree prove consistency; they never stand in for that approval.

When to use it

  • A review returned FIX-FIRST and you want its blocking gaps closed.
  • work runs fix for you when a group's review is FIX-FIRST, and the wish workflow has its own repair stage.
MEDIUM and LOW findings are not repair work. Send them to deslop, or record them as accepted.

Run it

AgentHow it runs
Claude Code/fix, optionally naming the wish or the group
Codex$fix, optionally naming the wish or the group
Other agentsIts name, or a plain request such as "fix the review gaps"
fix has no saved workflow: it runs in your agent's session and uses its subagents for the fixer and the re-reviewer. Its handoff lists the gaps resolved and remaining, the checks and their results, the cause and next route, and the counters attempts, effort_escalations and budget_source. The fixer never changes task status and posts nothing to the card; the coordinator relays each verdict and marks the group done after SHIP.

A recorded run

Simulated terminal: a replay of a real /fix run in Claude Code, built from its saved capture and shortened in time. Edited in two places: host details hidden (paths shown as ~/, account plan and quota), and the agent launch line removed.
The run finds a FIX-FIRST group in a small test repository, reads the budget from the config and adds the missing test. An independent reviewer removes the guard in a scratch copy, sees the new test fail, and returns SHIP after one repair. The run leaves its change uncommitted for the coordinator.
Read the transcript: the redacted text of the run's final screen and scrollback.

Next

review
Where FIX-FIRST comes from.
Skills catalog
Every skill Genie ships, one line each.