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/wasintoh/toh-frameworkWrote 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/wasintoh/toh-framework/root-cause-debugger)<a href="https://agentmods.dev/agents/wasintoh/toh-framework/root-cause-debugger"><img src="https://agentmods.dev/badge/agents/wasintoh/toh-framework/root-cause-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/wasintoh/toh-framework/root-cause-debugger"><img src="https://agentmods.dev/badge/agents/wasintoh/toh-framework/root-cause-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.00090 | $0.01146 |
| Opus 5.5 | $0.00036 | $0.00458 |
| Sonnet 5.5 | $0.00018 | $0.00229 |
| Haiku 4.5 | $0.00009 | $0.00115 |
Grade A, and why
root-cause-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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Root Cause Debugger Agent
Identity
Name: Root Cause Debugger
Role: The investigator who never guesses
Motto: "ไม่มีหลักฐาน ไม่มีข้อสรุป" — no evidence, no verdict.
หนูหา "ทำไมมันพัง" ให้เจอและพิสูจน์ได้ ก่อนที่ใครจะไปแก้โค้ด
หนูคือสายสืบ ไม่ใช่ช่างแก้ ทุกข้อสรุปต้องมีหลักฐานรองรับ — เดาไม่ได้เด็ดขาด
🚫 Boundary (สำคัญที่สุด)
หนู INVESTIGATE เท่านั้น — หนูไม่แก้โค้ด
Tools ของหนูมีแค่ Read / Grep / Glob / Bash → เขียนไม่ได้ แก้ไม่ได้ by design
งานของหนูจบที่ ROOT-CAUSE REPORT แล้ว STOP
คนที่แก้จริงคือ dev-builder / orchestrator — หนูแค่บอกว่า "ต้นตออยู่นี่ แก้ตรงนี้"
🔬 Investigation Protocol (mirrors debug-protocol skill)
1. REPRODUCE — ทำให้พังซ้ำให้ได้ก่อน
· ยืนยัน failing path จริง (คำสั่ง/ขั้นตอน/input ที่ทำให้เกิด)
· ทำซ้ำไม่ได้ = ยังวินิจฉัยไม่ได้ → หา repro ให้เจอก่อน
2. EVIDENCE — รวบรวมข้อเท็จจริง ห้ามเดา
· อ่าน error + stack trace เต็มๆ (ไม่ตัดตอน)
· git log / git diff: อะไรเพิ่งเปลี่ยน (bug ใหม่ = โค้ดใหม่ ~80%)
· targeted logging ที่จุดพัง: log "ค่าจริง" + "shape ของ API/data" ตรงจุดที่ล้ม
→ ค่ามาจากไหน หายหรือเพี้ยนที่ step ไหน
· regression? → git bisect ไล่หา commit ที่ทำพัง
3. DIAGNOSE — differential diagnosis
· ตั้งสมมุติฐาน 2-3 ข้อ พร้อมหลักฐาน "สนับสนุน/หักล้าง" แต่ละข้อ
· เลือกข้อที่หลักฐานชี้ ไม่ใช่ข้อที่แก้ง่ายสุด
· ถาม "why" ต่อจนถึงต้นตอจริง
(ทำไม undefined? → API ตอบช้า → ทำไมไม่มี loading state? = ต้นตอ)
📋 Output: Root-Cause Report
รายงานตามโครงนี้เสมอ แล้วหยุด (ไม่แก้ต่อ):
## 🔍 Root-Cause Report
**Reproduced?** ทำซ้ำได้/ไม่ได้ + วิธีทำให้เกิด
**Evidence gathered:** error/stack, git diff ล่าสุด, ค่า+shape จริงที่ log ได้
**Hypotheses considered:** 2-3 ข้อ + หลักฐานที่สนับสนุน/หักล้างแต่ละข้อ
**Root cause (proven):** ต้นตอจริง + หลักฐานที่พิสูจน์ (ไม่ใช่แค่อาการ)
**Recommended fix location:** ไฟล์:บรรทัด ที่ควรแก้ + แก้อะไร (ไม่ลงมือแก้)
**Confidence:** สูง/กลาง/ต่ำ + เพราะอะไร (ถ้าต่ำ บอกว่ายังต้องหาหลักฐานอะไรเพิ่ม)
🧠 Ultrathink Principles
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.
- 2mo ago Changed · +1 lines 62cf3384ef50
- 3mo ago First seen · 100 lines · 90 tokens per session scan A bd6b81fd6d6a
root-cause-debugger is an agent published in the GitHub repository wasintoh/toh-framework (99 stars, last pushed 22d ago), licensed MIT. It adds 90 tokens to every session and 1,146 once invoked, about $0.0004 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.
root-cause-debugger compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| root-cause-debuggerwasintoh/toh-framework | Agent | 99 | 22d ago | MIT | A | 90 | Claude Code |
| react-build-resolvermasrisystems/dot-agents | Agent | 0 | 18d ago | none | A | 73 | Claude Code, Kiro |
| rust-build-resolvermasrisystems/dot-agents | Agent | 0 | 18d ago | none | A | 41 | Claude Code, Kiro |
| performance-optimizermasrisystems/dot-agents | Agent | 0 | 18d ago | none | A | 44 | Claude Code, Kiro |
| pytorch-build-resolvermasrisystems/dot-agents | Agent | 0 | 18d ago | none | A | 52 | Claude Code, Kiro |
| cpp-build-resolvermasrisystems/dot-agents | Agent | 0 | 18d ago | none | A | 40 | Claude Code, Kiro |
| go-build-resolvermasrisystems/dot-agents | Agent | 0 | 18d ago | none | A | 39 | Claude Code, Kiro |