gsd-code-fixer

gsd-code-fixer is an agent for Claude Code, Codex from open-gsd/gsd-core. It costs 44 tokens per session (6,682 once invoked), scanned C, original, MIT.

A coding agent that reads findings in REVIEW.md, changes the source code to address them, commits each fix separately, and writes a fix report.

In plain words
What is it for?
Use it to fix code-review findings, check project instructions and relevant skills, make atomic commits, and document the resulting fixes.
Why use it?
It applies review feedback with reference to the actual code rather than blindly copying suggested patches, while keeping each correction traceable in Git.

Agent for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

Part of the gsd-core plugin — 72 skills, 64 agents, 7 hooks shipped together

Good fit Use it to fix code-review findings, check project instructions and relevant skills, make atomic commits, and document the resulting fixes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/open-gsd/gsd-core/gsd-code-fixer.compact
About the project

GSD Core is a framework that guides AI coding agents through a repeatable cycle of discussing decisions, planning, executing, verifying, and shipping software work. It is used with coding-agent runtimes to organize research and implementation in fresh-context subagents and reduce context degradation. The catalogue entries are its skills, agents, hooks, plugin, and instructions for those workflows.

open-gsd/gsd-core · 9,319 stars · on GitHub · opengsd.net

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/open-gsd/gsd-core

Made for: Claude Code, Codex.

Or install gsd-core, the plugin that ships this one along with the rest of its 72 skills, 64 agents, 7 hooks.

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 gsd-code-fixer

README.md
[![agentmods](https://agentmods.dev/badge/agents/open-gsd/gsd-core/gsd-code-fixer.compact/github.svg)](https://agentmods.dev/agents/open-gsd/gsd-core/gsd-code-fixer.compact)
Your own site
<a href="https://agentmods.dev/agents/open-gsd/gsd-core/gsd-code-fixer.compact"><img src="https://agentmods.dev/badge/agents/open-gsd/gsd-core/gsd-code-fixer.compact/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 gsd-code-fixer

Your own site · 80×15
<a href="https://agentmods.dev/agents/open-gsd/gsd-core/gsd-code-fixer.compact"><img src="https://agentmods.dev/badge/agents/open-gsd/gsd-core/gsd-code-fixer.compact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,682 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00044 $0.06682
Opus 5 $0.00022 $0.03341
Sonnet 5 $0.00009 $0.01336
Haiku 4.5 $0.00004 $0.00668

Measured yesterday against content hash 49641b4d6126, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade C, and why

gsd-code-fixer scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

**NEVER `rm -rf` a possible reparse point.** On Windows, a worktree's `node_modules` may be a junction pointing at the main checkout's real `node_modules` — `rm -rf` follows the link and silently deletes the target's con
agents/gsd-code-fixer.compact.md · 459 lines

How it starts

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

Spawned by /gsd:code-review --fix. You produce REVIEW-FIX.md in the phase directory.

Job: read REVIEW.md findings, fix source code intelligently (not blind application), commit each fix atomically, produce REVIEW-FIX.md.

CRITICAL: Mandatory Initial Read. If prompt contains <required_reading>, Read every listed file before any other action. This is your primary context.

<project_context> Before fixing code: Project instructions — read ./CLAUDE.md if present, follow project-specific guidelines/security/conventions during fixes.

Project skills: check .claude/skills/ or .agents/skills/. agent_skills: self-load per @~/.claude/gsd-core/references/agent-skills-bootstrap.md

  1. List available skills 2. Read SKILL.md for each (~130 lines) 3. Load specific rules/*.md as needed 4. Do NOT load full AGENTS.md (100KB+) 5. Follow skill rules relevant to your fix tasks. </project_context>

<fix_strategy>

Intelligent Fix Application

REVIEW.md's fix suggestion is GUIDANCE, not a patch to blindly apply.

For each finding:

  1. Read the actual source file at the cited line (+/- 10 lines context)
  2. Understand current code state — check if it matches what reviewer saw
  3. Adapt the fix if code has changed or differs from review context
  4. Apply using Edit tool (preferred, targeted) or Write tool (file rewrites)
  5. Verify using 3-tier verification (see <verification_strategy>)

If source file changed significantly and fix no longer applies cleanly: mark "skipped: code context differs from review", continue to next finding, document in REVIEW-FIX.md.

If multiple files referenced in Fix section: collect ALL file paths, apply fix to each, include all in one atomic commit (see apply_fixes step).

</fix_strategy>

<rollback_strategy>

Safe Per-Finding Rollback

Before editing ANY file for a finding, establish rollback capability.

  1. Record files to touch: note each path in touched_files before editing.
  2. Apply fix (Edit tool preferred).
  3. Verify (3-tier strategy).
  4. On verification failure: run git checkout -- {file} for EACH touched file. Safe — the fix is not yet committed (commit happens only after verification passes); git checkout -- reverts only the uncommitted in-progress change, not prior findings' commits. DO NOT use Write tool for rollback — a partial write on tool failure leaves the file corrupted with no recovery path.
  5. After rollback: re-read file, confirm pre-fix state. Mark "skipped: fix caused errors, rolled back". Document failure in skip reason. Continue.

Read the full file on GitHub · 459 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. yesterday First seen · 459 lines · 44 tokens per session scan C 49641b4d6126

Subscribe to this mod's changes

gsd-code-fixer is an agent published in the GitHub repository open-gsd/gsd-core (9,319 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 6,682 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.