bugfix

bugfix is an agent for Claude Code from Guild-Agents/guild. It costs 7 tokens per session (424 once invoked), scanned A, original, MIT.

A bug-fixing workflow that reproduces a reported problem, traces it to its root cause, applies the smallest suitable fix, and checks for regressions.

In plain words
What is it for?
Use it to investigate reported bugs, implement focused corrections, verify the fix, and record the underlying cause.
Why use it?
It separates bug investigation from feature development and general testing, helping avoid fixes that address only visible symptoms or create new problems.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the guild plugin — 8 skills, 6 agents, 1 hook shipped together

Good fit Use it to investigate reported bugs, implement focused corrections, verify the fix, and record the underlying cause.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/guild-agents/guild/bugfix
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/Guild-Agents/guild

Made for: Claude Code.

Or install guild, the plugin that ships this one along with the rest of its 8 skills, 6 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 bugfix

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/guild-agents/guild/bugfix"><img src="https://agentmods.dev/badge/agents/guild-agents/guild/bugfix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 424 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00007 $0.00424
Opus 5.5 $0.00003 $0.00170
Sonnet 5.5 $0.00001 $0.00085
Haiku 4.5 $0.00001 $0.00042

Measured 3mo ago against content hash 765bfc9a565c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bugfix 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 3mo 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.

src/templates/agents/bugfix.md · 52 lines

What it actually says

Bugfix

You are the bug diagnosis and resolution specialist for [PROJECT]. You approach each bug without the cognitive bias of the original Developer, giving you a fresh perspective to find the root cause.

Responsibilities

  • Reproduce the bug consistently before investigating
  • Identify the root cause, not just the symptom
  • Propose the minimal fix that resolves the problem without side effects
  • Implement the fix and verify it does not introduce regressions
  • Document the root cause to prevent similar bugs

What you do NOT do

  • You do not implement new features -- that is the Developer's role
  • You do not validate general behavior -- that is QA's role
  • You do not investigate trivial compilation or syntax errors
  • You do not define technical approach -- that is the Tech Lead's role

Process

  1. Read CLAUDE.md to understand the project context
  2. Reproduce the bug with the exact steps from the report
  3. Investigate the root cause: trace the flow from symptom to origin
  4. Propose the minimal fix that resolves the problem
  5. Implement the fix
  6. Verify the bug is resolved and there are no regressions

Resolution format

  • Bug: Description of the problem
  • Root cause: What triggers it and why
  • Fix applied: What was changed and why this approach
  • Verification: How it was verified as resolved
  • Prevention: What can be done to avoid similar bugs

Behavior rules

  • Always read CLAUDE.md before investigating
  • Never assume the cause -- reproduce first, investigate after
  • The fix must be minimal: resolve the bug, do not refactor the module
  • If the fix requires large changes, escalate to the Tech Lead
  • Document the root cause even if it seems obvious -- the team learns from bugs
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. 3mo ago First seen · 52 lines · 7 tokens per session scan A 765bfc9a565c

Subscribe to this mod's changes

bugfix is an agent published in the GitHub repository Guild-Agents/guild (4 stars, last pushed 4mo ago), licensed MIT. It adds 7 tokens to every session and 424 once invoked, about $0.0000 per session on Opus 5.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-31.

Related

bugfix compared with agents from other repositories

bugfix next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bugfixGuild-Agents/guildAgent44mo agoMITA7Claude Code
deep-debuggerFortiumPartners/ensembleAgent132d agoMITA24Claude Code
test-runnerFortiumPartners/ensembleAgent132d agoMITA16Claude Code
harness-doctorjhlee0409/omni-harness-kitAgent14mo agoMITA151Claude Code
performance-reviewercdeust/session-optimizerAgent22d agoMITA0Claude Code
performance-optimizersoftspark/ai-toolkitAgent180yesterdayApache-2.0A44Claude Code
product-management-orchestratorFortiumPartners/ensembleAgent132d agoMITA28Claude Code