gsd:code-review-fix

A command that applies fixes identified in a code-review report stored in REVIEW.md. It can optionally repeat fixing and reviewing for up to three iterations.

In plain words
What is it for?
Use it for a numbered development phase after code review. It can fix selected findings, commit each fix separately, and create a REVIEW-FIX.md summary.
Why use it?
It reduces the manual work of turning review findings into code changes and records what was fixed. By default, it focuses on critical and warning findings.

Command for Claude Code

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.

agentmods
npx agentmods add commands/kryptobaseddev/cleo/code-review-fix
Clone the repo
git clone --depth 1 https://github.com/kryptobaseddev/cleo

Made for: Claude Code.

Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 546 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00038 $0.00546
Opus 5 $0.00019 $0.00273
Sonnet 5 $0.00008 $0.00109
Haiku 4.5 $0.00004 $0.00055

Measured yesterday against content hash 0ee281c3f300, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gsd:code-review-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 yesterday.

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.

.cleo/agent-outputs/T-POMODORO-BENCH-2026-04-16/gsd/.claude/commands/gsd/code-review-fix.md · 53 lines

What it actually says

Arguments:

  • Phase number (required) — which phase's REVIEW.md to fix (e.g., "2" or "02")
  • --all (optional) — include Info findings in fix scope (default: Critical + Warning only)
  • --auto (optional) — enable fix + re-review iteration loop, capped at 3 iterations

Output: {padded_phase}-REVIEW-FIX.md in phase directory + inline summary of fixes applied

<execution_context> @/tmp/pomodoro-bench/gsd/.claude/get-shit-done/workflows/code-review-fix.md </execution_context>

Optional flags parsed from $ARGUMENTS:

  • --all — Include Info findings in fix scope. Default behavior fixes Critical + Warning only.
  • --auto — Enable fix + re-review iteration loop. After applying fixes, re-run code-review at same depth. If new issues found, iterate. Cap at 3 iterations total. Without this flag, single fix pass only.

Context files (CLAUDE.md, REVIEW.md, phase state) are resolved inside the workflow via gsd-tools init phase-op and delegated to agent via config blocks.

Execute the code-review-fix workflow from @/tmp/pomodoro-bench/gsd/.claude/get-shit-done/workflows/code-review-fix.md end-to-end.

The workflow (not this command) enforces these gates:

  • Phase validation (before config gate)
  • Config gate check (workflow.code_review)
  • REVIEW.md existence check (error if missing)
  • REVIEW.md status check (skip if clean/skipped)
  • Agent spawning (gsd-code-fixer)
  • Iteration loop (if --auto, capped at 3 iterations)
  • Result presentation (inline summary + next steps)
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. yesterday First seen · 53 lines · 38 tokens per session scan A 0ee281c3f300

Subscribe to this mod's changes

gsd:code-review-fix is a command published in the GitHub repository kryptobaseddev/cleo (160 stars, last pushed 11d ago), licensed MIT. It adds 38 tokens to every session and 546 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.