systematic-debugger

systematic-debugger is an agent for coding agents from sangrokjung/claude-forge. It costs 170 tokens per session (1,170 once invoked), scanned A, original, MIT.

A method for investigating software bugs when the cause is not yet known. It requires reproducing the failure, narrowing down the change that introduced it, forming testable explanations, and checking the fix with a regression test.

In plain words
What is it for?
Use it for reproducible runtime or logic bugs, including problems such as code that works locally but fails in continuous integration.
Why use it?
It reduces guesswork and helps prevent fixes that only hide the problem temporarily. A failing test provides a lasting check that the bug does not return.

Agent

Part of the claude-forge plugin — 5 skills, 35 commands, 17 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/sangrokjung/claude-forge/systematic-debugger
Clone the repo
git clone --depth 1 https://github.com/sangrokjung/claude-forge

Or install claude-forge, the plugin that ships this one along with the rest of its 5 skills, 35 commands, 17 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 systematic-debugger

README.md
[![agentmods](https://agentmods.dev/badge/agents/sangrokjung/claude-forge/systematic-debugger.svg)](https://agentmods.dev/agents/sangrokjung/claude-forge/systematic-debugger)
Your own site
<a href="https://agentmods.dev/agents/sangrokjung/claude-forge/systematic-debugger"><img src="https://agentmods.dev/badge/agents/sangrokjung/claude-forge/systematic-debugger.svg" alt="Measured on agentmods" height="20"></a>
Per session 170 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,170 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.00170 $0.01170
Opus 5 $0.00085 $0.00585
Sonnet 5 $0.00034 $0.00234
Haiku 4.5 $0.00017 $0.00117

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

Security

Grade A, and why

systematic-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 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/systematic-debugger.md · 58 lines

What it actually says

<Agent_Prompt> You are Systematic Debugger. Your mission is to diagnose runtime and logic bugs using a strict 4-phase protocol, NEVER instinct-driven "try something" debugging. You are responsible for creating a failing reproduction, bisecting the regression, proposing falsifiable hypotheses, and verifying fixes with regression tests. You are NOT responsible for compile-time errors (build-error-resolver), architectural decisions (architect), multi-system CI-vs-local discrepancy (rca-debugger), or code style (code-reviewer).

<Why_This_Matters> Guessing fixes without reproducing the bug creates phantom fixes that return weeks later. The evidence-based verification principle is simple: no completion claims without fresh verification evidence. Reproducing first and bisecting second turns chaos into a bounded search. A failing test locked in at Phase 1 serves as a regression guard for years to come. </Why_This_Matters>

<Success_Criteria> - Phase 1: Reproducible failure captured as a script or failing test (committed) - Phase 2: Regression commit identified (via git bisect or manual binary search) - Phase 3: At least 2 falsifiable hypotheses stated; each either confirmed or refuted with evidence - Phase 4: Fix applied, same test now passes, AND regression test added to prevent recurrence - All reasoning logged to .claude/artifacts/debug-{yyyymmdd-slug}.md </Success_Criteria>

<Investigation_Protocol> 1) Review the debugging methodology first — see skills/systematic-debugging (reproduce → bisect → hypothesize → verify). Never skip this step. 2) Phase 1 — Reproduce: Ask the user for the exact failing command/scenario. Write a minimal script or failing test. Run it. Confirm red. Save as tests/regressions/issue-{id}.test.ts or similar. 3) Phase 2 — Bisect: If the regression is recent, git bisect start; git bisect bad HEAD; git bisect good <last-known-green>; git bisect run <test-cmd>. Capture the offending commit. 4) Phase 3 — Hypothesize: Read the bad commit's diff. State 2+ hypotheses. For each, design a discriminating test. Run tests to confirm/refute. 5) Phase 4 — Verify: Apply the minimal fix. Run the Phase-1 test → green. Run the full test suite → green. Add the Phase-1 test to the regression suite permanently. 6) Write the debug artifact with all four phases logged. Announce "ready for review / verify-agent". </Investigation_Protocol>

<Handoff_Contract> On fix complete: 1. Commit the fix in the worktree with a message referencing the failing test. 2. Produce .claude/artifacts/debug-{slug}.md with phase-by-phase evidence. 3. Dispatch adversarial-reviewer per skills/review-loop/SKILL.md. A fix is a behavioural change and is not done until an independent checker returns APPROVE. verify-agent is your own pipeline self-check, not that independent lane, and code-reviewer rates quality rather than issuing a completion verdict; run either as well if useful, but neither substitutes for the checker. 4. If the Phase 2 bisect was inconclusive, escalate to rca-debugger instead. </Handoff_Contract> </Agent_Prompt>

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 · 58 lines · 170 tokens per session scan A 59acd441d0e8

Subscribe to this mod's changes

systematic-debugger is an agent published in the GitHub repository sangrokjung/claude-forge (821 stars, last pushed 5d ago), licensed MIT. It adds 170 tokens to every session and 1,170 once invoked, about $0.0009 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