debug

debug is a command for Claude Code from sairam0424/MindForge. It costs 13 tokens per session (944 once invoked), scanned A, original, MIT.

A guided debugging command for finding the cause of a software problem. It collects symptoms, reproduction steps, history, changes, and error details before investigating.

In plain words
What is it for?
Use it to investigate regressions, new features that never worked, environment differences, data-related failures, and integration problems.
Why use it?
It replaces guesswork with a repeatable process for narrowing down failures. It also checks whether the problem matches mistakes or patterns recorded from earlier work.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to investigate regressions, new features that never worked, environment differences, data-related failures, and integration problems.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sairam0424/mindforge/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/sairam0424/MindForge

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/commands/sairam0424/mindforge/debug.svg)](https://agentmods.dev/commands/sairam0424/mindforge/debug)
Your own site
<a href="https://agentmods.dev/commands/sairam0424/mindforge/debug"><img src="https://agentmods.dev/badge/commands/sairam0424/mindforge/debug.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 944 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.00013 $0.00944
Opus 5 $0.00006 $0.00472
Sonnet 5 $0.00003 $0.00189
Haiku 4.5 $0.00001 $0.00094

Measured 4d ago against content hash c9755e1eba31, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 4d 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/commands/mindforge/debug.md · 134 lines

How it starts

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

MindForge — Debug Command

Usage: /mindforge:debug [description]

Systematic debugging using the Debug Specialist persona with full RCA protocol.

Activation

Load .mindforge/personas/debug-specialist.md immediately. This command runs entirely in that persona for its full duration.

Step 0 — Initial Intelligence Check

Read AGENTS_LEARNING.md before intake. Check the "Mistakes Observed" and "Anti-Patterns" sections to see if this issue matches a known historical failure.

Step 1 — Intake

Ask the user:

  1. "Describe the problem. What is happening vs. what should happen?"
  2. "Can you reproduce it reliably? If yes: what are the exact steps?"
  3. "When did this start? Was it working before? What changed?"
  4. "Do you have an error message or stack trace? Paste it here."

Capture all answers before proceeding.

Step 2 — Triage

Classify the issue immediately:

  • Regression (was working, now broken) → check recent commits
  • Never worked (new feature failing) → check the plan and verify step
  • Environment issue (works locally, fails in CI) → check environment diffs
  • Data issue (specific data causes failure) → check data shape assumptions
  • Integration issue (fails when calling external service) → check contracts

Report classification to user: "This looks like a [type] issue. Here's my approach..."

Step 3 — Follow Debug Specialist protocol

Execute the full protocol from debug-specialist.md:

  1. Reproduce
  2. Isolate
  3. Read the error
  4. Check recent changes
  5. Instrument
  6. Form hypothesis
  7. Test hypothesis (write a failing test)
  8. Fix
  9. Verify (test from step 7 now passes, no regressions)
  10. Document

At each step, report what was found before moving to the next step. Do not skip steps or combine them.

Step 3b — Full test suite verification (mandatory)

After the fix and targeted verify pass, run the project's full test suite. Do not mark the debug task complete if any tests fail.

Step 4 — Check recent git history

git log --oneline -20
git diff HEAD~[N] HEAD -- [suspected file]

Read the full file on GitHub · 134 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. 4d ago First seen · 134 lines · 13 tokens per session scan A c9755e1eba31

Subscribe to this mod's changes

debug is a command published in the GitHub repository sairam0424/MindForge (0 stars, last pushed 4d ago), licensed MIT. It adds 13 tokens to every session and 944 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-09-03.