bugx-cli 0.1.1 → 0.1.3

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.
Files changed (131) hide show
  1. package/README.md +36 -35
  2. package/core/README.md +1 -1
  3. package/core/agent/agent_orchestrator.py +3 -0
  4. package/core/agent/agent_workspace.py +14 -2
  5. package/core/assets/README.md +3 -2
  6. package/core/assets/bugx-social-preview.svg +71 -0
  7. package/core/assets/bugx-wechat-group.png +0 -0
  8. package/core/assets/twitter_promo_art.jpg +0 -0
  9. package/core/assets/twitter_promo_card.svg +166 -0
  10. package/core/assets/twitter_promo_clean.jpg +0 -0
  11. package/core/assets/twitter_terminal_real.png +0 -0
  12. package/core/audit_packs/README.md +2 -0
  13. package/core/audit_packs/pitfalls/auth_crypto.json +64 -0
  14. package/core/audit_packs/pitfalls/file_ssrf_cmd.json +64 -0
  15. package/core/audit_packs/pitfalls/go_backend.json +66 -0
  16. package/core/audit_packs/pitfalls/java_spring.json +64 -0
  17. package/core/audit_packs/pitfalls/js_ts_web.json +67 -0
  18. package/core/audit_packs/pitfalls/python_web.json +82 -0
  19. package/core/bugx.md +2 -2
  20. package/core/bugx_paths.py +2 -2
  21. package/core/cli-help.txt +1 -1
  22. package/core/cloud_sync/cloud_client.py +56 -5
  23. package/core/cloud_sync/consent.py +33 -3
  24. package/core/cloud_sync/flywheel_client.py +186 -24
  25. package/core/contracts/README.md +1 -1
  26. package/core/contracts/bugx-opencode.md +1 -1
  27. package/core/contracts/bugx-runtime-contract.md +1 -1
  28. package/core/contracts/bugx-worker.md +1 -1
  29. package/core/engine-integrity.json +191 -95
  30. package/core/host_acp/kimi.py +175 -0
  31. package/core/host_acp/minimax.py +28 -0
  32. package/core/host_runtime/host_registry.py +23 -3
  33. package/core/hosts/dsh.py +1 -1
  34. package/core/hosts/kimi.py +293 -0
  35. package/core/hosts/minimax.py +248 -0
  36. package/core/hosts/zcode.py +5 -0
  37. package/core/infra/README.md +1 -1
  38. package/core/infra/build_info.py +30 -5
  39. package/core/launch_phases/README.md +6 -3
  40. package/core/launch_phases/finding_confirm_phase.py +168 -7
  41. package/core/launch_phases/post_phase.py +5 -5
  42. package/core/launch_phases/pre_recon_scout.py +13 -0
  43. package/core/launch_phases/report_sharing.py +3 -7
  44. package/core/launch_phases/round_orchestrator.py +114 -26
  45. package/core/launch_phases/semantic_recon.py +545 -0
  46. package/core/launch_phases/startup_version_gate.py +6 -2
  47. package/core/launch_phases/supervisor_bridge.py +14 -23
  48. package/core/launch_phases/verify_loop.py +767 -0
  49. package/core/launch_phases/worker_prior.py +115 -0
  50. package/core/ledger/README.md +2 -1
  51. package/core/ledger/finding_verification.py +511 -2
  52. package/core/ledger/fp_ledger.py +255 -0
  53. package/core/metadata.txt +2 -2
  54. package/core/planning/README.md +2 -1
  55. package/core/planning/prompt_harness.py +50 -10
  56. package/core/planning/prompt_policy_engine.py +386 -0
  57. package/core/prompts/README.md +4 -2
  58. package/core/prompts/policies/prompt_policies.json +101 -0
  59. package/core/prompts/stages/stage_verify.defensive.md +42 -0
  60. package/core/prompts/stages/stage_verify.md +44 -0
  61. package/core/report_engine/report_share.py +0 -8
  62. package/core/retrieval/README.md +2 -1
  63. package/core/retrieval/pitfall_packs.py +277 -0
  64. package/core/runtime/README.md +1 -1
  65. package/core/runtime/global_telemetry.py +20 -0
  66. package/core/runtime/scenario_eval.py +1 -1
  67. package/core/runtime/setup_ui_env.py +4 -7
  68. package/core/supervisor/README.md +1 -1
  69. package/core/supervisor/cli.py +2 -2
  70. package/core/webui/mcp_inspector.py +6 -0
  71. package/core/webui/static/index.html +51 -3
  72. package/core/webui/static/manifest.webmanifest +1 -1
  73. package/core/webui/static/project-settings.js +18 -3
  74. package/core/webui/static/robots.txt +36 -0
  75. package/core/webui/static/sitemap.xml +15 -0
  76. package/docs/07_distribution/01_README_NPM.md +36 -35
  77. package/ecosystem/integrations/cline/skills/bugx/SKILL.md +1 -1
  78. package/ecosystem/integrations/dsh/agents/bugx.md +1 -1
  79. package/ecosystem/integrations/dsh/dsh-patch.yml +2 -2
  80. package/ecosystem/integrations/dsh/mcp/package.json +1 -1
  81. package/ecosystem/integrations/dsh/skills/bugx/SKILL.md +1 -1
  82. package/ecosystem/integrations/dsh/skills/bugx-dsh/SKILL.md +1 -1
  83. package/ecosystem/integrations/dsh/ui/package.json +1 -1
  84. package/ecosystem/integrations/opencode/bugx-mcp-manifest.json +1 -1
  85. package/ecosystem/integrations/pi/extensions/bugx/manifest.json +1 -1
  86. package/ecosystem/integrations/pi/skills/bugx/SKILL.md +1 -1
  87. package/ecosystem/integrations/qoder/connector-meta.json +9 -9
  88. package/ecosystem/integrations/workbuddy/connector-meta.json +9 -9
  89. package/ecosystem/integrations/workbuddy/skills/bugx/SKILL.md +2 -2
  90. package/ecosystem/plugins/bugx/.claude-plugin/marketplace.json +2 -2
  91. package/ecosystem/plugins/bugx/.claude-plugin/plugin.json +2 -2
  92. package/ecosystem/plugins/bugx/.codex-plugin/plugin.json +4 -4
  93. package/ecosystem/plugins/bugx/.zcode-plugin/plugin.json +2 -2
  94. package/ecosystem/plugins/bugx/agents/bugx-worker.md +1 -1
  95. package/ecosystem/plugins/bugx/agents/bugx.md +1 -1
  96. package/ecosystem/plugins/bugx/skills/bugx/SKILL.md +3 -3
  97. package/ecosystem/plugins/bugx/skills/bugx-claude/SKILL.md +1 -1
  98. package/ecosystem/plugins/bugx/skills/bugx-dsh/SKILL.md +1 -1
  99. package/ecosystem/plugins/bugx/skills/bugx-opencode/SKILL.md +1 -1
  100. package/ecosystem/plugins/bugx/skills/bugx-zcode/SKILL.md +1 -1
  101. package/interfaces/bin/bugx.js +9 -7
  102. package/interfaces/cli/bugx_cli/__init__.py +2 -2
  103. package/interfaces/cli/bugx_cli/cli.py +178 -67
  104. package/interfaces/cli/bugx_cli/commands/agent.py +313 -127
  105. package/interfaces/cli/bugx_cli/commands/audit.py +8 -7
  106. package/interfaces/cli/bugx_cli/commands/cloud.py +27 -19
  107. package/interfaces/cli/bugx_cli/commands/doctor.py +18 -0
  108. package/interfaces/cli/bugx_cli/commands/knowledge.py +3 -4
  109. package/interfaces/cli/bugx_cli/commands/lifecycle.py +54 -47
  110. package/interfaces/cli/bugx_cli/commands/plugin.py +9 -9
  111. package/interfaces/cli/bugx_cli/commands/plugin_claude.py +27 -13
  112. package/interfaces/cli/bugx_cli/commands/plugin_kimi.py +348 -0
  113. package/interfaces/cli/bugx_cli/commands/plugin_minimax.py +322 -0
  114. package/interfaces/cli/bugx_cli/commands/plugin_qoder.py +3 -4
  115. package/interfaces/cli/bugx_cli/commands/plugin_zcode.py +4 -5
  116. package/interfaces/cli/bugx_cli/commands/project.py +6 -13
  117. package/interfaces/cli/bugx_cli/commands/system.py +577 -162
  118. package/interfaces/cli/bugx_cli/common.py +102 -15
  119. package/interfaces/cli/bugx_cli/host_adapters.py +150 -4
  120. package/interfaces/cli/bugx_cli/hosts/registry.py +4 -2
  121. package/interfaces/cli/bugx_cli/hosts/template_engine.py +10 -9
  122. package/interfaces/cli/bugx_cli/infra/engine_installer.py +21 -10
  123. package/interfaces/cli/bugx_cli/infra/host_sync.py +1 -1
  124. package/interfaces/cli/bugx_cli/infra/mcp_advisor.py +2 -2
  125. package/package.json +54 -16
  126. package/pyproject.toml +64 -1
  127. package/scripts/sync-version.mjs +1 -1
  128. package/skills/README.md +25 -0
  129. package/skills/platform/bugx-user/SKILL.md +92 -0
  130. package/core/assets/bugx-hero-cn.png +0 -0
  131. package/core/assets/bugx-hero-en.png +0 -0
@@ -2,11 +2,16 @@
2
2
  <img src="https://raw.githubusercontent.com/Bencibr/bugx/main/core/assets/bugx-hero-en.svg" alt="BugX — effortless audits of AI-written code" width="1000">
3
3
  </p>
4
4
 
5
- # BugX — AI Code Audit Agent for Claude Code, Codex, Cline, OpenCode, and ZCode
5
+ # BugX — Autonomous Code Review & Automated Testing Agent
6
6
 
7
- BugX is an autonomous code-audit agent that runs inside your AI coding assistant or on the command line. It audits AI-written code end to end: it builds a coverage list of your project, dispatches concurrent audit workers, verifies every candidate finding with real executions, and produces a report where each finding ships with a command you can run yourself to reproduce it.
7
+ BugX is an autonomous code review and automated testing agent that lives inside your AI coding assistant or runs standalone on the command line.
8
8
 
9
- If you use AI coding tools to write production code, BugX is the security audit and code review layer that checks what the model actually delivered — not what it claims to have delivered.
9
+ **It safeguards software delivery at every step:**
10
+ - **For Developers**: Catches subtle, high-impact bugs immediately after code is written, eliminating painful debugging loops and rework.
11
+ - **For QA & Test Engineers**: Automates black-box, functional, and performance testing across complex edge cases that manual reviews often miss.
12
+ - **For Engineering Teams**: Guarantees code strictly meets functional contracts with rock-solid stability and resilience, ensuring dependable, crash-free releases.
13
+
14
+ 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**.
10
15
 
11
16
  <p align="center">
12
17
  <a href="https://www.npmjs.com/package/bugx-cli"><img src="https://img.shields.io/npm/v/bugx-cli.svg?style=flat&color=0284c7&label=npm" alt="npm version"></a>
@@ -42,7 +47,8 @@ BugX counters this with a ledger and four hard rules: a per-unit coverage list (
42
47
  - **Functionality review** — a behavior diff: the same inputs go to your implementation and a reference implementation, and the differences are reported.
43
48
  - **Performance and memory checks** — performance and resource defects, plus dedicated memory inspection for native, Python, JVM, Electron, Android, and Apple targets.
44
49
  - **UI audit** — layout, contrast, keyboard paths, and design tokens on a running web page (`bugx probe ui`).
45
- - **Reproducible findings** — every vulnerability ships with a command or input you can run yourself; all three verification runs (two positive, one negative control) stay on record.
50
+ - **Reproducible findings & blind verification** — every vulnerability is blind-reviewed by an independent verifier with a reproduction command or PoC; verified with AST negative control assertions; refuted cases are logged to the FP Ledger.
51
+ - **Prompt Policy Engine** — declarative prompt profiles adapt to model-specific safety filters (e.g. OpenAI Cyber Risk / Daybreak) without losing code fidelity.
46
52
  - **Mutation-verified tests** — `bugx test-verify` mutates your code to check whether the tests actually catch the bugs.
47
53
  - **Patch bundles** — `bugx patch-forge` builds a patch with static checks and hands it to you for review; it never commits on its own.
48
54
  - **Lessons base and unattended runs** — `bugx lesson` / `bugx knowledge` accumulate project and global experience; `bugx autonomous` and `bugx goal` run end-to-end audits without supervision.
@@ -72,12 +78,10 @@ The skill marketplace ships with `/audit` (one-shot full-surface audit with a du
72
78
 
73
79
  Requires Node.js `>=18`. Python `>=3.11` is detected and managed by the wrapper.
74
80
 
75
- **Run without installing (zero-config):**
81
+ **Check the CLI without a global install:**
76
82
 
77
83
  ```bash
78
- npx bugx-cli doctor --strict # check system readiness and AI tool connectivity
79
- npx bugx-cli init # initialize the current repository (.bugx/)
80
- npx bugx-cli install # register local AI assistants
84
+ npx bugx-cli --version
81
85
  ```
82
86
 
83
87
  **Or install globally** (pick your package manager):
@@ -89,15 +93,21 @@ npm install -g bugx-cli
89
93
  # bun add -g bugx-cli
90
94
  ```
91
95
 
92
- After installing, run this once from any directory:
96
+ After installing, run this from the repository you want to use:
93
97
 
94
98
  ```bash
95
99
  bugx install # lists detected AI hosts and registers the BugX MCP servers
96
100
  bugx doctor --strict # health diagnostics
97
101
  ```
98
102
 
103
+ > ⚠️ **Important (Restart Required)**: After configuring or updating project MCP settings, **completely restart your host IDE or AI coding assistant** (e.g., Cursor, Trae, VS Code, Kimi Code, MiniMax Code, ZCode) so the host process reloads the project-level MCP server configuration.
104
+
99
105
  To install everywhere at once: `bugx install --agent all`.
100
106
 
107
+ Sign in with `bugx auth login --root .`, then check the expected account and `auth_verified=true` with `bugx auth status --root . --verify --json`. Confirm which data may sync before enabling the project. If both the account-wide and project scopes are authorized, initialize a fresh project with `bugx init --root . --cloud-sync sync` and verify the transfer with `bugx cloud sync --root . --scope all`. Decline partial-sync requests. For existing projects and sync errors, see the [user guide](https://github.com/Bencibr/bugx/blob/main/docs/01_guides/01_USER_GUIDE.md#3-初始化项目).
108
+
109
+ Use `bugx engine --root . status --json` to check the current stage. After review and settlement, sync newly recorded lessons and experience in the same scope and check `bugx cloud status --root . --scope all --json`.
110
+
101
111
  **Option 1 — inside your AI assistant (recommended).** Open Claude Code, Codex, Cline, OpenCode, or ZCode in any project and just tell it what to check:
102
112
 
103
113
  **ZCode**
@@ -116,13 +126,6 @@ To install everywhere at once: `bugx install --agent all`.
116
126
  **Option 2 — from the terminal.** 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.
117
127
 
118
128
  ```bash
119
- bugx auth login # sign in to the cloud account (lesson and experience sync)
120
- bugx init --cloud-sync sync # enable cloud sync so the project works across devices
121
-
122
- bugx engine pre # build the coverage list and audit plan
123
- bugx engine status # follow progress
124
- bugx engine post # settle: cross-check coverage, evidence, and verdicts
125
-
126
129
  bugx autonomous --host opencode # full audit without supervision
127
130
  bugx goal --host opencode "audit this project's login and payment flows"
128
131
 
@@ -165,7 +168,7 @@ DeepSeek Harness (DSH), WorkBuddy, Cursor / Windsurf, and more are being adapted
165
168
 
166
169
  - Project state lives in the project's `.bugx/` directory; the global engine, credentials, knowledge base, and caches live in a user-level BugX directory.
167
170
  - 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.
168
- - Cloud uploads, feedback, diagnostic log reporting, and sync are all explicit operations: each states its `--scope` before it runs.
171
+ - Knowledge sync uses the configured scope and sensitive-data policy. Bundle uploads, diagnostic log reports, and feedback have separate commands and data boundaries.
169
172
  - `reset` / `uninstall` / `purge` / `--no-backup` delete data. Check each command's dry-run and backup behavior first.
170
173
 
171
174
  ### FAQ
@@ -174,10 +177,13 @@ DeepSeek Harness (DSH), WorkBuddy, Cursor / Windsurf, and more are being adapted
174
177
  An autonomous code-audit agent for AI-written code. It runs inside AI coding assistants (via MCP) or as a CLI, tracks audit coverage per unit, and verifies every finding by executing it.
175
178
 
176
179
  **How does BugX verify a vulnerability?**
177
- Every candidate runs through the engine's verification channel: the same attack input must reproduce the finding twice, and a clean input must produce nothing. All three executions are recorded with commands, exit codes, and artifact hashes.
180
+ 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.
181
+
182
+ **Does BugX trigger AI model cyber-security risk blocks?**
183
+ 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.
178
184
 
179
185
  **Does BugX send my code to the cloud?**
180
- The audit itself runs locally. Cloud sync of lessons and experience is an explicit opt-in; nothing is uploaded unless you run it.
186
+ The audit runs locally. When you enable lesson and experience sync, startup and eligible ledger writes can trigger cloud transfers. The authorized scope and sensitive-data policy govern the records sent.
181
187
 
182
188
  **Does BugX replace human review?**
183
189
  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.
@@ -187,7 +193,7 @@ Multi-language static and behavioral analysis (Python, JavaScript/TypeScript, Ja
187
193
 
188
194
  ### Keywords
189
195
 
190
- ai code audit · ai code review · code review agent · security audit · vulnerability scanner · sast · static analysis · mcp server · mcp security · claude code · openai codex · opencode · cline · roo code · zcode · coding agent · llm code review · autonomous audit · behavior diff · memory leak detection · python security · javascript security · devsecops
196
+ vibe coding · vibe coding security · pr review · pull request review · zero false positive · poc generator · mcp security · automated code audit · ai code audit · automated code review · code review agent · ai agent · security audit · vulnerability scanner · vulnerability mining · sast · static analysis · mcp server · claude code · openai codex · opencode · cline · roo code · zcode · coding agent · llm code review · autonomous audit · behavior diff · memory leak detection · python security · javascript security · devsecops
191
197
 
192
198
  ---
193
199
 
@@ -195,9 +201,9 @@ ai code audit · ai code review · code review agent · security audit · vulner
195
201
 
196
202
  ### 什么是 BugX?
197
203
 
198
- BugX 是装进 AI 编程助手的代码审计 Agent。它对 AI 写出的代码做端到端审计:把项目拆成覆盖清单、派发并发审计 Worker、对每条候选漏洞做真实执行验证,最终产出一份报告——每条漏洞都附带一条你可以亲手运行的复现命令。
204
+ BugX 是装进 AI 编程助手的**自动代码审计与自动化 Code Review 智能体(Agent)**。它对 AI 写出的代码做端到端自动化审计与代码审查:把项目拆成覆盖清单、派发并发审计 Worker、对每条候选漏洞做真实执行验证,最终产出一份详实的审计报告——每条漏洞都附带一条你可以亲手运行的复现命令。
199
205
 
200
- 如果你的生产代码来自 AI 编程工具,BugX 就是那个安全审计与代码审查层:它核查模型**实际交付了什么**,而不是模型**声称交付了什么**。
206
+ 如果你的生产代码来自 AI 编程工具,BugX 就是那个专注于**自动代码审计**、**Code Review** 与安全加固的智能体层:它核查模型**实际交付了什么**,而不是模型**声称交付了什么**。
201
207
 
202
208
  ### 为什么 AI 代码需要审计
203
209
 
@@ -213,12 +219,10 @@ BugX 用一本账和四条硬规矩对抗这件事:逐单元覆盖清单(查
213
219
 
214
220
  要求 Node.js `>=18`;Python `>=3.11` 由包装器自动检测管理。
215
221
 
216
- **免安装直接执行:**
222
+ **免全局安装,先检查 CLI:**
217
223
 
218
224
  ```bash
219
- npx bugx-cli doctor --strict # 检查系统就绪与 AI 工具连通
220
- npx bugx-cli init # 初始化当前仓库(.bugx/)
221
- npx bugx-cli install # 注册本地 AI 助手
225
+ npx bugx-cli --version
222
226
  ```
223
227
 
224
228
  **或全局安装:**
@@ -227,7 +231,7 @@ npx bugx-cli install # 注册本地 AI 助手
227
231
  npm install -g bugx-cli
228
232
  ```
229
233
 
230
- 装好后任意目录跑一次:
234
+ 装好后在目标仓库运行:
231
235
 
232
236
  ```bash
233
237
  bugx install # 列出检测到的 AI 宿主并注册 BugX MCP 服务
@@ -236,6 +240,10 @@ bugx doctor --strict # 健康自检
236
240
 
237
241
  一次装全所有宿主:`bugx install --agent all`。
238
242
 
243
+ 在目标仓库运行 `bugx auth login --root .`,再用 `bugx auth status --root . --verify --json` 核对账号和 `auth_verified=true`。确认同步范围和敏感数据策略后再开启同步。两层都已授权且为全新项目时,用 `bugx init --root . --cloud-sync sync` 初始化,然后用 `bugx cloud sync --root . --scope all` 验证首次推拉。只授权部分数据时停止同步。已有项目或同步失败时,参照[用户指南](https://github.com/Bencibr/bugx/blob/main/docs/01_guides/01_USER_GUIDE.md#3-初始化项目)。
244
+
245
+ 用 `bugx engine --root . status --json` 查看当前阶段。审查收尾后,按同一授权范围同步本轮录入的错题和经验,再用 `bugx cloud status --root . --scope all --json` 核对绑定与同步状态。
246
+
239
247
  **方式一:在 AI 助手里用(推荐)。** 在任意项目里打开 Claude Code、Codex、Cline、OpenCode 或 ZCode,直接说:
240
248
 
241
249
  > 「审计一下这个项目」
@@ -246,13 +254,6 @@ bugx doctor --strict # 健康自检
246
254
  **方式二:命令行直接跑。** AI 同样来自你已装好的宿主——模型和凭据直接复用,不接管你的 Key。
247
255
 
248
256
  ```bash
249
- bugx auth login # 登录云端账号(错题/经验同步用)
250
- bugx init --cloud-sync sync # 开启云端同步
251
-
252
- bugx engine pre # 建立覆盖清单与审计计划
253
- bugx engine status # 看进度
254
- bugx engine post # 结账:核对覆盖、证据与裁决
255
-
256
257
  bugx autonomous --host opencode # 无人值守完整审计
257
258
  bugx report serve # 实时 Web 报告 http://127.0.0.1:8080
258
259
  ```
@@ -278,7 +279,7 @@ DeepSeek Harness(DSH)、WorkBuddy、Cursor / Windsurf 等持续适配中。
278
279
 
279
280
  ### 关键词
280
281
 
281
- AI 代码审计 · AI 代码审查 · 代码审查 Agent · 安全审计 · 漏洞扫描 · 静态分析 · MCP 服务 · Claude Code 审计 · Codex 审计 · 编程助手安全 · 自主审计 · 行为差分 · 内存泄漏检测 · Python 安全 · JavaScript 安全
282
+ 自动代码审计 · AI 代码审计 · 自动化 Code Review · Code Review · 代码审查 Agent · 代码审计智能体 · AI Agent · Vibe Coding 安全 · 氛围编程审计 · PR 自动审查 · 零误报 · 真实 PoC 复现 · 盲审验证 · 安全审计 · 漏洞扫描 · 漏洞挖掘 · 静态分析 · MCP 服务 · MCP 安全 · Claude Code 审计 · Codex 审计 · 编程助手安全 · 自主审计 · 行为差分 · 内存泄漏检测 · Python 安全 · JavaScript 安全 · DevSecOps
282
283
 
283
284
  ## License
284
285
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bugx
3
- description: An autonomous agent dedicated to code review, vulnerability hunting, and automated bug fixing. Built for deep investigations, BugX steps in when you are wrapping up a feature, opening a pull request, or hunting down an elusive bug. It analyzes code logic, automatically writes test cases to uncover and reproduce hidden flaws, and delivers verified patches that resolve root causes. Always safeguarding your code quality and security.
3
+ description: An autonomous code review and testing agent designed to safeguard software delivery. It surfaces hidden bugs for developers to eliminate painful debugging and rework, while automating black-box, functional, and performance testing across complex edge cases for QA. Ensures code runs reliably, meets all requirements, and frees engineers to focus on what matters.
4
4
  ---
5
5
  <!-- bugx-locale: en-US -->
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bugx
3
- description: Use BugX for a full project audit or a targeted bug reproduction/fix. Full audits use the complete lifecycle across CLI, TUI, services, web/API, desktop, and mobile; targeted work uses the smallest evidence-backed path while preserving lifecycle, evidence, authorization, and reporting rules.
3
+ description: An autonomous code review and testing agent designed to safeguard software delivery. Surfaces hidden bugs for developers, automates black-box, functional, and performance testing for QA, and ensures rock-solid software delivery.
4
4
  ---
5
5
 
6
6
  # BugX Agent for DeepSeek Harness (dsh)
@@ -1,6 +1,6 @@
1
1
  # DeepSeek Harness (dsh) preset — 由 `bugx install --agent dsh` 自动生成。
2
2
  # 将此文件复制到 ~/.dsh/.agent-presets/bugx/agent.cordis.yml
3
- # 并配合 preset.yml 即可在 Web UI 中选中 "BugX 深度审计" 预设。
3
+ # 并配合 preset.yml 即可在 Web UI 中选中 "BugX 代码审查与智能测试" 预设。
4
4
 
5
5
  - id: agent-loop
6
6
  name: cordis:patch
@@ -8,7 +8,7 @@
8
8
  agents:
9
9
  - id: bugx
10
10
  name: bugx
11
- description: "你的自动化代码安全体检专家。深度排查项目中隐藏的逻辑漏洞、鉴权越界与并发隐患,不仅找 Bug,更能自动生成复现验证与修复建议。适合在项目提测发版前、安全合规体检或排查疑难缺陷时开启;日常开发与普通交流不打扰。"
11
+ description: "BugX 是一个具备自主代码审查与测试能力的智能体,严把代码交付关:它帮助开发人员在写完代码后自动排查隐藏的深层 Bug,减少反复排错与返工;帮助测试人员自动化运行黑盒测试、功能验证与性能测试,自动覆盖手工盲测难以覆盖的极端场景;确保代码功能符合要求、具备良好的健壮性和稳定性。让开发和测试在繁琐的工作中解放双手,大幅提高工作效率、全面提升代码质量、显著降低后期维护成本,实现科技服务于人。"
12
12
  instructions: |
13
13
  在执行任何探索前,先通过 bugx engine path --name AGENT_GUIDE.md 和
14
14
  bugx engine path --name bugx.md 读取全局协议,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bencibro/bugx-dsh-mcp-client",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Session-aware BugX MCP bridge for DeepSeek Harness.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bugx
3
- description: 专注于代码质量与安全的自主审查智能体。专为深层缺陷排查而生——在功能写完、提 PR 或排查疑难 Bug 时,它能深入分析代码逻辑,自动编写测试用例,挖掘、复现Bug和漏洞,生成经过验证的修复补丁。随时为您的代码质量和代码安全把关。
3
+ description: BugX 是一个具备自主代码审查与测试能力的智能体,严把代码交付关:它帮助开发人员在写完代码后自动排查隐藏的深层 Bug,减少反复排错与返工;帮助测试人员自动化运行黑盒测试、功能验证与性能测试,自动覆盖手工盲测难以覆盖的极端场景;确保代码功能符合要求、具备良好的健壮性和稳定性。让开发和测试在繁琐的工作中解放双手,大幅提高工作效率、全面提升代码质量、显著降低后期维护成本,实现科技服务于人。
4
4
  ---
5
5
  <!-- bugx-locale: zh-CN -->
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bugx-dsh
3
- description: BugX 漏洞挖掘引擎在 DeepSeek Harness (DSH) 宿主下的专属使用手册——新环境快速接入(构建/安装/doctor)、启动挖掘标准流程(pre 门禁→workers→checkpoint→post)、原生交互适配、Token 与模型用量采集。当用户在 DSH 里启动/排障/重置 BugX 审计、配置新环境或需要查看 DSH 本地模型与 Token 用量报告时使用本 skill。
3
+ description: BugX 自主代码审查与智能测试在 DeepSeek Harness (DSH) 宿主下的专属使用手册——新环境快速接入(构建/安装/doctor)、启动流程(pre 门禁→workers→checkpoint→post)、原生交互适配、Token 与模型用量采集。当用户在 DSH 里启动/排障/重置 BugX 审查与测试、配置新环境或需要查看 DSH 本地模型与 Token 用量报告时使用本 skill。
4
4
  ---
5
5
 
6
6
  # BugX × DeepSeek Harness (DSH) 使用手册(实战复盘版)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bencibro/bugx-dsh-ui",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "BugX branding and Sidebar icon for DeepSeek Harness.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema_version": 1,
3
3
  "name": "bugx-built-in-mcp",
4
- "version": "0.1.1",
4
+ "version": "0.1.3",
5
5
  "servers": {
6
6
  "bugx-supervisor": {
7
7
  "type": "builtin",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema_version": 1,
3
3
  "name": "bugx-pi",
4
- "version": "0.1.1",
4
+ "version": "0.1.3",
5
5
  "host": "pi",
6
6
  "kind": "extension",
7
7
  "entry": "index.ts",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bugx
3
- description: 专注于代码质量与安全的自主审查智能体。专为深层缺陷排查而生——在功能写完、提 PR 或排查疑难 Bug 时,它能深入分析代码逻辑,自动编写测试用例,挖掘、复现Bug和漏洞,生成经过验证的修复补丁。随时为您的代码质量和代码安全把关。
3
+ description: BugX 是一个具备自主代码审查与测试能力的智能体,严把代码交付关:它帮助开发人员在写完代码后自动排查隐藏的深层 Bug,减少反复排错与返工;帮助测试人员自动化运行黑盒测试、功能验证与性能测试,自动覆盖手工盲测难以覆盖的极端场景;确保代码功能符合要求、具备良好的健壮性和稳定性。让开发和测试在繁琐的工作中解放双手,大幅提高工作效率、全面提升代码质量、显著降低后期维护成本,实现科技服务于人。
4
4
  tools: read, bash, edit, write, grep, find, ls
5
5
  ---
6
6
  <!-- bugx-locale: zh-CN -->
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "BugX",
3
- "name_zh": "BugX 深度审计",
3
+ "name_zh": "BugX 代码审查与智能测试",
4
4
  "name_en": "BugX",
5
- "description": "专注于代码质量与安全的自主审查智能体。专为深层缺陷排查而生——在功能写完、提 PR 或排查疑难 Bug 时,它能深入分析代码逻辑,自动编写测试用例,挖掘、复现Bug和漏洞,生成经过验证的修复补丁。随时为您的代码质量和代码安全把关。",
6
- "description_zh": "专注于代码质量与安全的自主审查智能体。专为深层缺陷排查而生——在功能写完、提 PR 或排查疑难 Bug 时,它能深入分析代码逻辑,自动编写测试用例,挖掘、复现Bug和漏洞,生成经过验证的修复补丁。随时为您的代码质量和代码安全把关。",
7
- "description_en": "An autonomous agent dedicated to code review, vulnerability hunting, and automated bug fixing. Built for deep investigations, BugX steps in when you are wrapping up a feature, opening a pull request, or hunting down an elusive bug. It analyzes code logic, automatically writes test cases to uncover and reproduce hidden flaws, and delivers verified patches that resolve root causes. Always safeguarding your code quality and security.",
5
+ "description": "BugX 是一个具备自主代码审查与测试能力的智能体,严把代码交付关:它帮助开发人员在写完代码后自动排查隐藏的深层 Bug,减少反复排错与返工;帮助测试人员自动化运行黑盒测试、功能验证与性能测试,自动覆盖手工盲测难以覆盖的极端场景;确保代码功能符合要求、具备良好的健壮性和稳定性。让开发和测试在繁琐的工作中解放双手,大幅提高工作效率、全面提升代码质量、显著降低后期维护成本,实现科技服务于人。",
6
+ "description_zh": "BugX 是一个具备自主代码审查与测试能力的智能体,严把代码交付关:它帮助开发人员在写完代码后自动排查隐藏的深层 Bug,减少反复排错与返工;帮助测试人员自动化运行黑盒测试、功能验证与性能测试,自动覆盖手工盲测难以覆盖的极端场景;确保代码功能符合要求、具备良好的健壮性和稳定性。让开发和测试在繁琐的工作中解放双手,大幅提高工作效率、全面提升代码质量、显著降低后期维护成本,实现科技服务于人。",
7
+ "description_en": "BugX is an autonomous code review and testing agent designed to safeguard software delivery: it surfaces hidden, deep bugs for developers right after writing code to eliminate painful debugging and rework; automates black-box, functional, and performance testing across complex edge cases for QA; and ensures software strictly meets functional requirements with rock-solid stability and resilience. By taking over tedious verification, BugX frees engineers from manual grunt work, boosts team velocity, elevates code quality, and significantly lowers long-term maintenance costs—putting technology to work for people.",
8
8
  "source": "bugx-agent",
9
9
  "type": "mcp-connector",
10
- "version": "0.1.1",
10
+ "version": "0.1.3",
11
11
  "homepage": "https://bugx.dev",
12
12
  "website": "https://bugx.dev",
13
13
  "examples_zh": [
14
- "在项目提测发版前进行代码安全体检与漏洞排查",
15
- "深度排查鉴权、越界与并发等深层缺陷并生成复现验证"
14
+ "在项目提测发版前自动排查深层 Bug 与性能隐患",
15
+ "自动化运行黑盒测试与功能验证,确保上线稳定不翻车"
16
16
  ],
17
17
  "examples_en": [
18
- "Audit this project for real security bugs and deep defects before release",
19
- "Deeply investigate logic, auth, and concurrency flaws with PoC reproduction"
18
+ "Inspect code for deep bugs and performance bottlenecks before release",
19
+ "Run automated black-box and functional tests to ensure rock-solid stability"
20
20
  ]
21
21
  }
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "BugX",
3
- "name_zh": "BugX 深度审计",
3
+ "name_zh": "BugX 代码审查与智能测试",
4
4
  "name_en": "BugX",
5
- "description": "Use BugX to discover, reproduce, verify, and report real bugs.",
6
- "description_zh": "使用 BugX 发现、复现、验证并报告真实漏洞。",
7
- "description_en": "Use BugX to discover, reproduce, verify, and report real bugs.",
5
+ "description": "Autonomous code review and testing agent. Catches hidden deep bugs for developers, automates black-box, functional, and performance testing for QA, and ensures rock-solid software delivery.",
6
+ "description_zh": "BugX 是一个具备自主代码审查与测试能力的智能体,严把代码交付关:它帮助开发人员在写完代码后自动排查隐藏的深层 Bug,减少反复排错与返工;帮助测试人员自动化运行黑盒测试、功能验证与性能测试,自动覆盖手工盲测难以覆盖的极端场景;确保代码功能符合要求、具备良好的健壮性和稳定性。让开发和测试在繁琐的工作中解放双手,大幅提高工作效率、全面提升代码质量、显著降低后期维护成本,实现科技服务于人。",
7
+ "description_en": "Autonomous code review and testing agent. Catches hidden deep bugs for developers, automates black-box, functional, and performance testing for QA, and ensures rock-solid software delivery.",
8
8
  "source": "bugx-agent",
9
9
  "type": "skill-only",
10
- "version": "0.1.1",
10
+ "version": "0.1.3",
11
11
  "examples_zh": [
12
- "检查这个项目中是否存在真实漏洞",
13
- "复现并验证这个 BugX 发现的问题"
12
+ "运行代码审查,排查深层 Bug 与性能隐患",
13
+ "自动化运行功能验证与黑盒测试"
14
14
  ],
15
15
  "examples_en": [
16
- "Audit this project for real bugs",
17
- "Reproduce and verify the BugX finding"
16
+ "Run code review to uncover deep bugs and performance bottlenecks",
17
+ "Automate functional verification and black-box testing"
18
18
  ]
19
19
  }
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: bugx
3
- description: Use BugX to find, reproduce, verify, fix, and report bugs in an app or codebase.
4
- version: 0.1.1
3
+ description: Autonomous code review and testing agent. Catches hidden deep bugs for developers, automates black-box, functional, and performance testing for QA, and ensures rock-solid software delivery.
4
+ version: 0.1.3
5
5
  author: BugX
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
3
3
  "name": "bugx",
4
- "description": "Autonomous code review and vulnerability hunting agent that uncovers, reproduces, and fixes deep bugs.",
4
+ "description": "Autonomous code review and testing agent. Catches hidden deep bugs for developers, automates black-box, functional, and performance testing for QA, and ensures rock-solid software delivery.",
5
5
  "owner": {
6
6
  "name": "BugX",
7
7
  "url": "https://bugx.dev"
@@ -9,7 +9,7 @@
9
9
  "plugins": [
10
10
  {
11
11
  "name": "bugx",
12
- "description": "Autonomous code review and vulnerability hunting agent that uncovers, reproduces, and fixes deep bugs.",
12
+ "description": "Autonomous code review and testing agent. Catches hidden deep bugs for developers, automates black-box, functional, and performance testing for QA, and ensures rock-solid software delivery.",
13
13
  "source": "./",
14
14
  "category": "developer-tools"
15
15
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "bugx",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "bugx_build_id": 98,
5
- "description": "Autonomous code review and vulnerability hunting agent that uncovers, reproduces, and fixes deep bugs.",
5
+ "description": "Autonomous code review and testing agent. Catches hidden deep bugs for developers, automates black-box, functional, and performance testing for QA, and ensures rock-solid software delivery.",
6
6
  "author": {
7
7
  "name": "BugX",
8
8
  "url": "https://bugx.dev"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bugx",
3
- "version": "0.1.1",
4
- "description": "Autonomous code review and vulnerability hunting agent that uncovers, reproduces, and fixes deep bugs.",
3
+ "version": "0.1.3",
4
+ "description": "Autonomous code review and testing agent. Catches hidden deep bugs for developers, automates black-box, functional, and performance testing for QA, and ensures rock-solid software delivery.",
5
5
  "skills": "./skills/",
6
6
  "homepage": "https://bugx.dev",
7
7
  "author": {
@@ -17,8 +17,8 @@
17
17
  ],
18
18
  "interface": {
19
19
  "displayName": "BugX",
20
- "shortDescription": "Autonomous code review and vulnerability hunting agent that uncovers, reproduces, and fixes deep bugs.",
21
- "longDescription": "An autonomous agent dedicated to code review, vulnerability hunting, and automated bug fixing. Built for deep investigations, BugX steps in when you are wrapping up a feature, opening a pull request, or hunting down an elusive bug. It analyzes code logic, automatically writes test cases to uncover and reproduce hidden flaws, and delivers verified patches that resolve root causes. Always safeguarding your code quality and security.",
20
+ "shortDescription": "Autonomous code review and testing agent. Catches hidden deep bugs for developers, automates black-box, functional, and performance testing for QA, and ensures rock-solid software delivery.",
21
+ "longDescription": "BugX is an autonomous code review and testing agent designed to safeguard software delivery: it surfaces hidden, deep bugs for developers right after writing code to eliminate painful debugging and rework; automates black-box, functional, and performance testing across complex edge cases for QA; and ensures software strictly meets functional requirements with rock-solid stability and resilience. By taking over tedious verification, BugX frees engineers from manual grunt work, boosts team velocity, elevates code quality, and significantly lowers long-term maintenance costs—putting technology to work for people.",
22
22
  "developerName": "BugX",
23
23
  "category": "Developer tools",
24
24
  "capabilities": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bugx",
3
- "version": "0.1.1",
4
- "description": "Autonomous code review and vulnerability hunting agent that uncovers, reproduces, and fixes deep bugs.",
3
+ "version": "0.1.3",
4
+ "description": "Autonomous code review and testing agent. Catches hidden deep bugs for developers, automates black-box, functional, and performance testing for QA, and ensures rock-solid software delivery.",
5
5
  "homepage": "https://bugx.dev",
6
6
  "author": {
7
7
  "name": "BugX",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bugx-worker
3
- description: A concurrent audit worker dispatched in parallel by the primary BugX agent to inspect assigned modules, hunt vulnerabilities, and verify defect reproduction as a collaborative subagent.
3
+ description: A concurrent test and review worker dispatched by BugX to inspect assigned modules, uncover deep bugs, and run automated verification as a collaborative subagent.
4
4
  tools: Bash, Read, Grep, Glob, Edit, Write, mcp__bugx-supervisor-worker__bugx_supervisor_claim, mcp__bugx-supervisor-worker__bugx_supervisor_worker_start, mcp__bugx-supervisor-worker__bugx_supervisor_heartbeat, mcp__bugx-supervisor-worker__bugx_supervisor_run_sandboxed_probe, mcp__bugx-supervisor-worker__bugx_supervisor_checkpoint, mcp__bugx-supervisor-worker__bugx_supervisor_begin_long_call, mcp__bugx-supervisor-worker__bugx_supervisor_status, mcp__bugx-supervisor-worker__bugx_supervisor_submit_finding
5
5
  color: cyan
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bugx
3
- description: An autonomous agent dedicated to code review, vulnerability hunting, and automated bug fixing. Built for deep investigations, BugX steps in when you are wrapping up a feature, opening a pull request, or hunting down an elusive bug. It analyzes code logic, automatically writes test cases to uncover and reproduce hidden flaws, and delivers verified patches that resolve root causes. Always safeguarding your code quality and security.
3
+ description: An autonomous code review and testing agent designed to safeguard software delivery. It surfaces hidden bugs for developers to eliminate painful debugging and rework, while automating black-box, functional, and performance testing across complex edge cases for QA. Ensures code runs reliably, meets all requirements, and frees engineers to focus on what matters.
4
4
  tools: Bash, Read, Grep, Glob, Edit, Write, AskUserQuestion
5
5
  color: cyan
6
6
  ---
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: bugx
3
- description: 专注于代码质量与安全的自主审查智能体。专为深层缺陷排查而生——在功能写完、提 PR 或排查疑难 Bug 时,它能深入分析代码逻辑,自动编写测试用例,挖掘、复现Bug和漏洞,生成经过验证的修复补丁。随时为您的代码质量和代码安全把关。
3
+ description: BugX 是一个具备自主代码审查与测试能力的智能体,严把代码交付关:它帮助开发人员在写完代码后自动排查隐藏的深层 Bug,减少反复排错与返工;帮助测试人员自动化运行黑盒测试、功能验证与性能测试,自动覆盖手工盲测难以覆盖的极端场景;确保代码功能符合要求、具备良好的健壮性和稳定性。让开发和测试在繁琐的工作中解放双手,大幅提高工作效率、全面提升代码质量、显著降低后期维护成本,实现科技服务于人。
4
4
  metadata:
5
- bugx_version: "0.1.1"
5
+ bugx_version: "0.1.3"
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.1
13
+ 协议镜像版本:0.1.3
14
14
 
15
15
  ## ChatGPT 原生交互适配(强制)
16
16
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bugx-claude
3
- description: BugX 漏洞挖掘引擎在 Claude Code 宿主下的专属使用手册——开工前必读协议清单、宿主能力映射(AskUserQuestion/Task/MCP)、finding confirmation 与 reproduction 契约、本机实证过的坑位与对策(证据通道、claim 粒度、指纹漂移自锁、大响应体、worker MCP 断线回退)。当用户要在 Claude Code 里启动/排障/收尾 BugX 审计、解释 BugX 门禁报错、或问「为什么审计跑了这么久」时使用本 skill。
3
+ description: BugX 自主代码审查与智能测试在 Claude Code 宿主下的专属使用手册——开工前必读协议清单、宿主能力映射(AskUserQuestion/Task/MCP)、finding confirmation 与 reproduction 契约、本机实证过的坑位与对策(证据通道、claim 粒度、指纹漂移自锁、大响应体、worker MCP 断线回退)。当用户要在 Claude Code 里启动/排障/收尾 BugX 审查、解释 BugX 门禁报错、或问「为什么审查跑了这么久」时使用本 skill。
4
4
  ---
5
5
 
6
6
  # BugX × Claude Code 使用手册(实证复盘版)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bugx-dsh
3
- description: BugX 漏洞挖掘引擎在 DeepSeek Harness (DSH) 宿主下的专属使用手册——新环境快速接入(构建/安装/doctor)、启动挖掘标准流程(pre 门禁→workers→checkpoint→post)、原生交互适配、Token 与模型用量采集。当用户在 DSH 里启动/排障/重置 BugX 审计、配置新环境或需要查看 DSH 本地模型与 Token 用量报告时使用本 skill。
3
+ description: BugX 自主代码审查与智能测试在 DeepSeek Harness (DSH) 宿主下的专属使用手册——新环境快速接入(构建/安装/doctor)、启动流程(pre 门禁→workers→checkpoint→post)、原生交互适配、Token 与模型用量采集。当用户在 DSH 里启动/排障/重置 BugX 审查与测试、配置新环境或需要查看 DSH 本地模型与 Token 用量报告时使用本 skill。
4
4
  ---
5
5
 
6
6
  # BugX × DeepSeek Harness (DSH) 使用手册(实战复盘版)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bugx-opencode
3
- description: "BugX 对抗审计在 OpenCode 宿主的操作手册。当宿主发起/执行 BugX 漏洞挖掘、代码审计、对抗测试,或遇到 bugx engine pre 门禁、MCP 会话冲突(session_occupied)、Worker 派发(bugx-worker subagent)、headless/ACP 验收、判读式审计(judge)、findings 确认协议、post 结算封存等问题时使用。触发词:bugx 审计、漏洞挖掘、pre 门禁、session_occupied、bugx-worker、judge collect、post --final。"
3
+ description: "BugX 自主代码审查与智能测试在 OpenCode 宿主的操作手册。当宿主发起/执行 BugX 代码审查、智能测试、深度缺陷排查,或遇到 bugx engine pre 门禁、MCP 会话冲突(session_occupied)、Worker 派发(bugx-worker subagent)、headless/ACP 验收、判读式审计(judge)、findings 确认协议、post 结算封存等问题时使用。触发词:bugx 审查、智能测试、pre 门禁、session_occupied、bugx-worker、judge collect、post --final。"
4
4
  ---
5
5
 
6
6
  # BugX × OpenCode 使用手册(实战复盘版)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bugx-zcode
3
- description: BugX 漏洞挖掘引擎在 ZCode 宿主下的专属使用手册——新环境快速接入(构建/安装/doctor)、启动挖掘标准流程(pre 启动门禁→workers→checkpoint→post)、本机实证过的坑位与对策(MCP root 漂移、worker 误回收、findings 格式、死锁链、token 上报、云端面板、重置)。当用户要在 ZCode 里启动/排障/重置 BugX 审计、配置新环境、解释 BugX 报错或 token/报告不更新时使用本 skill。
3
+ description: BugX 自主代码审查与智能测试在 ZCode 宿主下的专属使用手册——新环境快速接入(构建/安装/doctor)、启动流程(pre 启动门禁→workers→checkpoint→post)、本机实证过的坑位与对策(MCP root 漂移、worker 误回收、findings 格式、死锁链、token 上报、云端面板、重置)。当用户要在 ZCode 里启动/排障/重置 BugX 审查与测试、配置新环境、解释 BugX 报错或 token/报告不更新时使用本 skill。
4
4
  ---
5
5
 
6
6
  # BugX × ZCode 使用手册(实战复盘版)
@@ -58,16 +58,16 @@ function resolvePython() {
58
58
  // 直接读 metadata.txt 应 <50ms,耗时账目 W-001)
59
59
  {
60
60
  const argv = process.argv.slice(2);
61
- if (argv.some((a) => a === '--version' || a === '-V')) {
61
+ if (argv.length === 1 && argv[0] === '--version') {
62
62
  try {
63
63
  const meta = readFileSync(join(pkgRoot, 'core', 'metadata.txt'), 'utf8');
64
- const ver = (meta.match(/^bugx_version:\s*"([^"]+)"/m) || [])[1] || '0.1.0';
64
+ const ver = (meta.match(/^bugx_version:\s*"([^"]+)"/m) || [])[1];
65
65
  const bid = (meta.match(/^build_id:\s*(\d+)/m) || [])[1];
66
- console.log(`bugx ${ver}${bid ? `+build.${bid}` : ''}`);
67
- } catch {
68
- console.log('bugx 0.1.0');
69
- }
70
- process.exit(0);
66
+ if (ver && bid) {
67
+ console.log(`bugx ${ver}+build.${bid}`);
68
+ process.exit(0);
69
+ }
70
+ } catch { /* let the Python entry point report its authoritative version */ }
71
71
  }
72
72
  }
73
73
 
@@ -95,6 +95,8 @@ const env = { ...process.env };
95
95
  env.BUGX_ASSET_ROOT = env.BUGX_ASSET_ROOT || join(pkgRoot, 'core');
96
96
  env.BUGX_PYTHON = pythonCmd;
97
97
  env.BUGX_CLI_SOURCE = 'npm';
98
+ env.PYTHONUTF8 = env.PYTHONUTF8 || '1';
99
+ env.PYTHONIOENCODING = env.PYTHONIOENCODING || 'utf-8';
98
100
  const cliDir = existsSync(join(pkgRoot, 'interfaces', 'cli'))
99
101
  ? join(pkgRoot, 'interfaces', 'cli')
100
102
  : join(pkgRoot, 'src');
@@ -2,5 +2,5 @@
2
2
 
3
3
  import os
4
4
 
5
- __version__ = os.environ.get("BUGX_VERSION", "0.1.1")
6
- __build_id__: int = 9
5
+ __version__ = os.environ.get("BUGX_VERSION", "0.1.3")
6
+ __build_id__: int = 1