Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Evidence-based AI bug investigation and fixes: adversarial review, regression proof, isolated worktrees and review receipts for Claude Code and Codex.
Jump to setup instructionsFetched from the repository for this visit.
Bugsweep is a skill for Claude Code and Codex. It investigates runtime bugs across a repository, challenges each finding, and can fix confirmed defects in an isolated worktree. It records unresolved work in the project's tracker and verifies cleanup of the exact temporary resources it owns.
Current development: executable proof, native review receipts, isolated execution, semantic analyzer imports, and held-out evaluation are being strengthened. Pure checks verify their local contracts. Actual host runs, isolation tests, budget enforcement, and human calibration are separate release evidence; this source does not establish a measured false-positive rate or superiority over another tool.
Priority, graph, variant and CodeQL/Semgrep hints reorder investigation. They never confirm a finding or remove files from the requested scope. Model confidence remains uncalibrated; repeated model reviews do not establish statistical independence.
Download and inspect the installer, then choose a host:
curl -fsSL https://raw.githubusercontent.com/shanemhamilton/bugsweep/main/install.sh -o /tmp/bugsweep-install.sh
bash /tmp/bugsweep-install.sh --claude
# or --codex / --all
The current installer defaults to the latest non-draft, non-prerelease stable release,
resolves its exact commit, and records installation provenance. Use --version v0.8.0
for an exact release or --edge to explicitly select current main. The downloaded
installer itself should also be pinned and reviewed when reproducible bootstrap matters.
See the published releases.
CLAUDE_SKILLS_DIR controls the Claude skills root. CODEX_DIR controls the Codex root,
including its skills and registration file. Updates preserve local configuration, refuse
unrelated modified installed files, and use recoverable staged replacement. Failed
multi-host installs report prior successes and the failed destination.
/bugsweep --update runs the updater belonging to the active installation. It preserves
that installation's custom root; it does not silently switch to another host's default
copy. Update before starting a run, then invoke the skill again.
| Request | Outcome |
|---|---|
/bugsweep | Detect and record a bounded audit; no source edits. |
/bugsweep src/api | Keep the hunt within the selected path. |
/bugsweep --approve | Ask before each regression-test/fix edit; all proof gates still apply. |
/bugsweep --fix | Fix and locally land eligible work during one planned pass. |
/bugsweep --autonomous | Repeat within the configured runtime, iteration and fix caps. |
/bugsweep --recall | Also retain plausible unresolved findings for human review. |
Start with detection to see the findings and capability report. Fixes require a configured external execution policy and native review capability. Without those, Bugsweep continues source review and records confirmed work for a human; it does not execute project commands directly on the host.
Edit the installed configuration to set runtime/iteration
caps, scope exclusions and existing test/build commands. Python 3.12+ and
jsonschema==4.26.0 are required for structured execution, proof and closeout.
The installer checks these prerequisites without installing dependencies.
Set execution.policy_file to an operator-owned absolute path outside the target. The
policy pins the Docker executable and image, non-root identity, resources, exact allowed
environment and denied network. The provider checks Docker's effective settings before
start and records actual readback. Tests write declared outputs to /bugsweep-output.
See execution evidence for fields and repro examples.
adversarial.hosts pins approved native host/model IDs. Native reviews require a separately
configured approved proxy profile with explicit caps, pinned adapter and native clients.
Real API credentials remain in the proxy's external secret mount. No ambient host login
or executable download is used as a fallback.
Optional analyzers.imports names existing CodeQL/Semgrep commands and SARIF outputs.
Only configured commands run through the provider; the importer validates coordinator
receipts, source identity, paths and bounded traces. Missing and rejected imports remain
visible. No installed-tool discovery or automatic rule downloads occur.
finalize.sh creates report.md, run-summary.json and a pending closeout handoff. Audit
coverage (complete, partial, stalled) is distinct from operational completion.
bash "$SKILL_ROOT/scripts/run-status.sh" "$RUN_DIR" --json
Exit 0 requires verified COMPLETED_LANDED or COMPLETED_RECORDED, no remaining blocker,
and exact branch/worktree absence. Exit 10 means pending or unknown; 2 means invalid
state. A crash remains pending and can be reconciled using the recorded identity.
Only verified fixes can locally land through the integration gate. Unresolved work is tracker-recorded; unique unlanded work needs verified recovery escrow before deletion. Bugsweep never pushes during an audit. Cleanup preserves dirty, live and ambiguous work; normal closeout never invokes a repository-wide reaper. See the closeout contract.
The execution provider enforces deadlines on its child processes. Model reasoning still uses phase checkpoints; a hard kill cannot guarantee immediate finalization. Reports retain deferred coverage and partial work rather than calling an unfinished audit clean.
The benchmark compares Claude and Codex separately, using repeated, interleaved current-skill, previous-release and no-skill runs with the same frozen caps. Its current mode evaluates selected skill instructions in a read-only detection task; separate native stage calls support frozen pipeline variants. It does not measure the complete operational skill, and actual stage effects remain unverified. It retains failed slots and unknown accounting, source-bound finding evidence, human calibration, rejected-candidate audits and uncertainty. A test fixture is not live evidence. Fresh corpus and gold-oracle execution must be validated before results count as held-out.
Read CONTRIBUTING.md for pure local checks and separate Git-backed CI. The skill is the concise operating contract; phase prompts contain mode-specific details. SERVICE-INVENTORY.md maps the shared implementations so changes reuse the existing execution and proof boundaries.
GitHub checked 15h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.