bug-hunter  by codexstar69

Adversarial AI pipeline for code review and autonomous bug fixing

Created 5 months ago
463 stars

Top 64.7% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

Bug Hunter is an open-source AI code review and security vulnerability scanner designed to integrate with various AI coding agents. It employs an adversarial multi-agent pipeline—Hunter, Skeptic, and Referee—to identify security vulnerabilities, logic errors, and runtime bugs with a focus on minimizing false positives. The tool then autonomously fixes confirmed bugs using a safe canary rollout process, including git branching, test baselines, and automatic rollback on failure.

How It Works

The core innovation lies in its adversarial multi-agent system. A Hunter agent finds potential bugs, a Skeptic agent attempts to disprove these findings, and a Referee agent delivers the final verdict. This process ensures only thoroughly validated issues are reported, mitigating the false positive overload common in other AI review tools. Confirmed bugs are addressed via an automated, safety-first "Fixer" pipeline that includes creating dedicated git branches, establishing test baselines, committing fixes individually with rollback capabilities, and re-scanning post-fix to catch regressions.

Quick Start & Requirements

  • Installation: Install via npx skills add codexstar69/bug-hunter or npm install -g @codexstar/bug-hunter, followed by bug-hunter install. Cloning the repository to ~/.agents/skills/bug-hunter is also supported.
  • Prerequisites: Node.js 18+ is recommended. The core pipeline functions without it.
  • Compatibility: Works with Claude Code, Cursor, Codex CLI, Windsurf, Kiro, Copilot, Opencode, Pi, and any AI agent capable of reading files and executing shell commands.
  • Documentation: Usage examples are provided via CLI flags in the README.

Highlighted Details

  • Adversarial pipeline (Hunter, Skeptic, Referee) designed to significantly reduce false positives.
  • Safe auto-fix mechanism with canary rollout: dedicated git branches, test baselines, per-fix commits, automatic rollback on failure, and post-fix re-scanning.
  • Comprehensive security scanning, including STRIDE threat modeling, dependency CVE scanning with reachability analysis, and CVSS 3.1 scoring for identified vulnerabilities.
  • Supports a wide range of languages (TypeScript, JavaScript, Python, Go, Rust, Java, Kotlin, Ruby, PHP) and popular frameworks (Express, Next.js, Django, Flask, FastAPI, Gin, Spring Boot, Rails, Laravel).

Maintenance & Community

No specific details regarding maintainers, community channels (like Discord/Slack), or roadmap were provided in the README excerpt.

Licensing & Compatibility

The project is licensed under the MIT License, which is permissive and generally compatible with commercial use and closed-source linking.

Limitations & Caveats

The tool focuses on detecting runtime behavioral bugs, security vulnerabilities, and logic errors, explicitly excluding style, naming conventions, or TODO comments. The effectiveness of the auto-fix feature is contingent on the quality of existing tests and the complexity of the bugs.

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
0 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.