Skip to content

Commit 4bea477

Browse files
committed
docs: restore complete product guide
1 parent 183e0a9 commit 4bea477

16 files changed

Lines changed: 972 additions & 108 deletions

‎CHANGELOG.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2222

2323
- Agent-neutral natural-language requests lead the README and installer output;
2424
slash commands are documented as an optional agent interface.
25+
- README restores detailed adversarial review, security classification, threat
26+
modeling, dependency scanning, fix safety, CI/CD, language, framework, and
27+
architecture coverage while keeping fast onboarding above the fold.
28+
- Current-source installation examples use the GitHub source archive until npm
29+
`latest` reaches `3.1.1`.
30+
- Approval, preview, scope, canary, commit, and rollback documentation states
31+
the limits of the current runtime instead of promising unenforced behavior.
2532
- Package installation has no lifecycle script; setup starts only when the
2633
user runs the explicit install command.
2734
- Explicit agent selection is the recommended installation path.
@@ -41,6 +48,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4148
parser and reports other ecosystems as `scanner-unsupported`.
4249
- Source-only fixture guidance no longer implies that the npm package contains
4350
development fixtures.
51+
- Hunter output instructions no longer request trailing prose after the
52+
canonical JSON array.
4453

4554
## [3.1.0] - 2026-08-03
4655

‎README.md‎

Lines changed: 672 additions & 34 deletions
Large diffs are not rendered by default.

‎bin/bug-hunter‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,8 @@ function info() {
636636
console.log('');
637637
}
638638

639-
console.log(' Install: npx --yes @codexstar/bug-hunter install --agent <name>');
640-
console.log(' Verify: npx --yes @codexstar/bug-hunter doctor --agent <name>');
639+
console.log(' Install: npx --yes https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz install --agent <name>');
640+
console.log(' Verify: npx --yes https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz doctor --agent <name>');
641641
console.log(' Repo: https://github.com/codexstar69/bug-hunter');
642642
console.log('');
643643
}

‎docs/agent-installation.md‎

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,26 @@ prompt: |
77
can we do that so everything is end to end seamless and anyone and
88
specially agents can understand easily how to use it all properly
99
10+
you removed a lot of content that helped rank it om google - bring it back
11+
1012
Use @README.md, @bin/bug-hunter, @package.json,
1113
@docs/getting-started.md, and @docs/troubleshooting.md as source material.
1214
---
1315

1416
# Agent installation
1517

16-
## Install from npm
18+
## Install the current GitHub source
1719

1820
Pass the target explicitly:
1921

2022
```bash
21-
npx --yes @codexstar/bug-hunter install --agent codex
23+
npx --yes https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz install --agent codex
2224
```
2325

26+
The npm `latest` tag still points to an older release while `3.1.1` publishing
27+
is pending. After npm catches up, `@codexstar/bug-hunter` can replace the
28+
GitHub package specifier.
29+
2430
The installer copies the complete managed runtime and writes
2531
`.bug-hunter-install-manifest.json`. Repeating the command performs an atomic
2632
upgrade. Managed files are replaced, while files not listed in the previous
@@ -44,7 +50,7 @@ Install into several targets by running the command once for each target.
4450
## Verify a target
4551

4652
```bash
47-
npx --yes @codexstar/bug-hunter doctor --agent codex
53+
npx --yes https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz doctor --agent codex
4854
```
4955

5056
Target verification checks:
@@ -62,16 +68,16 @@ The check ignores user-owned files that are outside the managed manifest.
6268
Use `--path` when an agent reads skills from another directory:
6369

6470
```bash
65-
npx --yes @codexstar/bug-hunter install \
71+
npx --yes https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz install \
6672
--path "$HOME/my-agent/skills/bug-hunter"
6773

68-
npx --yes @codexstar/bug-hunter doctor \
74+
npx --yes https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz doctor \
6975
--path "$HOME/my-agent/skills/bug-hunter"
7076
```
7177

7278
`--path` takes precedence if both `--path` and `--agent` are present.
7379

74-
## Install the current GitHub source
80+
## Install from a cloned source checkout
7581

7682
Use this path when testing an unreleased commit:
7783

@@ -87,11 +93,11 @@ The doctor command considers the source checkout's package version current.
8793

8894
## Update
8995

90-
Run the npm install command again:
96+
Run the same GitHub-source command again:
9197

9298
```bash
93-
npx --yes @codexstar/bug-hunter install --agent codex
94-
npx --yes @codexstar/bug-hunter doctor --agent codex
99+
npx --yes https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz install --agent codex
100+
npx --yes https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz doctor --agent codex
95101
```
96102

97103
Restart the coding agent after the update if it caches skill definitions.
@@ -101,7 +107,7 @@ Restart the coding agent after the update if it caches skill definitions.
101107
A global CLI is optional:
102108

103109
```bash
104-
npm install -g @codexstar/bug-hunter
110+
npm install -g https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz
105111
bug-hunter install --agent codex
106112
bug-hunter doctor --agent codex
107113
```

‎docs/cli-reference.md‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ prompt: |
66
can we do that so everything is end to end seamless and anyone and
77
specially agents can understand easily how to use it all properly
88
9+
you removed a lot of content that helped rank it om google - bring it back
10+
911
Use @bin/bug-hunter, @SKILL.md, @README.md, and
1012
@docs/agent-installation.md as source material.
1113
---
@@ -69,17 +71,17 @@ These arguments are interpreted by the installed skill:
6971
| `--staged` | Scan staged files |
7072
| `--pr [current\|recent\|N]` | Review a pull request |
7173
| `--pr-security` | Review pull-request security context |
72-
| `--scan-only` | Force report-only behavior |
74+
| `--scan-only` | Request report-only behavior |
7375
| `--review` | Alias for `--scan-only` |
7476
| `--plan-only` | Build strategy and plan, then stop |
7577
| `--plan` | Alias for `--plan-only` |
7678
| `--fix` | Permit the reviewed fix phase |
77-
| `--approve` | Require approval for every fix |
79+
| `--approve` | Request the host's reviewed/default permission mode |
7880
| `--safe` | Alias for `--fix --approve` |
79-
| `--dry-run` | Render proposed patches without applying them |
81+
| `--dry-run` | Build strategy and fix-plan output without source edits |
8082
| `--preview` | Alias for `--fix --dry-run` |
8183
| `--autonomous` | Permit unattended fixing |
82-
| `--auto-commit` | Permit scoped commits during a fix run |
84+
| `--auto-commit` | Grant commit permission for an authorized fix plan |
8385
| `--loop` | Continue until queued coverage is complete |
8486
| `--no-loop` | Keep the default single pass |
8587
| `--deps` | Add supported Node.js dependency auditing |
@@ -96,5 +98,9 @@ Flags compose:
9698
/bug-hunter --autonomous --auto-commit src/
9799
```
98100

101+
Do not combine `--scan-only` or `--review` with `--fix`, `--approve`, `--safe`,
102+
or `--autonomous`. Conflicting read-only and mutation flags are not currently
103+
rejected.
104+
99105
The skill's canonical argument parser and behavior contract live in
100106
[`SKILL.md`](../SKILL.md).

‎docs/getting-started.md‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ prompt: |
77
can we do that so everything is end to end seamless and anyone and
88
specially agents can understand easily how to use it all properly
99
10+
you removed a lot of content that helped rank it om google - bring it back
11+
1012
Use @README.md, @bin/bug-hunter, @SKILL.md,
1113
@docs/agent-installation.md, @docs/usage-guide.md,
1214
@docs/how-it-works.md, and @docs/troubleshooting.md as source material.
@@ -30,15 +32,15 @@ The default workflow does not edit source files.
3032
This example installs Bug Hunter for Codex:
3133

3234
```bash
33-
npx --yes @codexstar/bug-hunter install --agent codex
35+
npx --yes https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz install --agent codex
3436
```
3537

3638
Use another target when needed:
3739

3840
```bash
39-
npx --yes @codexstar/bug-hunter install --agent claude-code
40-
npx --yes @codexstar/bug-hunter install --agent cursor
41-
npx --yes @codexstar/bug-hunter install --agent copilot
41+
npx --yes https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz install --agent claude-code
42+
npx --yes https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz install --agent cursor
43+
npx --yes https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz install --agent copilot
4244
```
4345

4446
See [agent installation](agent-installation.md) for every supported target.
@@ -48,13 +50,13 @@ See [agent installation](agent-installation.md) for every supported target.
4850
Use the same target you installed:
4951

5052
```bash
51-
npx --yes @codexstar/bug-hunter doctor --agent codex
53+
npx --yes https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz doctor --agent codex
5254
```
5355

5456
A complete check includes:
5557

5658
```text
57-
[ok] Bug Hunter runtime v3.1.1 is current and complete
59+
[ok] Bug Hunter runtime v<current-version> is current and complete
5860
Ready to hunt bugs.
5961
```
6062

@@ -130,6 +132,10 @@ Slash form:
130132
/bug-hunter --fix --approve
131133
```
132134

135+
`--approve` requests the host's reviewed/default permission mode. Approval
136+
prompts depend on the coding agent. Use `--plan` or `--preview` when source
137+
edits must be impossible.
138+
133139
Do not grant autonomous fixing or commit permission unless that behavior is
134140
intended.
135141

‎docs/how-it-works.md‎

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ prompt: |
77
can we do that so everything is end to end seamless and anyone and
88
specially agents can understand easily how to use it all properly
99
10+
you removed a lot of content that helped rank it om google - bring it back
11+
1012
Use @SKILL.md, @modes/dispatch.md, @modes/fix-pipeline.md,
1113
@schemas/scan-report.schema.json, @schemas/fix-plan.schema.json,
1214
@schemas/fixer-scope.schema.json, @scripts/dep-scan.cjs, and
@@ -29,8 +31,9 @@ prompt: |
2931
8. An optional strategy and fix plan classify safe and unsafe remediation.
3032
9. An optional Fixer applies only authorized changes and runs verification.
3133

32-
Each phase exchanges schema-validated JSON. A malformed phase result is a
33-
failure, not a successful clean scan.
34+
Role, report, coverage, and fix phases exchange schema-validated JSON. Triage
35+
JSON is deterministic pipeline input. A malformed required canonical artifact
36+
is a failure, not a successful clean scan.
3437

3538
## Roles
3639

@@ -41,7 +44,7 @@ failure, not a successful clean scan.
4144
| Skeptic | Challenge Hunter claims | Final verdicts or edits |
4245
| Referee | Decide findings from evidence | Files outside the reviewed scope |
4346
| Fix planner | Classify and order remediation | Unapproved bug IDs |
44-
| Fixer | Apply the approved plan | New findings, wider files, or wider ranges |
47+
| Fixer | Apply the approved plan | New findings or wider files |
4548

4649
The Referee-only verdict boundary prevents the agent that found a bug from
4750
declaring its own claim confirmed.
@@ -58,25 +61,25 @@ features, and requested scope:
5861
- large-codebase for domain-scoped execution
5962
- local-sequential when subagents are unavailable
6063

61-
All delegated modes use the same dispatch contract. State includes the run ID,
62-
target fingerprint, queue, attempts, and artifact paths so an interrupted run
63-
does not silently resume against a different target.
64+
Most delegated modes use the canonical dispatch contract. Large-codebase mode
65+
currently uses per-domain variants before its final merge. State records queue
66+
and chunk progress; a sibling identity file stores run and target identity so
67+
an interrupted run does not silently resume against a different target.
6468

6569
## Mutation boundaries
6670

6771
Scan-only is the default.
6872

69-
Fixing requires an explicit fixing mode. The plan binds:
73+
Fixing requires an explicit fixing mode. The plan records:
7074

7175
- approved bug IDs
7276
- allowed files
73-
- allowed line ranges
77+
- claimed line ranges for review context
7478
- remediation class
7579
- canary and rollout stages
76-
- required checks
77-
78-
The Fixer must reject work outside that scope. `--auto-commit` is a separate
79-
permission and only permits approved paths.
80+
The validated Fixer scope binds repository root, base commit, bug IDs, and file
81+
paths before dispatch. It does not independently prove line-range or committed
82+
path compliance after a patch. `--auto-commit` is a separate permission.
8083

8184
Worktree-based fixing uses verified worktree identity and a fresh preservation
8285
check before cleanup. If safe removal cannot be proven, cleanup stops and
@@ -98,16 +101,16 @@ Artifacts live in `.bug-hunter/`.
98101
| File | Generated when | Meaning |
99102
|---|---|---|
100103
| `triage.json` | every scan | Risk map and selected strategy |
101-
| `recon.json` | every scan | Stack and attack-surface map |
104+
| `recon.json` | multi-file scan | Prioritized risk tiers and Recon notes |
102105
| `hunter-findings.json` | every scan | Canonical Hunter claims |
103106
| `skeptic.json` | findings exist | Challenges and counter-evidence |
104107
| `referee.json` | findings exist | Final verdicts |
105108
| `scan-report.json` | completed scan | Joined counts and verdicts |
106109
| `report.md` | completed scan | Human-readable report |
107-
| `coverage.json` | coverage loop | Recorded file outcomes |
110+
| `coverage.json` | coverage loop | Per-file entries derived from chunk progress |
108111
| `fix-strategy.json` | planning or fixing | Remediation classes |
109112
| `fix-plan.json` | planning or fixing | Authorized execution plan |
110-
| `fix-report.json` | fix run | Patch and verification results |
113+
| `fix-report.json` | fix run | Verification and final-status results |
111114
| `threat-model.md` | threat-model run | STRIDE boundaries and flows |
112115
| `dep-findings.json` | dependency run | Supported audit results |
113116

‎docs/troubleshooting.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ prompt: |
77
can we do that so everything is end to end seamless and anyone and
88
specially agents can understand easily how to use it all properly
99
10+
you removed a lot of content that helped rank it om google - bring it back
11+
1012
Use @bin/bug-hunter, @README.md, @docs/agent-installation.md,
1113
@docs/getting-started.md, @SKILL.md, and @SECURITY.md as source material.
1214
---
@@ -18,7 +20,7 @@ prompt: |
1820
Verify the same target used during installation:
1921

2022
```bash
21-
npx --yes @codexstar/bug-hunter doctor --agent codex
23+
npx --yes https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz doctor --agent codex
2224
```
2325

2426
Then:
@@ -36,8 +38,8 @@ If the agent uses a nonstandard skill directory, reinstall and verify with
3638
Run installation and verification with the same package source:
3739

3840
```bash
39-
npx --yes @codexstar/bug-hunter install --agent codex
40-
npx --yes @codexstar/bug-hunter doctor --agent codex
41+
npx --yes https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz install --agent codex
42+
npx --yes https://github.com/codexstar69/bug-hunter/archive/refs/heads/main.tar.gz doctor --agent codex
4143
```
4244

4345
If a global `bug-hunter` command reports another version, check:

‎docs/usage-guide.md‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ prompt: |
77
can we do that so everything is end to end seamless and anyone and
88
specially agents can understand easily how to use it all properly
99
10+
you removed a lot of content that helped rank it om google - bring it back
11+
1012
Use @README.md, @SKILL.md, @docs/getting-started.md,
1113
@docs/cli-reference.md, and @docs/how-it-works.md as source material.
1214
---
@@ -140,14 +142,17 @@ This produces strategy and plan artifacts, then stops before the Fixer.
140142
## Preview changes
141143

142144
```text
143-
Use the bug-hunter skill to preview fixes for confirmed findings.
144-
Do not apply the patches.
145+
Use the bug-hunter skill to build a remediation strategy and fix plan.
146+
Do not edit files.
145147
```
146148

147149
```text
148150
/bug-hunter --preview
149151
```
150152

153+
Current preview mode produces strategy and plan output without source edits.
154+
It does not yet produce a schema-backed patch diff.
155+
151156
## Apply fixes with approval
152157

153158
```text
@@ -160,6 +165,9 @@ Do not commit.
160165
/bug-hunter --fix --approve
161166
```
162167

168+
`--approve` requests the host's reviewed/default permission mode. Approval
169+
prompts depend on the coding agent.
170+
163171
`--safe` is an alias:
164172

165173
```text
@@ -185,8 +193,9 @@ Commit permission is separate:
185193
/bug-hunter --autonomous --auto-commit
186194
```
187195

188-
The commit flag only allows scoped commits from the approved fix plan. It does
189-
not authorize unrelated files.
196+
The commit flag grants commit permission for the approved plan. Review the
197+
harvested commit paths before merging; current validation does not independently
198+
enforce every committed path after a Fixer creates a commit.
190199

191200
## Ask the agent to prove completion
192201

0 commit comments

Comments
 (0)