bugx-cli 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +89 -210
- package/core/README.md +1 -1
- package/core/agent/agent_execution.py +7 -0
- package/core/agent/agent_targets.py +5 -1
- package/core/agent/agent_workspace.py +10 -2
- package/core/autonomous_cve/run_fault_matrix.py +692 -0
- package/core/autonomous_cve/run_oss_cve_exploit_verify.py +608 -0
- package/core/autonomous_cve/run_six_worker_penetration.py +382 -0
- package/core/autonomous_cve/verifier.py +5 -7
- package/core/bugx.md +1 -1
- package/core/bugx_paths.py +2 -2
- package/core/bundled_docs/OVERVIEW.md +70 -236
- package/core/bundled_docs/README.md +2 -2
- package/core/bundled_docs/README_EN.md +67 -211
- package/core/bundled_docs/ai/01_AI_REFERENCE.md +11 -6
- package/core/bundled_docs/ai/02_AI_USAGE.md +1 -1
- package/core/bundled_docs/ai/03_AI_COMMANDS.md +1 -1
- package/core/bundled_docs/guides/01_USER_GUIDE.md +5 -5
- package/core/bundled_docs/guides/02_COMMANDS.md +3 -3
- package/core/bundled_docs/guides/03_TROUBLESHOOTING.md +4 -4
- package/core/bundled_docs/guides/05_HOST_MATRIX_AND_DISPATCH.md +4 -2
- package/core/bundled_docs/hosts/bugx_SKILL.md +2 -2
- package/core/bundled_docs/hosts/platform_bugx_SKILL.md +2 -2
- package/core/bundled_docs/manifest.json +22 -22
- package/core/bundled_docs/reference/01_ENVIRONMENT_VARIABLES.md +1 -0
- package/core/bundled_docs/reference/04_REPOSITORY_TOPOLOGY.md +1 -1
- package/core/cloud_sync/flywheel_client.py +89 -0
- package/core/contracts/README.md +1 -1
- package/core/contracts/bugx-runtime-contract.md +1 -1
- package/core/contracts/bugx-worker.md +1 -1
- package/core/coverage/coverage_ai_review.py +15 -11
- package/core/coverage/coverage_bootstrap.py +18 -13
- package/core/coverage/coverage_discovery.py +1 -1
- package/core/coverage/coverage_gate.py +12 -2
- package/core/coverage/coverage_manifest.py +1 -1
- package/core/coverage/coverage_validate.py +5 -3
- package/core/dev_harness/interaction_preset.py +1 -1
- package/core/engine-integrity.json +183 -163
- package/core/host_acp/README.md +4 -0
- package/core/host_acp/agnescode.py +128 -0
- package/core/host_runtime/README.md +3 -0
- package/core/host_runtime/adapters.py +45 -6
- package/core/host_runtime/autonomous_runner.py +3 -2
- package/core/host_runtime/host_registry.py +7 -1
- package/core/hosts/README.md +4 -0
- package/core/hosts/__init__.py +1 -0
- package/core/hosts/agnescode.py +415 -0
- package/core/hosts/base.py +1 -0
- package/core/hosts/claude.py +6 -0
- package/core/hosts/cline.py +6 -0
- package/core/hosts/codex.py +10 -1
- package/core/hosts/kimi.py +6 -4
- package/core/hosts/opencode.py +12 -4
- package/core/hosts/zcode.py +6 -0
- package/core/infra/README.md +1 -1
- package/core/infra/build_info.py +2 -2
- package/core/infra/python_runtime.py +4 -1
- package/core/launch_phases/README.md +2 -2
- package/core/launch_phases/finding_confirm_phase.py +1 -1
- package/core/launch_phases/semantic_recon.py +3 -19
- package/core/launch_phases/startup_gates.py +10 -1
- package/core/launch_phases/startup_version_gate.py +2 -2
- package/core/launch_phases/verify_loop.py +3 -19
- package/core/ledger/README.md +1 -1
- package/core/ledger/finding_confirmation.py +1 -1
- package/core/ledger/finding_verification.py +2 -20
- package/core/ledger/fp_ledger.py +3 -19
- package/core/ledger/life_ledger.py +7 -33
- package/core/ledger/schema.py +1 -1
- package/core/locales/en-US.json +2 -0
- package/core/locales/zh-CN.json +2 -0
- package/core/mcp_handlers/supervisor_handlers.py +34 -2
- package/core/mcp_handlers/telemetry_handlers.py +32 -0
- package/core/mcp_handlers/tool_table.py +34 -0
- package/core/mcp_runtime_support/common.py +6 -0
- package/core/mcp_runtime_support/environment.py +82 -23
- package/core/metadata.txt +1 -1
- package/core/planning/README.md +1 -1
- package/core/planning/target_sandbox_manager.py +2 -0
- package/core/probes/mobile_probe.py +1 -0
- package/core/probes/sast_probe.py +1 -1
- package/core/probes/sca_scanner.py +1 -1
- package/core/project_profiler/constants.py +1 -1
- package/core/retrieval/README.md +1 -1
- package/core/retrieval/symbol_index.py +229 -53
- package/core/retrieval/universal_code_matcher.py +1 -0
- package/core/runtime/README.md +1 -1
- package/core/runtime/daemon_runner.py +3 -2
- package/core/runtime/mining_quality_framework.py +2 -1
- package/core/runtime/project_init.py +1 -1
- package/core/runtime/scenario_eval.py +5 -2
- package/core/skills/bugx_mcp_server.py +9 -0
- package/core/skills/mcp_session_proof.py +3 -31
- package/core/supervisor/README.md +1 -1
- package/core/supervisor/finding_commit.py +3 -24
- package/core/supervisor/task_scheduler.py +5 -2
- package/core/supervisor/worker_execution.py +5 -0
- package/core/supervisor/worker_handoff.py +2 -2
- package/docs/07_distribution/01_README_NPM.md +89 -210
- package/ecosystem/integrations/dsh/mcp/package.json +2 -2
- package/ecosystem/integrations/dsh/ui/package.json +1 -1
- package/ecosystem/integrations/opencode/bugx-mcp-manifest.json +3 -3
- package/ecosystem/integrations/opencode/mcp-lock.json +1 -1
- package/ecosystem/integrations/pi/extensions/bugx/manifest.json +1 -1
- package/ecosystem/integrations/qoder/connector-meta.json +1 -1
- package/ecosystem/integrations/workbuddy/connector-meta.json +1 -1
- package/ecosystem/integrations/workbuddy/skills/bugx/SKILL.md +1 -1
- package/ecosystem/plugins/bugx/.claude-plugin/plugin.json +1 -1
- package/ecosystem/plugins/bugx/.codex-plugin/plugin.json +1 -1
- package/ecosystem/plugins/bugx/.zcode-plugin/plugin.json +1 -1
- package/ecosystem/plugins/bugx/skills/bugx/SKILL.md +2 -2
- package/interfaces/cli/bugx_cli/__init__.py +1 -1
- package/interfaces/cli/bugx_cli/cli.py +15 -0
- package/interfaces/cli/bugx_cli/commands/agent.py +18 -0
- package/interfaces/cli/bugx_cli/commands/audit.py +5 -6
- package/interfaces/cli/bugx_cli/commands/doctor.py +1 -1
- package/interfaces/cli/bugx_cli/commands/lifecycle.py +1 -1
- package/interfaces/cli/bugx_cli/commands/patch.py +5 -1
- package/interfaces/cli/bugx_cli/commands/plugin.py +31 -2
- package/interfaces/cli/bugx_cli/commands/plugin_claude.py +2 -2
- package/interfaces/cli/bugx_cli/host_adapters.py +167 -1
- package/interfaces/cli/bugx_cli/hosts/registry.py +33 -1
- package/interfaces/cli/bugx_cli/infra/engine_installer.py +4 -4
- package/interfaces/cli/bugx_cli/infra/host_sync.py +1 -1
- package/package.json +1 -1
- package/scripts/sync-version.mjs +1 -1
- package/skills/platform/bugx/SKILL.md +2 -2
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<
|
|
2
|
+
<img src="core/assets/bugx-hero-en.svg" alt="BugX — Effortless audits of AI-written code" width="800">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
-
<
|
|
6
|
+
<a href="README.md">中文</a> · English
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
# BugX — Autonomous Code Review & Automated Testing Agent
|
|
10
10
|
|
|
11
|
-
BugX is an autonomous code review and automated testing agent
|
|
11
|
+
BugX is an **autonomous code review and automated testing agent** designed for AI coding assistants and CLI workflows.
|
|
12
12
|
|
|
13
|
-
**It
|
|
14
|
-
- **For Developers**: Catches subtle, high-impact bugs immediately after code is written, eliminating painful debugging loops and rework.
|
|
15
|
-
- **For QA & Test Engineers**: Automates black-box, functional, and performance testing across complex edge cases that manual reviews often miss.
|
|
16
|
-
- **For Engineering Teams**: Guarantees code strictly meets functional contracts with rock-solid stability and resilience, ensuring dependable, crash-free releases.
|
|
17
|
-
|
|
18
|
-
By replacing subjective self-reporting with automated, evidence-backed audits, BugX accelerates release velocity, elevates software quality, and reduces long-term maintenance costs. Supported environments include **Claude Code, OpenAI Codex, Cursor, Trae, Windsurf, Kimi Code, MiniMax Code, OpenCode, ZCode, Cline, DeepSeek Harness (DSH), WorkBuddy, and Qoder**.
|
|
13
|
+
It partitions codebases into deterministic audit units, orchestrates concurrent Workers to explore complex logic branches and edge cases, and deploys isolated verifiers to **execute sandboxed PoCs for real bug confirmation**. It eliminates AI hallucinations, premature "all good" claims, and false alarms, ensuring robust, crash-free software releases.
|
|
19
14
|
|
|
20
15
|
<p align="center">
|
|
21
16
|
<a href="https://pypi.org/project/bugx-cli/"><img src="https://img.shields.io/pypi/v/bugx-cli.svg?style=flat&color=0284c7&label=PyPI" alt="PyPI"></a>
|
|
@@ -27,252 +22,113 @@ By replacing subjective self-reporting with automated, evidence-backed audits, B
|
|
|
27
22
|
|
|
28
23
|
🌐 Website: **https://bugx.dev**
|
|
29
24
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
- [The problem it solves](#the-problem-it-solves)
|
|
33
|
-
- [Quick start](#quick-start)
|
|
34
|
-
- [What a full audit looks like](#what-a-full-audit-looks-like)
|
|
35
|
-
- [Supported AI coding tools](#supported-ai-coding-tools)
|
|
36
|
-
- [Data and security](#data-and-security)
|
|
37
|
-
- [Documentation](#documentation)
|
|
38
|
-
- [Development](#development)
|
|
39
|
-
- [License](#license)
|
|
25
|
+
---
|
|
40
26
|
|
|
41
|
-
|
|
27
|
+
### ✨ Key Features
|
|
42
28
|
|
|
43
|
-
|
|
29
|
+
- 🛡️ **Real Execution Verification (Zero False Alarms)**: Suspected flaws are verified in an isolated sandbox with dual positive tests and a clean negative control. Every finding carries executable PoC commands, exit codes, and output hashes.
|
|
30
|
+
- 📋 **Ledger-Tracked State Machine Coverage**: Codebases are decomposed into atomic units (covered / blocked / pending). Audits resume seamlessly across sessions, and completion is determined by ledger state—not conversational claims.
|
|
31
|
+
- 🔌 **Universal Host Integration via MCP / ACP**: Seamlessly plugs into Google Antigravity, Claude Code, Cursor, Trae, OpenAI Codex, OpenCode, Cline, Qoder, Kimi Code, MiniMax Code, and ZCode. Fully supports Gemini 4, Claude 5.5, and GPT-4o models.
|
|
32
|
+
- 📊 **Built-in Web Studio Dashboard**: Live interactive web interface (`bugx report serve`) visualizing coverage status, call chains, PoC proof artifacts, and mutation test efficacy.
|
|
44
33
|
|
|
45
|
-
|
|
46
|
-
2. **Checking is expensive; claiming is cheap.** Reading a few hundred files takes real work. Replying "no issues found" takes a few words. When both options sit on the table, the cheap one always wins.
|
|
47
|
-
3. **It doesn't know what it hasn't checked.** The model can't see its own coverage gaps, and nothing in training taught it to say "half done." So it says "done" — every time.
|
|
34
|
+
---
|
|
48
35
|
|
|
49
|
-
|
|
36
|
+
### 🚀 Quick Start
|
|
50
37
|
|
|
51
|
-
1.
|
|
52
|
-
2. **Independent blind review & reproduction.** Suspicious findings are blind-reviewed by an isolated verification agent. The attack input must reproduce the bug twice, and a clean input must trigger zero times, backed by AST syntax anti-empty assertions. Refuted findings are logged to the FP Ledger to prevent repeat false alarms.
|
|
53
|
-
3. **It picks up where it left off.** Close your AI tool and reopen it later — the audit resumes from the last recorded step instead of starting over.
|
|
54
|
-
4. **Every verdict stays reviewable.** Who checked what, when, and on what evidence goes into the ledger line by line, with hash chaining between pages. Nothing gets edited quietly.
|
|
55
|
-
|
|
56
|
-
## Quick start
|
|
57
|
-
|
|
58
|
-
Python `>=3.11`; the npm wrapper needs Node.js `>=18`.
|
|
59
|
-
|
|
60
|
-
Install from PyPI:
|
|
38
|
+
#### 1. Install CLI (choose either)
|
|
61
39
|
|
|
62
40
|
```bash
|
|
63
|
-
|
|
64
|
-
|
|
41
|
+
# Python (>= 3.11)
|
|
42
|
+
pip install bugx-cli
|
|
65
43
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
```bash
|
|
44
|
+
# or Node.js (>= 18)
|
|
69
45
|
npm install -g bugx-cli
|
|
70
46
|
```
|
|
71
47
|
|
|
72
|
-
|
|
48
|
+
#### 2. Configure Your AI Host
|
|
73
49
|
|
|
74
|
-
|
|
75
|
-
bugx update --check # check only: 0=up-to-date, 1=update available, 2=check failed
|
|
76
|
-
bugx update # update pip or npm wrapper installation
|
|
77
|
-
bugx update --channel alpha # explicitly choose pre-release channel
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
Then run this once from any directory:
|
|
50
|
+
Run this command once in your user home directory or target project root. BugX automatically detects installed AI coding assistants and configures MCP / plugins:
|
|
81
51
|
|
|
82
52
|
```bash
|
|
83
53
|
bugx install
|
|
84
54
|
```
|
|
85
55
|
|
|
86
|
-
>
|
|
87
|
-
|
|
88
|
-
CLI boolean flags are switches: pass `--force` to enable, omit it to disable. Do not pass `--force=True` or `force=True`.
|
|
89
|
-
It lists every AI host it detects on your machine and walks you through picking one. To install everywhere at once, use `bugx install --agent all`.
|
|
90
|
-
|
|
91
|
-
### Connect the project to BugX Cloud
|
|
56
|
+
> 💡 **Tip**: After installation, **completely restart your host IDE / AI assistant**. For custom configurations, refer to the [Host Matrix and Dispatch Guide](guides/05_HOST_MATRIX_AND_DISPATCH.md).
|
|
92
57
|
|
|
93
|
-
|
|
58
|
+
---
|
|
94
59
|
|
|
95
|
-
|
|
60
|
+
### 💬 How to Use
|
|
96
61
|
|
|
97
|
-
|
|
62
|
+
#### Option 1: Inside Your AI Coding Assistant (Recommended)
|
|
98
63
|
|
|
99
|
-
|
|
64
|
+
Open any configured project in Cursor, Claude Code, Antigravity, or ZCode, and prompt directly:
|
|
100
65
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
**Codex**
|
|
105
|
-

|
|
106
|
-
|
|
107
|
-
**DSH**
|
|
108
|
-

|
|
109
|
-
|
|
110
|
-
> "Audit this project"
|
|
111
|
-
> "Check the login module for vulnerabilities"
|
|
112
|
-
> "Review the changes on this branch for security issues"
|
|
113
|
-
|
|
114
|
-
The AI inside your host calls BugX on its own: it builds the coverage list, dispatches concurrent workers, runs probes, verifies the findings, and writes the report. To watch an audit live, run `bugx report serve` in a terminal and open **http://127.0.0.1:8080** — that's the full web report.
|
|
115
|
-
|
|
116
|
-
### Option 2: run it from the command line
|
|
117
|
-
|
|
118
|
-
On the command line, the AI still comes from your installed hosts: BugX reuses the model and credentials you already configured there and never takes over your API keys (`--model` / `--provider` default to your host's configuration).
|
|
119
|
-
|
|
120
|
-
Check the selected host and connection with `bugx doctor --root . --strict`. For a staged CLI run, follow the [lifecycle guide](guides/01_USER_GUIDE.md#8-从-pre-到-post-的完整生命周期) through execution, evidence review, and settlement. See the current stage with `bugx engine --root . status --json`.
|
|
121
|
-
|
|
122
|
-
Or let BugX run the whole thing while you do something else:
|
|
123
|
-
|
|
124
|
-
```bash
|
|
125
|
-
bugx autonomous --host opencode # model and credentials come from your OpenCode setup
|
|
126
|
-
# or give it a target:
|
|
127
|
-
bugx goal --host opencode "audit this project's login and payment flows"
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
Fixes and outputs are command-line work too:
|
|
131
|
-
|
|
132
|
-
```bash
|
|
133
|
-
bugx test-generate ... # generate AAA tests or a self-contained PoC for a unit
|
|
134
|
-
bugx test-verify ... # mutate the code to prove your tests catch real bugs
|
|
135
|
-
bugx patch-forge --from-issue <id> --diff fix.diff --repro repro.md --test test_ok.py --dry-run
|
|
136
|
-
```
|
|
66
|
+
> "Audit this project"
|
|
67
|
+
> "Check the authentication service for concurrency issues and exception leaks"
|
|
68
|
+
> "Review changes on this branch and provide reproducible PoC verification commands"
|
|
137
69
|
|
|
138
|
-
|
|
70
|
+
The host AI will autonomously orchestrate BugX Workers, execute sandbox probes, and confirm findings with real reproduction.
|
|
139
71
|
|
|
140
|
-
|
|
72
|
+
#### Option 2: Autonomous CLI Execution
|
|
141
73
|
|
|
142
74
|
```bash
|
|
143
|
-
|
|
144
|
-
|
|
75
|
+
# Autonomous end-to-end audit (reuses credentials from your host assistant)
|
|
76
|
+
bugx autonomous --host opencode
|
|
145
77
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
```bash
|
|
149
|
-
bugx report both --format html --out report.html
|
|
78
|
+
# Launch real-time web dashboard (opens http://127.0.0.1:8080)
|
|
79
|
+
bugx report serve
|
|
150
80
|
```
|
|
151
81
|
|
|
152
|
-
|
|
82
|
+
---
|
|
153
83
|
|
|
154
|
-
|
|
84
|
+
### 🖥️ BugX Studio Web Dashboard
|
|
155
85
|
|
|
156
|
-
|
|
157
|
-
2. **Workers fan out.** The host hands audit units to concurrent workers. Each worker takes a lease, sends heartbeats, runs probes, and commits checkpoints.
|
|
158
|
-
3. **Evidence lands on disk.** Every worker conclusion carries the command it ran, the exit code, and the artifact hash. Coverage is only ever `covered` or `blocked` — "roughly checked" doesn't exist here.
|
|
159
|
-
4. **Findings get adjudicated.** Candidate bugs first go through the engine's verification channel: two positive runs plus a negative control, executed for real. Only then are they confirmed or rejected, and a rejection needs a stated reason.
|
|
160
|
-
5. **post.** Coverage and findings are cross-checked and the audit settles. Whether it's actually done is decided by the state machine's final state — the model saying "done" doesn't count.
|
|
161
|
-
6. **The report.** `bugx report both --format html --out report.html` produces the formal and visual reports; `bugx report serve` starts the live preview.
|
|
162
|
-
|
|
163
|
-
## A look at the interface
|
|
164
|
-
|
|
165
|
-
BugX ships with BugX Studio, a web workbench. Run `bugx report serve` and open http://127.0.0.1:8080:
|
|
86
|
+
Run `bugx report serve` anytime to inspect audit topology, evidence chains, and verified findings:
|
|
166
87
|
|
|
167
88
|
<p align="center">
|
|
168
|
-
<img src="core/assets/webui-studio.jpg" alt="BugX Studio
|
|
89
|
+
<img src="core/assets/webui-studio.jpg" alt="BugX Studio Dashboard" width="860">
|
|
169
90
|
</p>
|
|
170
91
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
<p align="center">
|
|
174
|
-
<img src="core/assets/webui-chatgpt.jpg" alt="ChatGPT workspace" width="420">
|
|
175
|
-
<img src="core/assets/webui-zcode.jpg" alt="ZCode workspace" width="420">
|
|
176
|
-
</p>
|
|
177
|
-
|
|
178
|
-
The skill marketplace ships with `/audit` (one-shot full-surface audit with a dual-track report), `/review` (structured findings for branch changes), `/mining` (attack-surface survey and hardening), `/fix` (defensive patches with sandboxed regression), and `/test` (AAA tests with mutation-kill scoring):
|
|
179
|
-
|
|
180
|
-
<p align="center">
|
|
181
|
-
<img src="core/assets/webui-skills.jpg" alt="Skill marketplace" width="860">
|
|
182
|
-
</p>
|
|
183
|
-
|
|
184
|
-
## What it can do
|
|
185
|
-
|
|
186
|
-
**Audit**
|
|
187
|
-
- **Code review**: bugs and defects, classified by logic / state / boundary / exception / concurrency / performance / resource.
|
|
188
|
-
- **Functionality review**: business-flow audit plus a behavior diff — feed the same inputs to your implementation and a reference implementation, then compare what differs.
|
|
189
|
-
- **Performance and memory**: performance and resource bugs, plus dedicated memory checks for six target families: native, Python, JVM, Electron, Android, and Apple.
|
|
190
|
-
- **UI audit**: layout, contrast, keyboard paths, and design tokens on a running web page (`bugx probe ui`).
|
|
92
|
+
---
|
|
191
93
|
|
|
192
|
-
|
|
193
|
-
- Every finding ships with a command or input you can run yourself: the same bad input breaks it twice, a clean input breaks nothing, and all three runs stay on record.
|
|
194
|
-
- Your tests get graded too: `bugx test-verify` mutates your code to check whether the tests actually catch the bugs.
|
|
94
|
+
### 🔌 Supported AI Coding Hosts
|
|
195
95
|
|
|
196
|
-
|
|
197
|
-
- Generate AAA test cases or self-contained PoCs (`bugx test-generate`).
|
|
198
|
-
- Build patch bundles with static checks, delivered for your review — never committed for you (`bugx patch-forge`).
|
|
199
|
-
- Write reports (`bugx report`).
|
|
200
|
-
|
|
201
|
-
**Long term**
|
|
202
|
-
- **A lessons base**: sync verified lessons and experience with `bugx cloud sync` in the authorized scope. Use `bugx lesson retrieve` to look up a symptom or module in the next review.
|
|
203
|
-
- **Unattended runs**: follow your host (`bugx autonomous`), run toward a goal (`bugx goal`), or keep a resident daemon (`bugx daemon`).
|
|
204
|
-
- **Diagnostics & feedback**: `bugx doctor` / `bugx log` / `bugx stats` for installation, logs, and usage; use `bugx issue report` or `bugx feedback` to package sanitized local diagnostics and submit feedback directly.
|
|
205
|
-
- **Official documentation (Remote-First)**: built-in `bugx-docs` MCP server and `bugx guide` CLI command, connecting directly to official endpoints by default with seamless local fallback when offline.
|
|
206
|
-
|
|
207
|
-
## FAQ
|
|
208
|
-
|
|
209
|
-
**What is BugX?**
|
|
210
|
-
An autonomous code-audit agent that lives inside AI coding assistants: it runs via MCP in Claude Code, Codex, Cline, OpenCode, and ZCode, or as a standalone CLI, tracks audit coverage per unit, and verifies every finding with real executions.
|
|
211
|
-
|
|
212
|
-
**Which AI coding tools does BugX support?**
|
|
213
|
-
BugX currently supports **Claude Code, OpenAI Codex, Cursor, Trae, Windsurf, Kimi Code, MiniMax Code, Google Antigravity, Cline / Roo Code, OpenCode, ZCode, DeepSeek Harness (DSH), WorkBuddy, and Qoder**, with continuous adaptations across the Model Context Protocol (MCP) ecosystem.
|
|
214
|
-
|
|
215
|
-
**How does BugX verify a vulnerability?**
|
|
216
|
-
Rather than trusting the proposing model's self-report, findings are independently blind-reviewed: an attack input must reliably trigger the vulnerability twice, and a clean input must trigger zero times (two positive runs, one negative control) recorded with command, exit code, and artifact hashes, verified by AST syntax assertions. Refuted findings are recorded in the FP Ledger.
|
|
217
|
-
|
|
218
|
-
**Does BugX trigger AI model cyber-security risk blocks?**
|
|
219
|
-
BugX includes a declarative Prompt Policy Engine with adaptive prompt profiles (e.g., defensive QA phrasing for OpenAI Codex / GPT-4o) that prevents models from triggering platform Daybreak / Cyber Risk safety blocks, while preserving 100% of the underlying code and CWE details.
|
|
220
|
-
|
|
221
|
-
**Does BugX send my code to the cloud?**
|
|
222
|
-
The audit itself runs locally. Enabling lesson and experience sync can trigger transfers at startup and after eligible ledger writes. Check the authorized scope and sensitive-data policy before enabling sync.
|
|
223
|
-
|
|
224
|
-
**Does BugX replace human review?**
|
|
225
|
-
No. It gives you a reviewable ledger — what was checked, what wasn't, and reproducible evidence per finding — so human review starts from facts instead of the model's self-report.
|
|
226
|
-
|
|
227
|
-
**What languages does BugX audit?**
|
|
228
|
-
Multi-language static and behavioral analysis (Python, JavaScript/TypeScript, Java, Go, Rust, and more via tree-sitter), plus dedicated memory checks for native, Python, JVM, Electron, Android, and Apple targets.
|
|
229
|
-
|
|
230
|
-
## Supported AI coding tools
|
|
231
|
-
|
|
232
|
-
| AI coding tool | Integration | Install command |
|
|
96
|
+
| Host Assistant | Integration Protocol | Setup Command |
|
|
233
97
|
| :--- | :--- | :--- |
|
|
234
|
-
| **
|
|
235
|
-
| **
|
|
236
|
-
| **
|
|
237
|
-
| **
|
|
238
|
-
| **
|
|
239
|
-
| **
|
|
240
|
-
| **
|
|
241
|
-
| **
|
|
242
|
-
| **
|
|
243
|
-
| **
|
|
244
|
-
| **
|
|
245
|
-
| **
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
## Data and security
|
|
250
|
-
|
|
251
|
-
- Project state lives in the project's `.bugx/` directory; the global engine, credentials, knowledge base, and caches live in a user-level BugX directory.
|
|
252
|
-
- Credentials are written to a controlled sandbox when needed (readable only by the current user by default). `bugx auth status` reports whether credentials exist — it never prints them. A model name is not a credential.
|
|
253
|
-
- Knowledge sync uses the configured scope and sensitive-data policy. Bundle uploads, diagnostic log reports, and feedback have separate commands and data boundaries.
|
|
254
|
-
- `reset` / `uninstall` / `purge` / `--no-backup` delete data. Check each command's dry-run and backup behavior first.
|
|
98
|
+
| **Google Antigravity** | Native Agent/Worker, Skill, Project MCP | `bugx install --agent antigravity` |
|
|
99
|
+
| **Claude Code** | Native MCP / Autonomous Lifecycle | `bugx install --agent claude` |
|
|
100
|
+
| **OpenAI Codex** | Workspace Sub-Agent / Native Plugin | `bugx install --agent codex` |
|
|
101
|
+
| **OpenCode** | Native ACP / Multi-Agent Concurrency / Project MCP | `bugx install --agent opencode` |
|
|
102
|
+
| **Cline / Roo Code** | Isolated Data Sandbox / Project Agent / User MCP | `bugx install --agent cline` |
|
|
103
|
+
| **Qoder AI** | Native Agent/Worker, Subagent Concurrency, User/Project MCP | `bugx install --agent qoder` |
|
|
104
|
+
| **Trae / Trae CN** | Project Agent, Multi-variant MCP Sync Mirror | `bugx install --agent trae` |
|
|
105
|
+
| **DeepSeek Harness (DSH)** | Native Headless Profile / Cordis Patch / MCP Injection | `bugx install --agent dsh` |
|
|
106
|
+
| **Kimi Code** | Headless ACP / Native MCP Plugin | `bugx install --agent kimi` |
|
|
107
|
+
| **MiniMax Code** | Custom Agent, Plugin V1 Worker, Skill & MCP | `bugx install --agent minimax` |
|
|
108
|
+
| **ZCode** | Native MCP / User-Level Registry | `bugx install --agent zcode` |
|
|
109
|
+
| **Agnes Code** | Terminal Native TUI / Agent MCP Injection | `bugx install --agent agnescode` |
|
|
110
|
+
| **WorkBuddy / CodeBuddy** | Native Skill, Desktop Multi-variant Mirror, Project MCP | `bugx install --agent workbuddy` |
|
|
111
|
+
| **GitHub Copilot** | Project Agent/Instructions, User Agent, Project MCP | `bugx install --agent copilot` |
|
|
112
|
+
| **Cursor / Windsurf** | Standard User/Project MCP Integration | `bugx install` (auto-detected) |
|
|
255
113
|
|
|
256
|
-
|
|
114
|
+
---
|
|
257
115
|
|
|
258
|
-
|
|
116
|
+
### 📚 Documentation
|
|
259
117
|
|
|
260
|
-
- [User
|
|
261
|
-
- [
|
|
262
|
-
- [
|
|
263
|
-
-
|
|
264
|
-
-
|
|
265
|
-
- [AI reference](ai/01_AI_REFERENCE.md): MCP, lifecycle, state, evidence, and failure contracts for hosts and agents.
|
|
266
|
-
- `Docs index` (`docs/README.md`): architecture and documentation navigation (including 5 topic cookbooks in `docs/01_guides/04_*`..`08_*`, packaged into `core/bundled_docs/` for instant offline `bugx guide` / `bugx-docs` queries and versioned cloud hot-sync).
|
|
118
|
+
- [User Guide](guides/01_USER_GUIDE.md): Complete setup, audit lifecycle, MCP/ACP usage, and recovery.
|
|
119
|
+
- [CLI Reference](guides/02_COMMANDS.md): Full command index and flag definitions.
|
|
120
|
+
- [Host Matrix & Dispatch Guide](guides/05_HOST_MATRIX_AND_DISPATCH.md): Host-specific configurations.
|
|
121
|
+
- [Troubleshooting](guides/03_TROUBLESHOOTING.md): Problem diagnosis and self-healing recipes.
|
|
122
|
+
- `Architecture & Design` (`docs/02_architecture/01_ARCHITECTURE.md`): State machine, ledger integrity, and verification engines.
|
|
267
123
|
|
|
268
|
-
|
|
124
|
+
---
|
|
269
125
|
|
|
270
|
-
|
|
126
|
+
### 🔍 Keywords
|
|
271
127
|
|
|
272
|
-
|
|
128
|
+
Google Antigravity · Gemini 4 · Gemini 4 Carbon · Gemini 4 Neon · Gemini Code Assist · G4 Model · Claude 5.5 · Claude Sonnet 5.5 · Claude Opus 5.5 · Claude Code Audit · GPT-4o Code Review · Autonomous Code Review · Automated Code Audit · AI Code Review · Code Review Agent · AI Agent · Vibe Coding Security · PR Review · Zero False Positive · PoC Verification · Blind Verification · Security Audit · Vulnerability Scanner · Static Analysis · MCP Server · MCP Security · Cursor · Windsurf · Trae · OpenAI Codex · OpenCode · Cline · Qoder · GitHub Copilot · DeepSeek Harness · Behavior Diff · Memory Leak Detection · Python Security · JavaScript Security · DevSecOps
|
|
273
129
|
|
|
274
|
-
|
|
130
|
+
---
|
|
275
131
|
|
|
276
|
-
|
|
132
|
+
### 📄 License
|
|
277
133
|
|
|
278
|
-
[Business Source License 1.1](LICENSE).
|
|
134
|
+
Licensed under the [Business Source License 1.1](LICENSE).
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
title: BugX AI Host and Worker Reference
|
|
3
3
|
audience: AI hosts and native agents
|
|
4
4
|
status: DOCUMENTATION_UNVERIFIED
|
|
5
|
-
version: 0.1.
|
|
5
|
+
version: 0.1.6
|
|
6
6
|
protocol: MCP 2024-11-05
|
|
7
|
-
server: bugx-supervisor 0.1.
|
|
7
|
+
server: bugx-supervisor 0.1.6
|
|
8
8
|
last-verified: 2026-11-17
|
|
9
9
|
---
|
|
10
10
|
|
|
@@ -69,13 +69,13 @@ CLI 的安装源,也不得用它覆盖更高的全局引擎。
|
|
|
69
69
|
### 1.3 Host capability sets
|
|
70
70
|
|
|
71
71
|
install_adapters =
|
|
72
|
-
chatgpt, claude, cline, codex, dsh, funide, kimi,
|
|
72
|
+
agnescode, antigravity, chatgpt, claude, cline, codex, dsh, funide, kimi,
|
|
73
73
|
minimax, opencode, pi, qoder, trea, workbuddy, zcode
|
|
74
74
|
|
|
75
75
|
ready_engine_plugins =
|
|
76
|
-
opencode, codex, cline, dsh, claude, pi, zcode, kimi, minimax
|
|
76
|
+
opencode, codex, cline, dsh, claude, pi, zcode, kimi, minimax, antigravity, agnescode
|
|
77
77
|
|
|
78
|
-
acp_ready = cline, kimi, opencode
|
|
78
|
+
acp_ready = agnescode, antigravity, cline, kimi, opencode
|
|
79
79
|
acp_todo = chatgpt, workbuddy, qoder, trea, funide
|
|
80
80
|
acp_unavailable = claude, codex, dsh, pi, zcode, minimax
|
|
81
81
|
|
|
@@ -355,7 +355,7 @@ report source 语义:
|
|
|
355
355
|
|
|
356
356
|
protocolVersion: 2024-11-05
|
|
357
357
|
serverName: bugx-supervisor
|
|
358
|
-
serverVersion: 0.1.
|
|
358
|
+
serverVersion: 0.1.6
|
|
359
359
|
hostHeartbeatIntervalSeconds: 5.0
|
|
360
360
|
transport: local stdio
|
|
361
361
|
|
|
@@ -584,6 +584,11 @@ covered 是 coverage value,不是 evidence status。pending、partial、unveri
|
|
|
584
584
|
`MAX_INHERITED_CHAIN_DEPTH = 32`;链条终点自称本地产出却没有本地 passed 记录。继承绝不复制
|
|
585
585
|
证据文件、绝不改写字段,源记录 `target_fingerprint` 漂移与 `observed_at` 年龄信号原样保留。
|
|
586
586
|
|
|
587
|
+
双轨目录排除与渐进式发现(DOC-AIREV):
|
|
588
|
+
- **Track 1(静态白名单)**:`symbol_index` 与探针层自动硬排除 `.git`、`node_modules`、`.tools`、`artifacts` 等已知通用依赖/构建产物;
|
|
589
|
+
- **Track 2(AI 语义扫尾)**:白名单不是万能的,白名单放行后的剩余顶层目录须通过 `coverage review-packages` / `review-apply` 由宿主 AI 基于证据逐一复审并移出非产品目录(持久化于 `.bugx/knowledge/coverage-review.json`);
|
|
590
|
+
- **Tier-1 初始化骨架**:`bugx init` 默认以 `files` 模式建立轻量骨架避免大仓启动挂死;`symbol_index.audit_units` 采用 `.bugx/cache/symbol_cache.db` 持久化缓存与多核并发解析支持大仓全量运行。
|
|
591
|
+
|
|
587
592
|
run_sandboxed_probe 的边界是 argv-only、禁止 shell launcher/operators、timeout 0.5–60 秒和 artifact/evidence 记录;它不是 OS 文件系统 sandbox。AI 不得向用户宣称更强隔离。
|
|
588
593
|
|
|
589
594
|
探针包 `core/probes/__init__.py` 按 PEP 562 模块级 `__getattr__` 惰性加载
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# BugX AI 命令选路与使用手册
|
|
2
2
|
|
|
3
|
-
> **版本**:0.1.
|
|
3
|
+
> **版本**:0.1.6 | **更新日期**:2026-11-26
|
|
4
4
|
> 本手册按当前仓库 CLI 解析器整理,覆盖 45 个顶层命令及分组 leaf。宿主和全局引擎可能独立升级;当前安装版的安全帮助入口、命令分发源码与本手册共同确定语法。完整参数表见 [02_COMMANDS.md](../guides/02_COMMANDS.md),生命周期与协议细节见 [01_AI_REFERENCE.md](01_AI_REFERENCE.md)。
|
|
5
5
|
|
|
6
6
|
## AI 选命令的固定步骤
|
|
@@ -198,12 +198,12 @@ BugX 当前有四套有意不同的 Host 列表。使用前先确定你需要的
|
|
|
198
198
|
|
|
199
199
|
| 能力层 | 当前源码事实 |
|
|
200
200
|
|---|---|
|
|
201
|
-
| 安装/检测适配器 | `antigravity`、`chatgpt`、`claude`、`cline`、`codex`、`dsh`、`funide`、`kimi`、`minimax`、`opencode`、`pi`、`qoder`、`trea`、`workbuddy`、`zcode` |
|
|
202
|
-
| ready engine plugin | `antigravity`、`opencode`、`codex`、`cline`、`dsh`、`claude`、`kimi`、`minimax`、`pi`、`zcode` |
|
|
203
|
-
| ACP ready | `antigravity`、`cline`、`opencode` |
|
|
201
|
+
| 安装/检测适配器 | `agnescode`、`antigravity`、`chatgpt`、`claude`、`cline`、`codex`、`dsh`、`funide`、`kimi`、`minimax`、`opencode`、`pi`、`qoder`、`trea`、`workbuddy`、`zcode` |
|
|
202
|
+
| ready engine plugin | `agnescode`、`antigravity`、`opencode`、`codex`、`cline`、`dsh`、`claude`、`kimi`、`minimax`、`pi`、`zcode` |
|
|
203
|
+
| ACP ready | `agnescode`、`antigravity`、`cline`、`kimi`、`opencode` |
|
|
204
204
|
| ACP todo | `chatgpt`、`workbuddy`、`qoder`、`trea`、`funide` |
|
|
205
|
-
| ACP unavailable | `claude`、`codex`、`dsh`、`
|
|
206
|
-
| autonomous CLI choices | `antigravity`、`claude`、`codex`、`opencode`、`dsh`、`cline`、`zcode` |
|
|
205
|
+
| ACP unavailable | `claude`、`codex`、`dsh`、`minimax`、`pi`、`zcode` |
|
|
206
|
+
| autonomous CLI choices | `agnescode`、`antigravity`、`claude`、`codex`、`opencode`、`dsh`、`cline`、`zcode` |
|
|
207
207
|
|
|
208
208
|
因此,“可安装”不等于“有 ready engine plugin”,更不等于“支持 ACP 或自治闭环”。`bugx hosts --json` 是当前机器检测结果;源码矩阵是能力上限,不能代替本机 Host 的安装和登录状态。
|
|
209
209
|
|
|
@@ -148,7 +148,7 @@ help 接受可变数量的 COMMAND 词;completion 的值只有 bash、zsh、fi
|
|
|
148
148
|
[--docs-transport {stdio,remote}] [--docs-remote-url URL]
|
|
149
149
|
[--locale LOCALE] [--json]
|
|
150
150
|
|
|
151
|
-
--agent 可重复;当前安装/检测值为 chatgpt、claude、cline、codex、dsh、funide、kimi、minimax、opencode、pi、qoder、trea、workbuddy、zcode。默认以本地 `stdio` 模式注册 `bugx-supervisor` 与 `bugx-supervisor-worker`;`bugx-docs` 采用「远程优先(Remote-First)」模式默认直连官方只读云端 HTTP MCP 端点,无法联网或传入 `--docs-transport stdio` / `BUGX_DOCS_OFFLINE=1` 时自动无感降级为本地 `stdio` 模式及离线基线。不指定 --agent 时不要假设会配置所有 Host。--allow-missing 允许缺失可选资产时继续,但不改变核心依赖或 Host MCP 的 ready/ACP 状态。
|
|
151
|
+
--agent 可重复;当前安装/检测值为 agnescode、antigravity、chatgpt、claude、cline、codex、dsh、funide、kimi、minimax、opencode、pi、qoder、trea、workbuddy、zcode。默认以本地 `stdio` 模式注册 `bugx-supervisor` 与 `bugx-supervisor-worker`;`bugx-docs` 采用「远程优先(Remote-First)」模式默认直连官方只读云端 HTTP MCP 端点,无法联网或传入 `--docs-transport stdio` / `BUGX_DOCS_OFFLINE=1` 时自动无感降级为本地 `stdio` 模式及离线基线。不指定 --agent 时不要假设会配置所有 Host。--allow-missing 允许缺失可选资产时继续,但不改变核心依赖或 Host MCP 的 ready/ACP 状态。
|
|
152
152
|
安装事务支持双模式:在用户主目录(`~`)未传 `--root` 时进入**用户全局模式**,仅部署共享引擎(`~/.bugx/core`)、全局知识库、必需核心依赖(`codebase-memory-mcp` 与 `tree-sitter-language-pack`,直接安装校验且绝不降级放行)以及用户级宿主资产(DSH 全局 `cordis.patch.yml` 使用无 `--root` 动态参数),不向主目录写入项目状态或删除 `~/.bugx/core`;进入项目仓库执行或显式传 `--root <项目目录>` 时绑定项目运行态并写入项目级 MCP 绑定与 `.bugx/hosts.json`。可选能力(`playwright`、`postmcp`、`codindex`、UI/效率工具、`MCP 离线 runtime`)延迟至实际项目审计 `pre` 阶段按需启用。
|
|
153
153
|
|
|
154
154
|
### 4.6 reset [W][D]
|
|
@@ -651,7 +651,7 @@ start 的 max wall time 默认 14400.0 秒,interval 默认 5.0 秒;attach
|
|
|
651
651
|
|
|
652
652
|
### 9.2 autonomous
|
|
653
653
|
|
|
654
|
-
bugx autonomous [--root ROOT] --host {claude,codex,opencode,dsh,cline,zcode}
|
|
654
|
+
bugx autonomous [--root ROOT] --host {agnescode,antigravity,claude,codex,opencode,dsh,cline,zcode}
|
|
655
655
|
[--workers N] [--model MODEL] [--provider PROVIDER]
|
|
656
656
|
[--max-turns N] [--max-wall-time SECONDS]
|
|
657
657
|
[--agent-timeout SECONDS]
|
|
@@ -669,7 +669,7 @@ start 的 max wall time 默认 14400.0 秒,interval 默认 5.0 秒;attach
|
|
|
669
669
|
### 9.3 goal
|
|
670
670
|
|
|
671
671
|
bugx goal [TARGET_DESCRIPTION] [--root ROOT]
|
|
672
|
-
[--host {claude,codex,opencode,dsh,cline,zcode}]
|
|
672
|
+
[--host {agnescode,antigravity,claude,codex,opencode,dsh,cline,zcode}]
|
|
673
673
|
[--target-coverage PERCENT]
|
|
674
674
|
[--allow-open-findings] [--disallow-quarantine]
|
|
675
675
|
[--max-turns N] [--max-wall-time SECONDS]
|
|
@@ -233,10 +233,10 @@ doctor 不再报告 unsafe layout、identity mismatch 或 missing lifecycle;
|
|
|
233
233
|
|
|
234
234
|
先区分四套能力:
|
|
235
235
|
|
|
236
|
-
- 安装/检测适配器
|
|
237
|
-
- ready engine plugin
|
|
238
|
-
- ACP ready
|
|
239
|
-
- autonomous CLI choices
|
|
236
|
+
- 安装/检测适配器 16 个;
|
|
237
|
+
- ready engine plugin 11 个;
|
|
238
|
+
- ACP ready 包含 agnescode、antigravity、cline、kimi、opencode;
|
|
239
|
+
- autonomous CLI choices 包含 agnescode、antigravity、claude、codex、opencode、dsh、cline、zcode。
|
|
240
240
|
|
|
241
241
|
可安装不等于 ACP ready。--allow-missing 只允许缺失可选资产时继续,不会制造插件 facet。--force 只在确认 BugX-owned 静态资产可以更新时使用;普通 install 不应擅自覆盖用户文件。
|
|
242
242
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# BugX
|
|
1
|
+
# BugX 主流 AI 宿主接入与派发避坑速查卡
|
|
2
2
|
|
|
3
3
|
> 适用场景:安装配置宿主、MCP 未加载、Worker 派发方式选择、各宿主交互原语与常见报错。
|
|
4
4
|
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
| 宿主 (`--agent`) | MCP 配置文件位置与作用域 | 交互单选工具 | Worker 并发方式 | 核心注意与坑位 |
|
|
8
8
|
|---|---|---|---|---|
|
|
9
|
+
| **Agnes Code** | 项目根 `agnescode.json` (`mcp.servers`) / 镜像 `.agnescode/` | `question` (`multiple=false`) | `subagent` (`bugx.md`, `background=false`) | 终端原生 TUI;支持 `--agent agnescode` 一键安装与 ACP 无头探活,`AGNESCODE_CONFIG_DIR` 隔离 |
|
|
10
|
+
| **Google Antigravity** | 工作区 `.agents/mcp_config.json` | Agent selector | 串行多进程会话 | 插件本体位于用户级 `~/.gemini/config/plugins`,项目级 MCP 须与插件隔离 |
|
|
9
11
|
| **OpenCode** | 项目根 `opencode.json` (`mcp.servers`) | `question` (`multiple=false`) | `subagent` (`bugx-worker`, `background=false`) | 必须在项目根启动;`pre` 需同步前台跑 (`timeout=300000`);禁止从 shell 另起 `bugx mcp serve`(会触发 `session_occupied`) |
|
|
10
12
|
| **Claude Code** | 项目根 `.mcp.json` + `.claude/mcp.json` (`mcpServers`) | `AskUserQuestion` (`tooling:batch` 用多选) | `Task(subagent_type="bugx-worker")` | **勿传 `process_pid`**;上游无 ACP(`claude -p` 走 headless);确保探针输出非空 stdout/stderr 满足双独立证据通道 |
|
|
11
13
|
| **Codex** | `.codex/config.toml` + `$CODEX_HOME/config.toml` (`mcp_servers`) | `request_user_input_async` | 原生子智能体(`fork_turns="none"`) | 须具备项目信任表 `[projects]`;支持 `command` (`stdio`) 或 `url` (Remote HTTP MCP) |
|
|
@@ -15,7 +17,7 @@
|
|
|
15
17
|
|
|
16
18
|
## 2. 默认接入与远程优先通道
|
|
17
19
|
* **默认方式(100% 全宿主兼容)**:所有宿主均注册 `bugx-supervisor`(Host 本地 stdio)、`bugx-supervisor-worker`(Worker 本地 stdio)。
|
|
18
|
-
* **远程优先官档通道(Remote-First)**:`bugx-docs` 默认采用「远程优先」策略直连云端官档(如 `https://bugx.dev/api/v1/mcp/docs?contract_version=0.1.
|
|
20
|
+
* **远程优先官档通道(Remote-First)**:`bugx-docs` 默认采用「远程优先」策略直连云端官档(如 `https://bugx.dev/api/v1/mcp/docs?contract_version=0.1.5`),零本地常驻进程;在断网环境或传入 `--docs-transport stdio` 时自动无感降级为本地 `stdio` 进程与随包离线快照。`mcp_process_tracker` 会自动识别 URL 形态,不会误报“缺少本地进程”。
|
|
19
21
|
|
|
20
22
|
## 3. 通用高代价避坑(实证复盘)
|
|
21
23
|
1. **静默 `sys.exit(1)` 导致双证据通道校验失败**:正例探针失败退出时,引擎依赖非空 stdout/stderr 构造第二验证通道;纯静默退出会被 Confirmation Gate 拒收。务必打印具体可观测差分值(如 `SENTINEL=True` / `ACTUAL=...`)。
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: bugx
|
|
3
3
|
description: BugX 是一个具备自主代码审查与测试能力的智能体,严把代码交付关:它帮助开发人员在写完代码后自动排查隐藏的深层 Bug,减少反复排错与返工;帮助测试人员自动化运行黑盒测试、功能验证与性能测试,自动覆盖手工盲测难以覆盖的极端场景;确保代码功能符合要求、具备良好的健壮性和稳定性。让开发和测试在繁琐的工作中解放双手,大幅提高工作效率、全面提升代码质量、显著降低后期维护成本,实现科技服务于人。
|
|
4
4
|
metadata:
|
|
5
|
-
bugx_version: "0.1.
|
|
5
|
+
bugx_version: "0.1.6"
|
|
6
6
|
---
|
|
7
7
|
<!-- bugx-locale: zh-CN -->
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ metadata:
|
|
|
10
10
|
|
|
11
11
|
BugX ChatGPT Skill 镜像。执行前用 `bugx engine path --name AGENT_GUIDE.md` 和 `bugx engine path --name bugx.md` 读取全局协议;项目 `.bugx/` 只保存状态与配置。
|
|
12
12
|
|
|
13
|
-
协议镜像版本:0.1.
|
|
13
|
+
协议镜像版本:0.1.6
|
|
14
14
|
|
|
15
15
|
## ChatGPT 原生交互适配(强制)
|
|
16
16
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: bugx
|
|
3
3
|
description: BugX 深度代码审查与缺陷挖掘智能体。提供自主缺陷挖掘、敏捷单点复现(PoC)、环境体检及知识检索能力。
|
|
4
4
|
metadata:
|
|
5
|
-
bugx_version: "0.1.
|
|
5
|
+
bugx_version: "0.1.6"
|
|
6
6
|
---
|
|
7
7
|
<!-- bugx-locale: zh-CN -->
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ metadata:
|
|
|
10
10
|
|
|
11
11
|
BugX 核心协议镜像。执行前可通过 `bugx engine path --name bugx.md` 读取完整规范;项目 `.bugx/` 保存运行态与账本。
|
|
12
12
|
|
|
13
|
-
协议镜像版本:0.1.
|
|
13
|
+
协议镜像版本:0.1.6
|
|
14
14
|
|
|
15
15
|
## 1. 意图分流决策树 (Triage Decision Tree)
|
|
16
16
|
拿到任务第一秒,判定属于哪个分支:
|