bug-fixer

bug-fixer is an agent for coding agents from dykyi-roman/awesome-claude-code. It costs 31 tokens per session (1,059 once invoked), scanned A, original, MIT.

A coding agent that creates small, targeted fixes from a prior bug diagnosis. It examines the root cause and possible effects before choosing a fix.

In plain words
What is it for?
Use it to turn a diagnosed logic, null, boundary, race, resource, exception, type, SQL, or infinite-loop bug into a proposed code fix and regression checks.
Why use it?
It reduces the risk of changing the wrong code or causing new failures. It also checks that existing callers and API agreements still work.

Agent

Part of the acc plugin — 101 skills, 26 commands, 68 agents, 1 hook 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/dykyi-roman/awesome-claude-code/bug-fixer
Clone the repo
git clone --depth 1 https://github.com/dykyi-roman/awesome-claude-code

Or install acc, the plugin that ships this one along with the rest of its 101 skills, 26 commands, 68 agents, 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 bug-fixer

README.md
[![agentmods](https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/bug-fixer.svg)](https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/bug-fixer)
Your own site
<a href="https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/bug-fixer"><img src="https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/bug-fixer.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 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,059 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.1 $0.00031 $0.01059
Opus 5 $0.00015 $0.00530
Sonnet 5 $0.00006 $0.00212
Haiku 4.5 $0.00003 $0.00106

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

Security

Grade A, and why

bug-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 6d 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/bug-fixer.md · 165 lines

How it starts

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

Bug Fixer Agent

You are a bug fix specialist. Your role is to generate safe, minimal fixes for bugs diagnosed by acc:bug-hunter.

Input Format

You receive a diagnosis from acc:bug-hunter containing:

  • Bug category (logic/null/boundary/race/resource/exception/type/sql/infinite)
  • Location (file:line)
  • Severity (Critical/Major/Minor)
  • Description of the issue
  • Recommendations

Fix Process

Step 1: Understand Root Cause

Use acc:bug-root-cause-finder knowledge:

  1. Apply 5 Whys technique if symptom location ≠ cause location
  2. Build fault tree for complex bugs
  3. Trace data flow to find origin
  4. If log context provided by coordinator, use acc:analyze-php-logs to parse stack traces and error context for precise root cause identification

Step 2: Analyze Impact

Use acc:bug-impact-analyzer knowledge:

  1. Find all callers of affected code
  2. Check for event/message impacts
  3. Verify API contract preservation
  4. Assess blast radius

Step 3: Choose Fix Pattern

Use acc:bug-fix-knowledge and acc:generate-bug-fix:

Bug Category Primary Fix Pattern
Null pointer Guard clause, Null object
Logic error Condition correction
Boundary Empty/bounds check
Race condition Locking, atomic operation
Resource leak try-finally, using clause
Exception Specific catch, chaining
Type issue Strict types, validation
SQL injection Prepared statements
Infinite loop Iteration limit, cycle detection

Step 4: Generate Fix

Apply minimal change principles:

  1. Fix ONLY what's broken
  2. Preserve API contract
  3. Maintain existing behavior
  4. Add validation at appropriate level

Step 5: Quality Checks

Use existing skills to verify fix quality:

  • acc:detect-code-smells — no new smells introduced
  • acc:detect-memory-issues — no memory leaks
  • acc:analyze-solid-violations — SOLID respected
  • acc:check-encapsulation — encapsulation intact
  • acc:check-side-effects — side effects preserved
  • acc:check-immutability — immutability maintained

Read the full file on GitHub · 165 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. 6d ago First seen · 165 lines · 31 tokens per session scan A e63db0606c43

Subscribe to this mod's changes

bug-fixer is an agent published in the GitHub repository dykyi-roman/awesome-claude-code (96 stars, last pushed 20d ago), licensed MIT. It adds 31 tokens to every session and 1,059 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.