bughunt

Reviewed at commit 88382e7 New version, not yet reviewed

Caution: Runs commands the model picks through its proof tool and temporarily reverts your modified files with git restore to check each fix; a crash mid-check leaves them reverted.

Runs proof-driven bug hunt rounds with /bughunt: each round proves one bug with a failing command the mod runs itself, fixes it, and proves the fix, and the…

Made by
Kerem Gok
What we checked

/bughunt starts up to 25 rounds in which Claude proves a bug with a failing command, fixes it and proves the fix, and the mod sends each next round itself. It blocks edits until a failing proof exists, runs the proof commands itself, and briefly reverts your changed files with git to check the fix. /bughunt collab runs three read-only reviewer agents. Uses tokens; no network calls.

Review details

Static review of the source at the pinned commit; not run. Registers command bughunt, tools mcp__bughunt__proof, found and collab, and read-only agents scanner, planner and critic (tools Read, Grep, Glob). Hooks: session.start, command.run, prompt.submit (a person's own prompt ends a running hunt; collab hand-backs are dropped), skill.prompt, tool.call (Skill, Edit, Write, NotebookEdit gate edits until the hunt skill is open and a FAIL proof is recorded, outside the proof directory, tests and the target scope), agent.spawn (denied during a round), agent.offer, tool.describe, turn.complete (decides whether the next round is sent). Next rounds and the collab report are submitted through the bundled command bughunt:send (disable-model-invocation) as the person's own words, up to 25 rounds per hunt. The proof tool calls $.process.run with an argv chosen by the model, in the project (or a model-chosen cwd), with a 300 s timeout, handled directly in the tool.call hook; whether Claude Code's permission prompt applies to this tool was not determinable from the source, so treat it as running model-chosen commands without a prompt. After an accepted PASS the revert check runs git stash create, git diff --name-only, then git restore --source=<snapshot> --worktree on the production files changed since the FAIL, reruns the proof, and restores the fix in a finally block; the snapshot is stored in $.store and recoverFix at the next session start puts the fix back (or tells the user where it is) after a crash. Untracked new files are not snapshotted. Proofs are kept in .temp_files/bughunt/<id> in the project; the skill tells Claude to delete them. State kept in $.store: enabled flag and the restore record. Sidebar and log lines show progress. No network calls, no environment or credential reads, no obfuscated code. Not reviewed: eslint.config.js and Makefile (dev tooling, not loaded by the mod).

What it uses
  • Reads your prompts: yes
  • Sees tool calls: yes
  • Blocks or changes tool calls: yes
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): yes
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events

Runs proof-driven bug hunt rounds with /bughunt: each round proves one bug with a failing command the mod runs itself, fixes it, and proves the fix, and the loop stops on a blocked or unverified round. /bughunt collab runs a read-only scanner, planner and critic in sequence.

Made this mod? Add a badge to your README

modsforClaude badge for bughunt

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/bughunt.svg)](https://modsforclaude.com/mods/bughunt/)

← All mods