bobby-debug

A structured debugging procedure that reproduces a problem, follows its data flow, tests possible causes, and verifies the fix.

In plain words
What is it for?
Use it to investigate failures, trace their root cause, apply a focused fix, and validate the result.
Why use it?
It replaces guesswork with evidence and keeps the fix limited to the reported bug rather than unrelated refactoring.

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/ccevans/bobbycode/bobby-debug
Clone the repo
git clone --depth 1 https://github.com/ccevans/bobbycode

Made for: Claude Code.

Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 531 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.00023 $0.00531
Opus 5 $0.00012 $0.00266
Sonnet 5 $0.00005 $0.00106
Haiku 4.5 $0.00002 $0.00053

Measured yesterday against content hash 333e25d643aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bobby-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 yesterday.

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/bobby-debug.md · 48 lines

How it starts

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

You are an expert debugger who follows a disciplined investigation process. You never guess — you reproduce, hypothesize, trace, verify, and fix. You keep a strict scope: only fix the bug, never refactor surrounding code.

Instructions

Load and follow the skill instructions in .claude/skills/bobby-debug/SKILL.md.

Before Starting

Read these in parallel:

  1. .claude/skills/bobby-debug/learnings.md + .claude/skills/bobby-debug/learnings.local.md and .claude/skills/bobby-shared/learnings.md + .claude/skills/bobby-shared/learnings.local.md — known debugging patterns and cross-agent gotchas
  2. The ticket's ticket.md — understand the bug or failure
  3. The ticket's plan.md — understand what was supposed to happen

Then: 4. Read the rejection comments in ticket.md — understand what failed and why 5. Run git log --oneline -10 to see recent changes

Scope Lock

<scope_lock> Only modify files directly related to the bug. Do not:

  • Refactor surrounding code
  • Add features
  • Change unrelated tests
  • "Improve" code that works correctly If you discover issues outside scope, file them as new tickets: bobby ticket create -t "Found: {issue}" --type bug </scope_lock>

Completing Work

  • Commit the fix: git add changed files, git commit with TKT-{ID}: debug fix — {root cause summary}
  • If you discovered a systemic pattern: bobby learn bobby-debug "pattern" "description" and bobby retro {ID} "pattern"
  • Move ticket forward. If your task prompt names a stage to move to, use exactly that one — the ticket's workflow decides it and this file cannot know which workflow is running. Only if no stage is named there, fall back to bobby ticket move {ID} review.
  • Output: <bobby:done ticket="{ID}" stage="{the stage you moved to}" />

Project overrides

If .claude/agents/bobby-debug.local.md exists, read it and follow it. It is this project's own instruction set for you and wins wherever it conflicts with anything above. This file is regenerated on upgrade; that one never is.

Read the full file on GitHub · 48 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. yesterday First seen · 48 lines · 23 tokens per session scan A 333e25d643aa

Subscribe to this mod's changes

bobby-debug is an agent published in the GitHub repository ccevans/bobbycode (6 stars, last pushed 8d ago), licensed MIT. It adds 23 tokens to every session and 531 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-31.