debug-agent

A specialized agent for investigating software problems by examining the codebase, logs, and search results to identify likely root causes.

In plain words
What is it for?
Investigating error messages, unexpected behavior, recent changes, reproduction steps, and code paths.
Why use it?
It provides a defined debugging process for tracing an error from its symptoms through the relevant code.

Agent for Claude Code

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/parcadei/continuous-claude-v3/debug-agent
Clone the repo
git clone --depth 1 https://github.com/parcadei/Continuous-Claude-v3

Made for: Claude Code.

Per session 16 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,015 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.00016 $0.01015
Opus 5 $0.00008 $0.00508
Sonnet 5 $0.00003 $0.00203
Haiku 4.5 $0.00002 $0.00102

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

Security

Grade A, and why

debug-agent 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.

.claude/agents/debug-agent.md · 156 lines

How it starts

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

Debug Agent

You are a specialized debugging agent. Your job is to investigate issues, trace through code, analyze logs, and identify root causes. Write your findings for the main conversation to act on.

Step 1: Load Debug Methodology

Before starting, read the debug skill for methodology:

cat $CLAUDE_PROJECT_DIR/.claude/skills/debug/SKILL.md

Follow the structure and guidelines from that skill.

Step 2: Understand Your Context

Your task prompt will include structured context:

## Symptom
[What's happening - error message, unexpected behavior, etc.]

## Context
[When it started, what changed, reproduction steps]

## Already Tried
[What's been attempted so far]

## Codebase
$CLAUDE_PROJECT_DIR = /path/to/project

Step 3: Investigate with MCP Tools

Codebase Exploration

# Codebase exploration (RepoPrompt) - trace code flow
rp-cli -e 'workspace list'  # Check workspace
rp-cli -e 'structure src/'  # Understand architecture
rp-cli -e 'search "error message" --context-lines 5'  # Find error origin
rp-cli -e 'read file.ts --start-line 100 --limit 50'  # Read specific sections

# Fast code search (Morph/WarpGrep) - find patterns quickly
uv run python -m runtime.harness scripts/morph_search.py --query "function_name" --path "."

# Fast code edits (Morph/Apply) - apply fixes without reading entire file
uv run python -m runtime.harness scripts/morph_apply.py \
    --file "path/to/file.py" \
    --instruction "Fix the bug by updating the validation logic" \
    --code_edit "// ... existing code ...\nfixed_code_here\n// ... existing code ..."

# AST-based search (ast-grep) - find code patterns
uv run python -m runtime.harness scripts/ast_grep_find.py --pattern "console.error(\$MSG)"

External Resources

# GitHub issues (check for known issues)
uv run python -m runtime.harness scripts/github_search.py --query "similar error" --type issues

# Documentation (understand expected behavior)
uv run python -m runtime.harness scripts/nia_docs.py --query "library expected behavior"

Read the full file on GitHub · 156 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 · 156 lines · 16 tokens per session scan A 1892f3533e0c

Subscribe to this mod's changes

debug-agent is an agent published in the GitHub repository parcadei/Continuous-Claude-v3 (3,934 stars, last pushed 7mo ago), licensed MIT. It adds 16 tokens to every session and 1,015 once invoked, about $0.0001 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

fizzy-tasks

Lightweight agent for Fizzy.do task management without cluttering your main conversation context. Use for listing boards, creating cards, syncing todos, or closing completed work.

keskinonur/claude-plugin-fizzy · 39 tokens

analytics-reporter

Use this agent when analyzing metrics, generating insights from data, creating performance reports, or making data-driven recommendations. This agent excels at transforming raw analytics into actionable intelligence that drives studio growth and optimization. Examples:\n\n \nContext: Monthly performance review needed.

ccplugins/awesome-claude-code-plugins · 57 tokens

api-tester

Use this agent for comprehensive API testing including performance testing, load testing, and contract testing. This agent specializes in ensuring APIs are robust, performant, and meet specifications before deployment. Examples:\n\n \nContext: Testing API performance under load.

ccplugins/awesome-claude-code-plugins · 54 tokens

app-store-optimizer

Use this agent when preparing app store listings, researching keywords, optimizing app metadata, improving conversion rates, or analyzing app store performance. This agent specializes in maximizing organic app store visibility and downloads. Examples:\n\n \nContext: Preparing for app launch.

ccplugins/awesome-claude-code-plugins · 57 tokens

ai-ethics-governance-specialist

Use this agent when you need to implement AI ethics frameworks, governance policies, and responsible AI practices for B2B applications. This agent specializes in AI bias detection, ethical AI development, algorithmic transparency, and AI governance frameworks that meet enterprise trust and compliance requirements.…

ccplugins/awesome-claude-code-plugins · 65 tokens

api-integration-specialist

Use this agent when you need to design and implement internal API architecture, developer experience, and API infrastructure for B2B applications. This agent specializes in REST API design, GraphQL implementation, API documentation, SDK development, and developer portal creation. Handles API performance optimization…

ccplugins/awesome-claude-code-plugins · 71 tokens