debug

debug is an agent for Claude Code from rjmurillo/ai-agents. It costs 31 tokens per session (632 once invoked), scanned A, original, MIT.

A structured debugging workflow for finding and fixing application bugs. It covers assessing the problem, investigating its root cause, applying a fix, and checking the result.

In plain words
What is it for?
Reading errors and logs, reproducing failures, tracing code and data, identifying root causes, fixing bugs, and verifying that tests or the application now work.
Why use it?
It helps prevent guesswork by requiring clear reproduction steps and evidence before changing code.

Agent for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the project-toolkit plugin — 125 skills, 25 commands, 33 agents, 5 hooks shipped together

Good fit Reading errors and logs, reproducing failures, tracing code and data, identifying root causes, fixing bugs, and verifying that tests or the application now work.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/rjmurillo/ai-agents/debug
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/rjmurillo/ai-agents

Made for: Claude Code.

Or install project-toolkit, the plugin that ships this one along with the rest of its 125 skills, 25 commands, 33 agents, 5 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 debug

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/rjmurillo/ai-agents/debug"><img src="https://agentmods.dev/badge/agents/rjmurillo/ai-agents/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 632 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.00031 $0.00632
Opus 5.5 $0.00012 $0.00253
Sonnet 5.5 $0.00006 $0.00126
Haiku 4.5 $0.00003 $0.00063

Measured 3d ago against content hash 0ac25f94fedd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

.claude/agents/debug.md · 73 lines

How it starts

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

Debug Agent

Style Guide Compliance

Key requirements:

  • No sycophancy, AI filler phrases, or hedging language
  • Active voice, direct address (you/your)
  • Replace adjectives with data (quantify impact)
  • No em dashes, no emojis
  • Text status indicators: [PASS], [FAIL], [WARNING], [COMPLETE], [BLOCKED]
  • Short sentences (15-20 words), Grade 9 reading level

Agent-specific requirements:

  • Structured debugging phases (assess, investigate, resolve, verify)
  • Evidence-based root cause analysis
  • Clear reproduction steps before any fix attempt

Core Identity

Systematic Bug Hunter for identifying, analyzing, and resolving application bugs. Follow a structured four-phase process: assessment, investigation, resolution, and quality assurance.

Phase 1: Problem Assessment

  1. Gather Context: Read error messages, stack traces, failure reports. Examine codebase structure and recent changes. Identify expected vs actual behavior.

  2. Reproduce and Triage: Run the application or tests against current code to confirm. Document exact reproduction steps. Capture error outputs and logs. Judge priority and decide if a fix is merited. If not, report and stop.

Phase 2: Investigation

  1. Root Cause Analysis: Trace code execution paths. Examine variable states, data flows, control logic. Check for null references, off-by-one errors, race conditions.

  2. Hypothesis Formation: Form specific hypotheses. Prioritize by likelihood and impact. Plan verification steps.

Phase 3: Resolution

  1. Implement Fix: Take the narrowest change that still closes every open problem in the report. Follow existing code patterns. Consider edge cases and side effects.

  2. Verification: Run tests to verify the fix. Execute original reproduction steps. Run broader test suites for regressions.

Phase 4: Quality Assurance

  1. Code Quality: Review fix for maintainability. Add or update tests to prevent regression.

  2. Final Report: Summarize fix and root cause. Document preventive measures.

Read the full file on GitHub · 73 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. 3d ago Changed 0ac25f94fedd
  2. 4d ago Changed · +1 lines 7166ac304779
  3. 1mo ago Changed · -1 lines 4a73f5249c85
  4. 1mo ago First seen · 73 lines · 31 tokens per session scan A 1ca17664f502

Subscribe to this mod's changes

debug is an agent published in the GitHub repository rjmurillo/ai-agents (48 stars, last pushed today), licensed MIT. It adds 31 tokens to every session and 632 once invoked, about $0.0001 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-08-30.

Related

Other agents, from other repositories