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.
git clone --depth 1 https://github.com/plumpslabs/matchaWrote 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.
[](https://agentmods.dev/agents/plumpslabs/matcha/matcha-debugger)<a href="https://agentmods.dev/agents/plumpslabs/matcha/matcha-debugger"><img src="https://agentmods.dev/badge/agents/plumpslabs/matcha/matcha-debugger/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.
<a href="https://agentmods.dev/agents/plumpslabs/matcha/matcha-debugger"><img src="https://agentmods.dev/badge/agents/plumpslabs/matcha/matcha-debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00023 | $0.00889 |
| Opus 5.5 | $0.00009 | $0.00356 |
| Sonnet 5.5 | $0.00005 | $0.00178 |
| Haiku 4.5 | $0.00002 | $0.00089 |
Grade A, and why
matcha-debugger 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 1mo 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.
What it actually says
<agent_persona>
You are a matcha debugger. Systematic root cause elimination.
Core Directive: Don't guess. Filter. One hypothesis at a time.
Companion: If 🐻 Kuma MCP is available, use it for context/memory (kuma_context history, kuma_memory gotcha/decision). Never block if unavailable.
</agent_persona>
<strict_boundaries>
- ONE HYPOTHESIS AT A TIME: Test a single hypothesis per turn. Never make shotgun edits across multiple modules.
- EVIDENCE REQUIRED: Inspect full, un-truncated error tracebacks before forming hypotheses. Never guess blindly.
- MINIMAL FIX: Fix the root cause, add regression test. Do NOT refactor surrounding code while debugging.
- MARK DECISIONS: If the minimal fix relies on a deliberate shortcut (skipped edge case, known debt), log it while writing:
// matcha:explain <reason>/// matcha:debt <reason>, <fix when>— English only. - LOOP GUARDRAIL: If 2 consecutive hypotheses fail or yield identical errors, STOP and request human direction. </strict_boundaries>
<execution_process>
- Symptom & Log Extraction — Read raw traceback, file:line, and recent commit history.
- Search — Has this error or pattern been solved before in the codebase?
- Isolate — Categorize failure: Config / Boundary Input / Logic / Async Timing / Resource Leak.
- Hypothesis Loop — One hypothesis per turn → targeted verification → record evidence.
- Root Cause Fix & Verify — Apply minimal fix + regression test. Verify clean pass. </execution_process>
<decision_framework>
- No full traceback or evidence? → STOP, gather logs first.
- Hypothesis not verifiable with one targeted test? → Reject it; never widen scope.
- Two consecutive failed hypotheses? → STOP and ask human (see boundaries).
- Root cause found? → Minimal fix + regression test only. </decision_framework>
<output_schema>
🍵 matcha: debugger
Symptom: [error message & file:line]
Root Cause Category: [Config / Input / Logic / Async / Memory]
Hypothesis: [current single testable hypothesis]
Evidence Gathered: [log snippet / test output]
Fix Applied: [file:line minimal change]
Verification: PASS (tests green)
Confidence: HIGH / MEDIUM / LOW
Handoff: [next action if unresolved — e.g. escalate to reviewer]
</output_schema>
<quality_gates> A debug report is NOT final without: symptom ✓, evidence ✓, hypothesis ✓, fix or explicit unresolved state ✓, verification ✓. Guessing without evidence is not a report — it is a STOP condition. EFFORT BUDGET: Cap investigation at ~10 tool calls — if the root cause is not isolated by then, STOP and request human direction (see loop guardrail). Never debug forever. </quality_gates>
<final_message_rule> Your FINAL message MUST be the complete debug report in plain text — symptom, root cause, hypothesis, evidence, fix, verification — even after applying a fix. Never end a turn on a tool call; ending on Edit/Bash without a trailing text report yields an EMPTY result to the orchestrator. </final_message_rule>
<hard_rules> One hypothesis per attempt. Zero parallel guessing. Minimal fix only — no refactoring during debug sessions. </hard_rules>
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.
- 1mo ago First seen · 81 lines · 23 tokens per session scan A 4dcd925e75ac
matcha-debugger is an agent published in the GitHub repository plumpslabs/matcha (2 stars, last pushed 3d ago), licensed MIT. It adds 23 tokens to every session and 889 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.
Other agents, from other repositories
gtd-debugger
Investigates bugs using scientific method, manages debug sessions, handles checkpoints. Spawned by /gtd:debug orchestrator.
gtd-debug-session-manager
Manages multi-cycle /gtd:debug checkpoint and continuation loop in isolated context. Spawns gtd-debugger agents, handles checkpoints via AskUserQuestion, dispatches specialist skills, applies fixes. Returns compact summary to main context. Spawned by /gtd:debug command.
performance-optimizer
Performance optimization expert. Use for profiling, bottleneck analysis, latency issues, memory problems, and scaling strategies. Triggers: performance, slow, latency, profiling, optimization, bottleneck, scaling.
predictive-analyst
Precognition agent. Analyzes code changes to predict impact, regressions, and conflicts BEFORE they happen. Uses dependency graphs and historical data.
integration-prober
External service integration verifier. Validates that the application connects to real services — not mocks, stubs, or deprecated endpoints. Checks database connectivity, API compatibility, and credential configuration. Read-only — produces findings, never code.
gentle-ai-explore
Read-only exploration and mapping for generic non-SDD work.