fix

fix is a command for Claude Code from adamjgmiller/adamsreview. It costs 36 tokens per session (1,936 once invoked), scanned A, original, MIT.

A command that applies selected automatic fixes from a code-review report, then reviews the changed files and commits fixes that remain valid. It can group all fixes into one commit or create separate commits for each fix group.

In plain words
What is it for?
Use it to apply mechanical or partly mechanical review fixes. A threshold controls how strong a finding must be before it is eligible, and a granular option separates surviving fix groups into commits.
Why use it?
Review findings still require checking after code changes, because a fix can introduce a regression. This process filters eligible findings, checks the result, and reverts fixes that cause problems.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool.

Part of the adamsreview plugin — 6 commands, 1 hook shipped together

Good fit Use it to apply mechanical or partly mechanical review fixes. A threshold controls how strong a finding must be before it is eligible, and a granular option separates surviving fix groups into commits.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/adamjgmiller/adamsreview/fix
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/adamjgmiller/adamsreview

Made for: Claude Code.

Or install adamsreview, the plugin that ships this one along with the rest of its 6 commands, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix

README.md
[![agentmods](https://agentmods.dev/badge/commands/adamjgmiller/adamsreview/fix/github.svg)](https://agentmods.dev/commands/adamjgmiller/adamsreview/fix)
Your own site
<a href="https://agentmods.dev/commands/adamjgmiller/adamsreview/fix"><img src="https://agentmods.dev/badge/commands/adamjgmiller/adamsreview/fix/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fix

Your own site · 80×15
<a href="https://agentmods.dev/commands/adamjgmiller/adamsreview/fix"><img src="https://agentmods.dev/badge/commands/adamjgmiller/adamsreview/fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,936 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.01936
Opus 5 $0.00018 $0.00968
Sonnet 5 $0.00007 $0.00387
Haiku 4.5 $0.00004 $0.00194

Measured 9d ago against content hash 4fcbf4c7ddab, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/fix.md · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Arguments (optional):

  • First positional (integer 0–100) → threshold (default 60). The Phase 8 fix gate: confirmed_mechanical/partial/regression findings with score_phase4 >= threshold are eligible. /adamsreview:fix 80 excludes moderate-strength findings from the run.
  • --granular-commits → one commit per surviving fix group. Default is one combined commit for all survivors.

Read fragments/_prelude-shared.md before proceeding — it lists rules that apply to every phase below (sub-agent return handling, helper-script error-as-prompt).

Execution overview

This command orchestrates Phases 7, 7.5, 8, and 9 in order. Each phase is defined in a fragment under fragments/NN-<name>.md. At each phase boundary below, read the named fragment with the Read tool and execute the instructions inside before proceeding to the next phase.

Phase 7.5 (auto-recommendation preflight) lives at the end of fragments/08-fix-loader.md. When that fragment populates Phase 5.5's auto_fix_hint on findings, Phase 7.5 surfaces them in a batch-confirm UI before Phase 8 dispatch — apply-all / review-per- finding / skip / cancel. On the apply-all and review paths, the user choices are committed via human_confirmation so Phase 8's gate picks them up via the existing bypass (no Phase 8 wiring change needed). On skip, Phase 8 runs against originally-eligible findings only. On cancel, :fix aborts and any stash from 7.5's clean-tree gate is restored.

Before you start, build a TaskList that mirrors the phases below (one task per phase, plus one for argument parsing). Mark each in_progress when you start it and completed when you finish.

attempted is the transient recovery anchor. Between Phase 8 completing and Phase 9e writing fix_attempts, findings sit in current_state=attempted. If the run is interrupted there — or if Phase 9.pre detects a touched-file overlap and the reviewer chooses abort (default) or inspect — the next /adamsreview:fix invocation's Phase 7 step 4 hard abort catches the leftover attempted state and gives the user a deterministic recovery prompt. Never clean up attempted state silently; that's the user's call. (Reconcile does NOT leave findings at attempted — it commits or reverts just like a non-reconciled run.)

In Phase 9e, state transitions + fix_attempts append + schema validate

  • render all run BEFORE any git push or artifact-publish.sh call. Push or publish failure never leaves the artifact out of sync with git.

Phase 9b reverts any fix group whose findings Phase 9a classified as regression, before Phase 9c commits. Surviving groups' files stage explicitly by name (never git add -A); regression-group files are restored with git checkout -- (for modified files) or rm -f (for created files).

Push failure, publish failure, stash-pop conflict — each gets logged to trace.md with a specific tag; the terminal block proceeds; the FIRST failure is surfaced to the user at the end. The artifact's state is already persisted so the user can re-run cleanly.

If a phase genuinely cannot run, mark the task completed with a one-line trace.md note and move on. Phase 9e's terminal cleanup runs unconditionally — every run finishes with artifact state consistent with what actually happened on disk.

Read the full file on GitHub · 144 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 144 lines · 36 tokens per session scan A 4fcbf4c7ddab

Subscribe to this mod's changes

fix is a command published in the GitHub repository adamjgmiller/adamsreview (243 stars, last pushed 3mo ago), licensed MIT. It adds 36 tokens to every session and 1,936 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.