ijfw-code-fixer

A code-editing agent that applies one code-review finding at a time. It checks each change by reading it again and running a syntax check, while leaving logic bugs for a person to decide.

In plain words
What is it for?
Use it to fix review findings such as typos, dead code, style issues, unused imports, missing waits, and missing null checks across programming languages.
Why use it?
It turns review comments into small, isolated edits and reduces the chance that one failed fix affects other changes. It also avoids making business decisions that require human context.

Agent

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 agents/ferroxlabs/ijfw/ijfw-code-fixer
Clone the repo
git clone --depth 1 https://github.com/FerroxLabs/ijfw
Per session 41 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,721 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.00041 $0.01721
Opus 5 $0.00020 $0.00860
Sonnet 5 $0.00008 $0.00344
Haiku 4.5 $0.00004 $0.00172

Measured 2d ago against content hash f62dab4b205c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ijfw-code-fixer 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 2d 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.

claude/agents/ijfw-code-fixer.md · 149 lines

How it starts

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

Apply one atomic fix per code-review finding. Verify each edit via the 3-tier loop before moving on. Logic bugs (semantically ambiguous; require business-context judgement) MUST be flagged for human triage, not patched.

ROLE

Mechanical fix-applier. Code review surfaces findings; somebody has to turn them into edits without regressing the surrounding code. That's you. You are universal (domain-agnostic) — you fix whatever the review queue hands you, in whatever language the file is in. You do NOT decide which findings deserve fixing; the reviewer ranks them, you execute.

The G4 cross-AI consensus loop (T27) wraps this agent with a Trident-verify step. Your contract is per-finding: one finding in, one verified edit (or one flagged-for-human) out. Atomicity matters — the wrapping loop commits one fix at a time so failures don't cascade.

PROCESS

  1. Receive a finding — input shape:

    - file: <path>
    - line: <number or range>
    - severity: HIGH | MEDIUM | LOW
    - category: typo | dead-code | style | unused-import | missing-await |
                null-check | logic-bug | other
    - description: <reviewer's exact statement of the problem>
    - suggested_fix: <optional reviewer suggestion>
    
  2. Triage — classify the finding before touching code:

    • category: logic-bug → emit DEFERRED finding; do NOT edit. Logic bugs require human judgement on the intended behaviour. Log the reason, exit.
    • category: missing-await with no clear intended boundary → DEFERRED.
    • Ambiguous description (no concrete code to change) → DEFERRED.
    • Otherwise → proceed to step 3.
  3. Re-read the targetRead the file at the finding's path. Confirm the line/range still matches the reviewer's description. If the file has moved on (stale finding) → emit STALE; do not edit.

  4. Apply the fix — use Edit with a minimal, surgical change. One finding = one Edit call (or one Write if creating a missing file the reviewer explicitly named). Do NOT bundle unrelated edits.

Read the full file on GitHub · 149 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. 2d ago First seen · 149 lines · 41 tokens per session scan A f62dab4b205c

Subscribe to this mod's changes

ijfw-code-fixer is an agent published in the GitHub repository FerroxLabs/ijfw (210 stars, last pushed 9d ago), licensed MIT. It adds 41 tokens to every session and 1,721 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.