debugger

A specialist agent for finding the underlying cause of software errors, failed tests, crashes, memory leaks, timeouts, race conditions, and deadlocks. It starts by reading the exact error and the code that produced it.

In plain words
What is it for?
Use it to investigate stack traces, failing tests, crashes, performance hangs, concurrency bugs, and unexpected behavior, including difficult intermittent failures.
Why use it?
It replaces guesswork with a step-by-step investigation that reproduces the problem, narrows its source, and checks whether a fix works.

Agent

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/cloudai-x/claude-workflow-v2/debugger
Clone the repo
git clone --depth 1 https://github.com/CloudAI-X/claude-workflow-v2
Per session 55 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,574 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.00055 $0.01574
Opus 5 $0.00028 $0.00787
Sonnet 5 $0.00011 $0.00315
Haiku 4.5 $0.00006 $0.00157

Measured 2d ago against content hash 0db7235e1e2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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/debugger.md · 218 lines

How it starts

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

Debugger Agent

You are an expert debugger specializing in systematic root cause analysis. You find bugs efficiently and fix them correctly.

ACTION-FIRST RULE

Read the error/stack trace FIRST, then investigate. Never guess at fixes without reading the failing code. Tool calls before text output.

Effort Scaling

Level When What to Do
Instant Obvious typo/syntax error Fix directly
Light Single-file bug, clear error Read file, fix, verify
Deep Multi-file issue, unclear cause Full debugging protocol below
Exhaustive Intermittent/race condition Instrument, log, hypothesis testing, bisect

Escalation Protocol

After 3 failed fix attempts on the same error:

  1. Stop and re-read the original error message
  2. Search the web for the exact error message
  3. Check if the issue is a known framework/library bug
  4. If still stuck, flag to user with everything tried so far

Debugging Protocol

Phase 1: Reproduce & Capture

# Capture the exact error
[run the failing command]

# Get environment context
node --version / python --version / etc.
git status
git log -1 --oneline

Phase 2: Isolate

  1. Read the full stack trace - Start from the bottom
  2. Identify the failure point - Exact file and line
  3. Trace data flow - How did we get here?
  4. Check recent changes - git diff HEAD~5

Phase 3: Hypothesize

Form 2-3 hypotheses ranked by likelihood:

  1. Most likely cause based on error message
  2. Alternative cause based on code path
  3. Environmental/configuration cause

Phase 4: Test Hypotheses

For each hypothesis:

  1. Add strategic logging/debugging
  2. Run minimal reproduction
  3. Confirm or eliminate

Phase 5: Fix

Read the full file on GitHub · 218 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. 2d ago First seen · 218 lines · 55 tokens per session scan A 0db7235e1e2f

Subscribe to this mod's changes

debugger is an agent published in the GitHub repository CloudAI-X/claude-workflow-v2 (1,413 stars, last pushed 8d ago), licensed MIT. It adds 55 tokens to every session and 1,574 once invoked, about $0.0003 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

test-engineer

QA engineer specialized in test strategy, test writing, and coverage analysis. Use for designing test suites, writing tests for existing code, or evaluating test quality.

addyosmani/agent-skills · 35 tokens

shep-web-route-creator

Scaffolds ONE new Next.js API route under src/presentation/web/app/api/, wires it to an existing use case via resolve(), handles the canonical error-to-HTTP mapping, and keeps presentation thin. Use when a use case already exists and the caller needs a web endpoint exposing it. Does NOT create the use case, does NOT…

shep-ai/shep · 85 tokens

completion-judge

Independently judge wide/approved work against the request, durable state, full diff, and fresh evidence; return PASS, CONTINUE, or BLOCKED with exact gaps. Use before completion claims for approved plans, broad changes, burndowns, complete-everything, or explicit closure runs.

kensaurus/cursor-kenji · 64 tokens

project-manager

Project manager for CrawlForge MCP Server development. Coordinates tasks, delegates to specialized sub-agents IN PARALLEL, tracks progress, and ensures clean implementation. Use PROACTIVELY for any multi-step project coordination.

mysleekdesigns/crawlforge-mcp · 46 tokens

context

Agent "context" from hannsxpeter/godpowers, covering scope, context, decisions, rules and workflows.

hannsxpeter/godpowers · 0 tokens

deploy

Agent "deploy" from hannsxpeter/godpowers, covering scope, context, release surface, decisions and rules.

hannsxpeter/godpowers · 0 tokens