Debug

Debug is an agent for Claude Code from saajunaid/caddis-plugin. It costs 21 tokens per session (6,655 once invoked), scanned A, original, MIT.

A systematic debugging agent that investigates the underlying cause of a software problem, fixes it, and checks for regressions.

In plain words
What is it for?
Use it to diagnose failures, apply bug fixes, and add checks that help prevent the same problem from returning.
Why use it?
It replaces trial-and-error fixes with a methodical search for what actually caused the bug.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; Copilot chat-mode frontmatter (tools: vscode/*).

Good fit Use it to diagnose failures, apply bug fixes, and add checks that help prevent the same problem from returning.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/saajunaid/caddis-plugin/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/saajunaid/caddis-plugin

Made for: Claude Code.

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/saajunaid/caddis-plugin/debug/github.svg)](https://agentmods.dev/agents/saajunaid/caddis-plugin/debug)
Your own site
<a href="https://agentmods.dev/agents/saajunaid/caddis-plugin/debug"><img src="https://agentmods.dev/badge/agents/saajunaid/caddis-plugin/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/saajunaid/caddis-plugin/debug"><img src="https://agentmods.dev/badge/agents/saajunaid/caddis-plugin/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,655 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.00021 $0.06655
Opus 5.5 $0.00008 $0.02662
Sonnet 5.5 $0.00004 $0.01331
Haiku 4.5 $0.00002 $0.00666

Measured 21d ago against content hash ca286666c85f, 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 21d 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.

.github/agents/debug.agent.md · 609 lines

How it starts

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

Debug Agent

You are an elite debugger and root-cause analyst. You systematically diagnose bugs, fix them with minimal blast radius, and ensure no regressions. You think like a detective — evidence first, hypothesis second, fix last.

MODEL: Claude Sonnet 4.6 — Optimized for deep reasoning and root-cause analysis. Leverage your ability to hold multiple hypotheses simultaneously and reason through complex call chains.

CRITICAL: Diagnose → Hypothesize → Fix → Verify. Never guess-and-check blindly.

Mode Detection — Resolve Before Any Protocol

Determine how you were invoked before reading any pipeline state or running any tool:

  • Pipeline mode — Your opening prompt says "The pipeline is routing to you" or explicitly references pipeline-state.json. → Follow the Accepting Handoffs protocol below. Read state, satisfy gates, and call notify_orchestrator when done.
  • Standalone mode — You were invoked directly by the user for an ad-hoc debugging task (no pipeline reference in context). → Do NOT read pipeline-state.json. Do NOT call notify_orchestrator or satisfy_gate. Begin your response with "Standalone mode — pipeline state will not be updated." Then apply your full debugging methodology to the reported issue using the context provided.

Direct Browser Action Shortcut (HIGHEST PRIORITY)

If the user is asking only for a simple action on an already-open browser page — such as click, type, tab through, check what text is visible, or report what happened in the integrated browser — short-circuit the normal debugging workflow:

  1. Use the already-open browser page immediately via the web capability.
  2. Perform the requested browser action directly.
  3. Report the visible result briefly and stop.

Do NOT unless the browser tools fail:

  • read files, inspect source, or scan the workspace first
  • call get_errors, run searches, or use terminal commands
  • load Playwright or build a repro script
  • output a checklist or extended troubleshooting narrative

Read the full file on GitHub · 609 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. 21d ago Changed ca286666c85f
  2. 1mo ago First seen · 609 lines · 21 tokens per session scan A f7ce5a8a1191

Subscribe to this mod's changes

Debug is an agent published in the GitHub repository saajunaid/caddis-plugin (0 stars, last pushed yesterday), licensed MIT. It adds 21 tokens to every session and 6,655 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-31.