Home / Tools / Root Cause Kit

AI / RAG

Root Cause Kit

Make Claude Code reproduce, shrink, bisect and prove the fix before it changes code.

For AI agents: a plain list of every tool, with buy and free links, is in llms.txt.

Root Cause Kit — Make Claude Code reproduce, shrink, bisect and prove the fix before it changes code.

A root-cause skill, 6 slash commands, 3 tested scripts (log triage, flaky test check, safe git bisect) and 3 templates, so your agent finds the real cause instead of hiding the bug.

What it does

  • flaky_check.py runs a test N times and says FLAKY or STABLE, the pass rate, and the lines that only show up in failing runs.
  • bisect_run.py runs git bisect in a throwaway worktree, so your branch and uncommitted work are never touched, then names the first bad commit.
  • Hard rules for the agent: no catch-and-ignore, no raised timeouts to hide races, no deleting failing tests. Plugin folder, install.sh and tests included.

Before and after

The command to run

sh install.sh /path/to/your/project

What you do next

Then run /log-triage logs/app.log in Claude Code. The agent reproduces the top problem, fixes the cause, proves it, and writes a short RCA.

flaky_check cannot force a rare flake to show up, so raise --runs for rare ones. bisect needs a command whose exit code tells good from bad.

Get it

For your computer · Gumroad · $12

Fixed $12. Python 3.9 or later, no installs.

Free: Root Cause Lite · Gumroad · Free

Log triage and the lite skill. MIT license.

FAQ

What does this tool do?

Make Claude Code reproduce, shrink, bisect and prove the fix before it changes code. A root-cause skill, 6 slash commands, 3 tested scripts (log triage, flaky test check, safe git bisect) and 3 templates, so your agent finds the real cause instead of hiding the bug.

What does it cost?

For your computer on Gumroad costs $12. Fixed $12. Python 3.9 or later, no installs. Free: Root Cause Lite on Gumroad costs Free. Log triage and the lite skill. MIT license.

Will you see my files?

The download tools run on your computer, so those files stay with you. The Apify tools run in your own Apify account. This website does not take uploads.