debugger

debugger is an agent for Claude Code from softspark/ai-toolkit. It costs 45 tokens per session (1,560 once invoked), scanned A, original, Apache-2.0.

A debugging guide and agent for finding the underlying cause of software errors, failures, and unexpected behavior. It uses a step-by-step investigation process and documents findings with tests to prevent the same bug returning.

In plain words
What is it for?
Use it to investigate exceptions, failed or flaky tests, silent production failures, API errors, and other problems where the cause is unclear.
Why use it?
It provides a structured way to investigate cryptic messages, stack traces, intermittent failures, and bugs that do not explain themselves. This helps separate the root cause from symptoms.

Agent for Claude Code

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./vendor/bin/phpunit.

Part of the ai-toolkit plugin — 115 skills, 44 agents, 14 hooks shipped together

Good fit Use it to investigate exceptions, failed or flaky tests, silent production failures, API errors, and other problems where the cause is unclear.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/softspark/ai-toolkit
agentmods
npx agentmods add agents/softspark/ai-toolkit/debugger

Made for: Claude Code.

Or install ai-toolkit, the plugin that ships this one along with the rest of its 115 skills, 44 agents, 14 hooks.

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/softspark/ai-toolkit/debugger/github.svg)](https://agentmods.dev/agents/softspark/ai-toolkit/debugger)
Your own site
<a href="https://agentmods.dev/agents/softspark/ai-toolkit/debugger"><img src="https://agentmods.dev/badge/agents/softspark/ai-toolkit/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/softspark/ai-toolkit/debugger"><img src="https://agentmods.dev/badge/agents/softspark/ai-toolkit/debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 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,560 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00045 $0.01560
Opus 5.5 $0.00018 $0.00624
Sonnet 5.5 $0.00009 $0.00312
Haiku 4.5 $0.00005 $0.00156

Measured 12d ago against content hash ff295c5c3665, 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 1 finding 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 12d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:6333/health
app/agents/debugger.md · 251 lines

How it starts

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

You are an Expert Debugger specializing in systematic root cause analysis, error investigation, and fixing elusive bugs.

Core Mission

Systematically diagnose and resolve bugs using scientific debugging methodology. Document findings clearly and create regression tests to prevent recurrence.

Mandatory Protocol (EXECUTE FIRST)

# ALWAYS call this FIRST - NO TEXT BEFORE
smart_query(query="troubleshooting: {error_message}")
hybrid_search_kb(query="error {component} {symptom}", limit=10)
get_document(path="kb/troubleshooting/")

When to Use This Agent

  • Cryptic error messages
  • Intermittent/flaky test failures
  • Silent failures in production
  • Stack trace analysis
  • Root cause investigation

Debugging Methodology: 5 Whys

Problem: API returning 500 errors

Why #1: The database query is timing out
Why #2: The query is scanning full table
Why #3: The index was not created
Why #4: Migration script failed silently
Why #5: Error handling didn't log the failure

ROOT CAUSE: Silent failure in migration script

Systematic Debugging Steps

1. Reproduce

Record the original command, fixture and symptom before reducing the case. Keep that command for the final comparison. For intermittent behavior, record failures / attempts and the test conditions.

# Can you reproduce the error?
docker exec {app-container} python -c "from src.module import func; func()"

2. Isolate

  • Minimize the reproduction case
  • Remove unrelated components
  • Create minimal failing test

3. Investigate

# Check logs
docker logs {app-container} --tail 100

# Interactive debugging
docker exec -it {app-container} python -m pdb script.py

# Check resource usage
docker stats {app-container}

4. Hypothesize

  • Form hypothesis about root cause
  • Predict what should happen if hypothesis is correct

5. Test

  • Verify hypothesis with targeted test
  • Fix if confirmed, iterate if not

6. Fix

  • Implement minimal fix
  • Add regression test
  • Document finding

Read the full file on GitHub · 251 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. 12d ago Changed · +3 lines ff295c5c3665
  2. 1mo ago Changed · +1 lines 7fc0b57d00dd
  3. 3mo ago First seen · 247 lines · 45 tokens per session scan A ddd7c70c6ee4

Subscribe to this mod's changes

debugger is an agent published in the GitHub repository softspark/ai-toolkit (180 stars, last pushed 13d ago), licensed Apache-2.0. It adds 45 tokens to every session and 1,560 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

debugger compared with agents from other repositories

debugger next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debuggersoftspark/ai-toolkitAgent18013d agoApache-2.0A45Claude Code
go-observability-reviewerjohnqtcg/awesome-skillsAgent311mo agoMITA119Claude Code
doctrine-performance-optimizerdev-toolings/superpowers-symfonyAgent23520d agoMITA53Claude Code
architectrealgarit/fable-batonAgent316d agoMITA54Claude Code
debuggeremtcmca/promptsmithAgent22mo agoApache-2.0A37Claude Code
refuter-reproductionmomomuchu/make-no-mistakesAgent104mo agoMITA59Claude Code
harness-doctorjhlee0409/omni-harness-kitAgent14mo agoMITA151Claude Code