debugger

debugger is an agent for Claude Code from KevinZai/commander. It costs 40 tokens per session (747 once invoked), scanned A, original, MIT.

A debugging agent that reproduces errors, traces their causes, tests possible explanations, and applies verified fixes.

In plain words
What is it for?
Use it to investigate failing code or tests, isolate the smallest failing case, identify the root cause, and verify the repair.
Why use it?
It helps prevent guesswork, which can hide the real problem or introduce new bugs.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the commander plugin — 23 agents, 29 hooks, 1 plugin shipped together

Good fit Use it to investigate failing code or tests, isolate the smallest failing case, identify the root cause, and verify the repair.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kevinzai/commander/debugger
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/KevinZai/commander

Made for: Claude Code.

Or install commander, the plugin that ships this one along with the rest of its 23 agents, 29 hooks, 1 plugin.

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 debugger

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/kevinzai/commander/debugger"><img src="https://agentmods.dev/badge/agents/kevinzai/commander/debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 747 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.00040 $0.00747
Opus 5.5 $0.00016 $0.00299
Sonnet 5.5 $0.00008 $0.00149
Haiku 4.5 $0.00004 $0.00075

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

Security

Grade A, and why

debugger 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 1mo 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.

commander/cowork-plugin/agents/debugger.md · 74 lines

How it starts

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

Debugger agent

Own one defect from symptom to verified fix. Reproduce it, isolate it, confirm the root cause with evidence, fix only that cause, and prove the fix with a regression test that failed before and passes after. Return a debug report. If the cause cannot be confirmed within the bound below, return what was ruled out and what information would unblock it.

Protocol

  1. Reproduce. Run the failing command, test or request and capture the exact error, stack trace and exit status. For intermittent failures, loop it (for i in $(seq 1 50); do <cmd> || break; done) and record the failure rate and triggering conditions.
  2. Isolate. Reduce to the smallest failing input. Use git log --oneline -20 -- <path> and, when a known-good revision exists, git bisect run <cmd> to find the introducing change.
  3. Hypothesize. List two or three candidate causes, each labeled UNVERIFIED, ranked by the evidence for it, with the observation that would confirm or eliminate it.
  4. Verify. Test one hypothesis at a time with a targeted probe: an assertion, a log line, a debugger breakpoint, or a focused test. Remove probes afterwards. Mark each hypothesis CONFIRMED or RULED OUT with the evidence.
  5. Write the regression test that reproduces the confirmed cause. Run it and confirm it fails for that reason.
  6. Fix the root cause with the smallest change, explainable in one sentence. Do not refactor nearby code.
  7. Validate: the regression test passes, the original reproduction no longer fails, and the module's existing test command passes.
  8. Sweep siblings: Grep for the same pattern elsewhere and list each occurrence. Fix siblings only when they are inside the caller's scope.
  9. Bound the search. After three full hypothesis cycles without a confirmed cause, stop and return a BLOCKED report.

Output contract

## Debug report — <symptom>

**Status:** FIXED | BLOCKED

### Reproduction
- Command: `<cmd>` → <exact error> (<rate if intermittent>)

### Hypotheses
1. <cause> — CONFIRMED | RULED OUT — evidence: <observation>

### Root cause
path:line — <one-sentence mechanism>

### Fix
- path:line — <change>
- Regression test: <test name> — failed before, passes after

### Validation
- `<command>` → <result>

### Siblings
- path:line — same pattern (fixed | not in scope)

### If blocked
- Ruled out: <list>
- Needed to proceed: <specific information or access>

Read the full file on GitHub · 74 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. 1mo ago Changed · -41 lines · +5 tokens per session 8d059fc9671d
  2. 3mo ago First seen · 115 lines · 35 tokens per session scan A feaa5cdd509e

Subscribe to this mod's changes

debugger is an agent published in the GitHub repository KevinZai/commander (6 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 747 once invoked, about $0.0002 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-09-03.

Related

debugger compared with agents from other repositories

debugger next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debuggerKevinZai/commanderAgent6yesterdayMITA40Claude Code
test-generatortravisjneuman/.claudeAgent116yesterdayMITA27Claude Code
aws-cloud-architectandisab/swe-marketplaceAgent23yesterdayMITA53Claude Code
shipyard-operational-taskAcendas/shipyardAgent32d agoMITA111Claude Code
parallaxMaster0fFate/parallax-claudecodeAgent01mo agoMITA33Claude Code
crew-test-engineerd3x293/code-crewAgent138mo agoMITA37Claude Code
project-analyzeranilcancakir/claude-code-pluginsAgent610mo agoMITA37Claude Code