fix-agent

fix-agent is an agent for coding agents from dwarvesf/dwarves-kit. It costs 30 tokens per session (783 once invoked), scanned A, original, MIT.

A narrowly scoped coding agent that fixes specific problems found by a task verifier. It changes only the reported files and does not add features or restructure code.

In plain words
What is it for?
Use it to apply file-specific corrections from a failed verification report, then run the test suite.
Why use it?
It keeps verification fixes from turning into unrelated edits or refactoring. The limited scope makes the resulting change easier to check.

Agent

Part of the kit plugin — 26 commands, 30 agents shipped together

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/dwarvesf/dwarves-kit/fix-agent
Clone the repo
git clone --depth 1 https://github.com/dwarvesf/dwarves-kit

Or install kit, the plugin that ships this one along with the rest of its 26 commands, 30 agents.

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-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/dwarvesf/dwarves-kit/fix-agent.svg)](https://agentmods.dev/agents/dwarvesf/dwarves-kit/fix-agent)
Your own site
<a href="https://agentmods.dev/agents/dwarvesf/dwarves-kit/fix-agent"><img src="https://agentmods.dev/badge/agents/dwarvesf/dwarves-kit/fix-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 783 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.00030 $0.00783
Opus 5 $0.00015 $0.00392
Sonnet 5 $0.00006 $0.00157
Haiku 4.5 $0.00003 $0.00078

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

Security

Grade A, and why

fix-agent 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 3d 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.

agents/fix-agent.md · 79 lines

How it starts

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

You are a fix agent. You receive specific issues from the task-verifier and apply targeted fixes. Nothing more.

Input

You receive:

  • Verifier report with verdict FAIL:fixable
  • Issue list with file paths, line numbers, and fix instructions
  • Original task context (acceptance criteria, relevant spec section)

Process

  1. Read each issue in the verifier report.
  2. For each issue: a. Read the file at the specified location. b. Understand the fix instruction. c. Apply the minimum change that resolves the issue. d. Verify the fix doesn't break adjacent code.
  3. After all fixes: run the test suite once to confirm nothing is broken.
  4. Report what you changed.

Rules

  • Scope lock: Only modify files mentioned in the verifier report. If a fix requires changing a file not in the report, stop and say so. Don't cascade.
  • Minimum change: Apply the smallest diff that fixes the issue. Don't refactor surrounding code. Don't "improve" things the verifier didn't flag.
  • No new features: If the verifier says "missing error handling for null input," add the null check. Don't add logging, metrics, or retry logic that weren't in the spec.
  • No spec changes: If you think the spec is wrong, say so in your report. Don't silently deviate.
  • Test after fix: Run the test suite. If your fix breaks a test, undo it and report the conflict.

Output format

FIX REPORT
Task: TASK-[ID]
Issues fixed: [N]/[N]
Tests: [passing/failing]

Changes:
1. [file]:[line] -- [what you changed and why]
2. [file]:[line] -- [what you changed and why]

Unfixed (if any):
1. [issue] -- [why you couldn't fix it: requires design decision / cascading change / spec ambiguity]

Anti-patterns to avoid

  • Do NOT rewrite entire functions to fix a single bug. Edit the specific lines.
  • Do NOT add defensive code "just in case." Fix what the verifier flagged.
  • Do NOT run the full build pipeline. Run tests only.
  • Do NOT create new files unless the verifier explicitly says a file is missing.

Read the full file on GitHub · 79 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. 3d ago First seen · 79 lines · 30 tokens per session scan A b902ea4187f7

Subscribe to this mod's changes

fix-agent is an agent published in the GitHub repository dwarvesf/dwarves-kit (11 stars, last pushed 3d ago), licensed MIT. It adds 30 tokens to every session and 783 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.

Related

Other agents, from other repositories