How codexstar69/bug-hunter works
Bug Hunter is an AI-agent skill for evidence-backed code auditing, with scan-only, single-pass behavior by default. The documented workflow triages risk, plans and retrieves bounded context, runs adversarial review, validates findings, and reports results; optional branches cover verification, benchmark measurement, and approved fixes. The runner’s dependencies are supported by the SOURCE INDEX, while some stage links are documented only in the README. Unsampled subsystems are represented by their exact paths from the tree; their internal calls are not inferred.
Main entry points: run-bug-hunter.cjs Audit runner · schema-runtime.cjs Schema validation · bug-hunter-state.cjs Audit state · triage.cjs Risk triage
Components 24
Run orchestration
- Audit runner
scripts/run-bug-hunter.cjs - Risk triage
scripts/triage.cjs - Adaptive profiles
scripts/adaptive-policy.cjs - Chunk scheduler
scripts/chunk-scheduler.cjs - Source harvesting
scripts/worktree-harvest.cjs
Audit analysis
- Architecture recon
scripts/code-index.cjs - Hypothesis retrieval
scripts/retrieval-planner.cjs - Hunter findings
scripts/run-bug-hunter.cjs - Documentation checks
scripts/doc-lookup.cjs - Skeptic challenges
scripts/run-bug-hunter.cjs - Referee verdicts
scripts/run-bug-hunter.cjs
Artifacts and state
- Artifact planning
scripts/artifact-planner.cjs - Schema validation
scripts/schema-runtime.cjs - Generated validators
scripts/generated-schema-validators.cjs - Audit state
scripts/bug-hunter-state.cjs - State storage
scripts/state-store.cjs - Evidence cache
scripts/evidence-cache.cjs - Audit report
scripts/render-report.cjs
Verification and quality
- Hybrid verification
scripts/hybrid-verifier.cjs - Process runner
scripts/process-runner.cjs - Benchmark quality
scripts/benchmark-suite.cjs - Coverage loop
scripts/experiment-loop.cjs - Approved fixes
scripts/fix-lock.cjs
Other components
- Agent user
Connections 25
- Agent user → Audit runner: requests scan
README.md - Audit runner → Risk triage: invokes
scripts/run-bug-hunter.cjs - Audit runner → Adaptive profiles: selects profile
scripts/run-bug-hunter.cjs - Audit runner → Chunk scheduler: schedules chunks
scripts/run-bug-hunter.cjs - Audit runner → Hypothesis retrieval: plans context
scripts/run-bug-hunter.cjs - Audit runner → Hybrid verification: runs checks
scripts/run-bug-hunter.cjs - Audit runner → State storage: uses state storage
scripts/run-bug-hunter.cjs - Audit runner → Artifact planning: plans artifacts
scripts/run-bug-hunter.cjs - Audit runner → Audit state: manages run state
scripts/run-bug-hunter.cjs - Risk triage → Adaptive profiles: informs profile
README.md - Source harvesting → Audit runner: supplies source
- Audit runner → Architecture recon: performs recon
README.md - Audit runner → Hunter findings: collects findings
README.md - Audit runner → Documentation checks: checks documentation
README.md - Audit runner → Skeptic challenges: challenges claims
README.md - Audit runner → Referee verdicts: resolves evidence
README.md - Audit runner → Evidence cache: reuses evidence
README.md - Audit runner → Audit report: renders report
README.md - Schema validation → Generated validators: validates with
scripts/schema-runtime.cjs - Audit state → Schema validation: validates artifacts
scripts/bug-hunter-state.cjs - State storage → Audit state: uses state commands
scripts/state-store.cjs - Hybrid verification → Process runner: runs processes
scripts/hybrid-verifier.cjs - Benchmark quality → Schema validation: uses schema runtime
scripts/benchmark-suite.cjs - Audit runner → Coverage loop: extends coverage
README.md - Audit runner → Approved fixes: authorizes fixes
README.md