bugx-cli 0.1.2 → 0.1.4

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 (157) hide show
  1. package/README.md +26 -29
  2. package/core/README.md +5 -3
  3. package/core/agent/agent_orchestrator.py +3 -0
  4. package/core/agent/agent_workspace.py +14 -2
  5. package/core/assets/bugx-wechat-group.png +0 -0
  6. package/core/assets/twitter_promo_art.jpg +0 -0
  7. package/core/assets/twitter_promo_card.svg +166 -0
  8. package/core/assets/twitter_promo_clean.jpg +0 -0
  9. package/core/assets/twitter_terminal_real.png +0 -0
  10. package/core/bugx.md +3 -3
  11. package/core/bugx_paths.py +10 -2
  12. package/core/bundled_docs/OVERVIEW.md +310 -0
  13. package/core/bundled_docs/README.md +10 -0
  14. package/core/bundled_docs/README_EN.md +278 -0
  15. package/core/bundled_docs/ai/01_AI_REFERENCE.md +833 -0
  16. package/core/bundled_docs/ai/02_AI_USAGE.md +161 -0
  17. package/core/bundled_docs/ai/03_AI_COMMANDS.md +322 -0
  18. package/core/bundled_docs/guides/01_USER_GUIDE.md +887 -0
  19. package/core/bundled_docs/guides/02_COMMANDS.md +935 -0
  20. package/core/bundled_docs/guides/03_TROUBLESHOOTING.md +763 -0
  21. package/core/bundled_docs/guides/04_CLOUD_AUTH_AND_SYNC_COOKBOOK.md +48 -0
  22. package/core/bundled_docs/guides/05_HOST_MATRIX_AND_DISPATCH.md +23 -0
  23. package/core/bundled_docs/guides/06_PROBES_AND_POC_COOKBOOK.md +49 -0
  24. package/core/bundled_docs/guides/07_LIFECYCLE_AND_RECOVERY_STATES.md +46 -0
  25. package/core/bundled_docs/guides/08_LESSONS_AND_PRIVACY_BOUNDARY.md +35 -0
  26. package/core/bundled_docs/hosts/bugx-claude_SKILL.md +326 -0
  27. package/core/bundled_docs/hosts/bugx-dsh_SKILL.md +229 -0
  28. package/core/bundled_docs/hosts/bugx-opencode_SKILL.md +129 -0
  29. package/core/bundled_docs/hosts/bugx-zcode_SKILL.md +459 -0
  30. package/core/bundled_docs/hosts/bugx_SKILL.md +118 -0
  31. package/core/bundled_docs/hosts/cline_bugx_SKILL.md +69 -0
  32. package/core/bundled_docs/hosts/platform_bugx_SKILL.md +50 -0
  33. package/core/bundled_docs/manifest.json +140 -0
  34. package/core/bundled_docs/reference/01_ENVIRONMENT_VARIABLES.md +421 -0
  35. package/core/bundled_docs/reference/04_REPOSITORY_TOPOLOGY.md +180 -0
  36. package/core/cli-help.txt +7 -3
  37. package/core/cloud_sync/cloud_client.py +81 -2
  38. package/core/cloud_sync/endpoint_router.py +22 -9
  39. package/core/cloud_sync/issue_uploader.py +297 -0
  40. package/core/cloud_sync/sensitive_filter.py +77 -7
  41. package/core/contracts/AGENT_GUIDE.md +3 -9
  42. package/core/contracts/README.md +1 -1
  43. package/core/contracts/bugx-opencode.md +1 -1
  44. package/core/contracts/bugx-runtime-contract.md +10 -20
  45. package/core/contracts/bugx-worker.md +1 -1
  46. package/core/engine-integrity.json +267 -111
  47. package/core/host_acp/antigravity.py +153 -0
  48. package/core/host_acp/kimi.py +175 -0
  49. package/core/host_acp/minimax.py +28 -0
  50. package/core/host_runtime/adapters.py +5 -1
  51. package/core/host_runtime/antigravity.py +162 -0
  52. package/core/host_runtime/host_bootstrap.py +18 -7
  53. package/core/host_runtime/host_evaluators.py +4 -4
  54. package/core/host_runtime/host_registry.py +25 -4
  55. package/core/host_runtime/mcp_process_tracker.py +30 -3
  56. package/core/host_runtime/mcp_registry_gate.py +34 -11
  57. package/core/hosts/antigravity.py +115 -0
  58. package/core/hosts/codex.py +3 -0
  59. package/core/hosts/dsh.py +43 -24
  60. package/core/hosts/kimi.py +293 -0
  61. package/core/hosts/minimax.py +249 -0
  62. package/core/hosts/zcode.py +5 -0
  63. package/core/i18n.py +94 -5
  64. package/core/infra/README.md +1 -1
  65. package/core/infra/build_info.py +30 -5
  66. package/core/launch_phases/README.md +2 -2
  67. package/core/launch_phases/startup_version_gate.py +2 -2
  68. package/core/launch_phases/supervisor_bridge.py +16 -23
  69. package/core/launch_phases/supervisor_degraded.py +7 -5
  70. package/core/ledger/README.md +1 -1
  71. package/core/locales/en-US.json +3 -3
  72. package/core/locales/zh-CN.json +3 -3
  73. package/core/mcp_runtime_support/environment.py +6 -1
  74. package/core/metadata.txt +2 -2
  75. package/core/planning/README.md +1 -1
  76. package/core/planning/prompt_harness.py +2 -2
  77. package/core/probes/codebase_memory_probe.py +43 -24
  78. package/core/probes/probe_registry.py +10 -7
  79. package/core/prompts/command_routing_en.md +6 -5
  80. package/core/prompts/command_routing_zh.md +6 -5
  81. package/core/repair/rsi_rounds.py +3 -0
  82. package/core/repair/self_heal.py +160 -6
  83. package/core/retrieval/README.md +1 -1
  84. package/core/runtime/README.md +1 -1
  85. package/core/runtime/scenario_eval.py +5 -1
  86. package/core/runtime/setup_ui_env.py +4 -7
  87. package/core/runtime/tool_install_targets.py +12 -2
  88. package/core/skills/README.md +4 -2
  89. package/core/skills/bugx_docs_cloud_sync.py +658 -0
  90. package/core/skills/bugx_docs_mcp_server.py +966 -140
  91. package/core/supervisor/README.md +1 -1
  92. package/core/supervisor/cli.py +2 -2
  93. package/core/supervisor/worker_execution.py +16 -3
  94. package/core/webui/docs_session_service.py +40 -2
  95. package/core/webui/mcp_inspector.py +12 -6
  96. package/core/webui/static/index.html +51 -3
  97. package/core/webui/static/manifest.webmanifest +1 -1
  98. package/core/webui/static/project-settings.js +18 -3
  99. package/core/webui/static/robots.txt +36 -0
  100. package/core/webui/static/sitemap.xml +15 -0
  101. package/docs/07_distribution/01_README_NPM.md +26 -29
  102. package/ecosystem/integrations/cline/skills/bugx/SKILL.md +46 -46
  103. package/ecosystem/integrations/dsh/agents/bugx.md +2 -1
  104. package/ecosystem/integrations/dsh/dsh-patch.yml +2 -2
  105. package/ecosystem/integrations/dsh/mcp/package.json +1 -1
  106. package/ecosystem/integrations/dsh/skills/bugx/SKILL.md +6 -6
  107. package/ecosystem/integrations/dsh/skills/bugx-dsh/SKILL.md +1 -1
  108. package/ecosystem/integrations/dsh/ui/package.json +1 -1
  109. package/ecosystem/integrations/opencode/bugx-mcp-manifest.json +2 -2
  110. package/ecosystem/integrations/pi/extensions/bugx/manifest.json +1 -1
  111. package/ecosystem/integrations/pi/skills/bugx/SKILL.md +6 -6
  112. package/ecosystem/integrations/qoder/CONNECTORS.md +11 -23
  113. package/ecosystem/integrations/qoder/connector-meta.json +9 -9
  114. package/ecosystem/integrations/workbuddy/connector-meta.json +9 -9
  115. package/ecosystem/integrations/workbuddy/skills/bugx/SKILL.md +8 -7
  116. package/ecosystem/plugins/bugx/.claude-plugin/marketplace.json +2 -2
  117. package/ecosystem/plugins/bugx/.claude-plugin/plugin.json +2 -2
  118. package/ecosystem/plugins/bugx/.codex-plugin/plugin.json +4 -4
  119. package/ecosystem/plugins/bugx/.zcode-plugin/plugin.json +2 -2
  120. package/ecosystem/plugins/bugx/agents/bugx-worker.md +14 -18
  121. package/ecosystem/plugins/bugx/agents/bugx.md +45 -49
  122. package/ecosystem/plugins/bugx/skills/bugx/SKILL.md +8 -8
  123. package/ecosystem/plugins/bugx/skills/bugx-claude/SKILL.md +1 -1
  124. package/ecosystem/plugins/bugx/skills/bugx-dsh/SKILL.md +1 -1
  125. package/ecosystem/plugins/bugx/skills/bugx-opencode/SKILL.md +1 -1
  126. package/ecosystem/plugins/bugx/skills/bugx-zcode/SKILL.md +3 -3
  127. package/interfaces/bin/bugx.js +2 -0
  128. package/interfaces/cli/bugx_cli/__init__.py +2 -2
  129. package/interfaces/cli/bugx_cli/cli.py +153 -8
  130. package/interfaces/cli/bugx_cli/commands/agent.py +568 -136
  131. package/interfaces/cli/bugx_cli/commands/cloud.py +42 -1
  132. package/interfaces/cli/bugx_cli/commands/doctor.py +668 -223
  133. package/interfaces/cli/bugx_cli/commands/guide.py +143 -0
  134. package/interfaces/cli/bugx_cli/commands/issue.py +262 -0
  135. package/interfaces/cli/bugx_cli/commands/lifecycle.py +99 -62
  136. package/interfaces/cli/bugx_cli/commands/plugin.py +301 -60
  137. package/interfaces/cli/bugx_cli/commands/plugin_antigravity.py +350 -0
  138. package/interfaces/cli/bugx_cli/commands/plugin_claude.py +27 -13
  139. package/interfaces/cli/bugx_cli/commands/plugin_kimi.py +440 -0
  140. package/interfaces/cli/bugx_cli/commands/plugin_minimax.py +522 -0
  141. package/interfaces/cli/bugx_cli/commands/plugin_qoder.py +3 -4
  142. package/interfaces/cli/bugx_cli/commands/plugin_zcode.py +4 -5
  143. package/interfaces/cli/bugx_cli/commands/system.py +75 -5
  144. package/interfaces/cli/bugx_cli/common.py +135 -15
  145. package/interfaces/cli/bugx_cli/host_adapters.py +190 -7
  146. package/interfaces/cli/bugx_cli/hosts/registry.py +6 -3
  147. package/interfaces/cli/bugx_cli/hosts/template_engine.py +31 -11
  148. package/interfaces/cli/bugx_cli/infra/__init__.py +4 -0
  149. package/interfaces/cli/bugx_cli/infra/ai_advisor.py +14 -12
  150. package/interfaces/cli/bugx_cli/infra/engine_installer.py +76 -10
  151. package/interfaces/cli/bugx_cli/infra/host_sync.py +66 -1
  152. package/interfaces/cli/bugx_cli/infra/mcp_advisor.py +242 -52
  153. package/package.json +38 -13
  154. package/pyproject.toml +57 -13
  155. package/scripts/sync-version.mjs +1 -1
  156. package/skills/README.md +24 -0
  157. package/skills/platform/bugx/SKILL.md +50 -0
@@ -1,69 +1,69 @@
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: BugX 是一个具备自主代码审查与测试能力的智能体,严把代码交付关:它帮助开发人员在写完代码后自动排查隐藏的深层 Bug,减少反复排错与返工;帮助测试人员自动化运行黑盒测试、功能验证与性能测试,自动覆盖手工盲测难以覆盖的极端场景;确保代码功能符合要求、具备良好的健壮性和稳定性。让开发和测试在繁琐的工作中解放双手,大幅提高工作效率、全面提升代码质量、显著降低后期维护成本,实现科技服务于人。
4
4
  ---
5
- <!-- bugx-locale: en-US -->
5
+ <!-- bugx-locale: zh-CN -->
6
6
 
7
7
  # BugX
8
8
 
9
- This is BugX's Cline project-level Skill entry. Read the global engine protocol first: load the global protocol via `bugx engine path --name bugx-runtime-contract.md` and `bugx engine path --name bugx-quick.md`, and follow the lifetime, Supervisor, evidence, and reporting protocols in them.
9
+ 这是 BugX 的 Cline 项目级 Skill 入口。先读取全局引擎协议:通过 `bugx engine path --name bugx-runtime-contract.md` 和 `bugx engine path --name bugx-quick.md` 读取全局协议,并遵守其中的寿命、Supervisor、证据和报告协议。
10
10
 
11
- This entry only hands the task to the current Cline; the BugX CLI installs resources only — it does not start Cline or run audits. If the project is not trusted by Cline, trust it in Cline first; once in a session this Skill is auto-discovered from the project's `.cline/skills/bugx/SKILL.md`, and can also be triggered explicitly with `/bugx` in the conversation (the Cline CLI has no `--agent` launch argument).
12
- Public agent template source: `bugx engine path --name bugx.md`.
11
+ 该入口只把任务交给当前 Cline;BugX CLI 只安装资源,不启动 Cline、不执行审计。项目未被 Cline 信任时,请先在 Cline 中信任项目;进入会话后本 Skill 由项目 `.cline/skills/bugx/SKILL.md` 自动发现,也可在对话中用 `/bugx` 显式触发(Cline CLI 没有 `--agent` 启动参数)。
12
+ 公开 Agent 模板来源:`bugx engine path --name bugx.md`。
13
13
 
14
14
 
15
- ## Cline native interaction adaptation (mandatory)
15
+ ## Cline 原生交互适配(强制)
16
16
 
17
- The launcher must write the host into the current session runtime via `--host cline`; never let a project's `opencode.json` infer the host. Use the `ask_question` provided by the current Cline session (or an equivalent structured user-selection control); execute the option's unique `value` and controlled `action`. This entry is loaded by the Cline project-level Skill (`.cline/skills/bugx/SKILL.md`, discovered automatically by Cline or triggered by `/bugx`); the Cline desktop enters through the current workspace's BugX Skill, while Cline CLI uses `cline <prompt>`, headless autonomy is carried by the CLI's JSON/headless mode for prompts and session recovery, and `cline --acp` is an ACP service endpoint that must not be run directly as a one-shot prompt command. The installer writes Cline MCP into `mcpServers` in the Cline data-directory file `<CLINE_DATA_DIR>/settings/cline_mcp_settings.json` (default `~/.cline/data/settings/cline_mcp_settings.json`); Cline 3.x has no workspace-level MCP scope, so a project `.cline/mcp.json` is never loaded. `bugx-supervisor` and the worker must both exist and be enabled — the Skill file cannot replace MCP. Cline does not support BugX's `Task(subagent_type="bugx-worker")` dispatch contract; the desktop's built-in research sub-agent lacks worker write and MCP permissions, and the CLI's own Agent/Team interface is not equivalent to that Task contract. Interactive single sessions therefore stay serial with one claim at a time: run `bugx engine --root . workers --count 1`, then have the current session complete worker-start, heartbeat/tool_call, and checkpoint through `bugx-supervisor-worker`, and claim the next unit only after verifying a valid checkpoint. Multi-process CLI/autonomous execution uses `bugx autonomous --host cline --workers N`, or the workers' explicit `--execute`; the runtime context atomically writes host/execute/worker_capacity into the current project session and switches to a bounded 2-6 process pool. Each claim runs in `<artifact_root>/.cline_data`, with `CLINE_DATA_DIR` and `--data-dir` injected, loading only `bugx-supervisor-worker` (`--role worker`) and `bugx-docs` — never the controlling `bugx-supervisor`. The pool follows Supervisor adaptive slots using a sliding window and the runtime context's `stagger_seconds` to refill in a staggered way; a claim is reclaimed on timeout, abnormal exit, or missing persisted checkpoint, and only a valid Supervisor checkpoint counts as success. During the mine stage the shared source is read-only, and PoCs and evidence may only be written into the claim's artifact_root.
17
+ 启动器必须通过 `--host cline` 将宿主写入当前会话 runtime,不得让项目中的 `opencode.json` 推断宿主。使用当前 Cline 会话提供的 `ask_question`(或宿主等价的结构化用户选择控件);按选项的唯一 `value` 及受控 `action` 执行。本入口由 Cline 项目级 Skill(`.cline/skills/bugx/SKILL.md`,Cline 自动发现或 `/bugx` 触发)加载,Cline 桌面端通过当前工作区的 BugX Skill 进入;Cline CLI 使用 `cline <prompt>`,无头自治由 CLI 的 JSON/headless 模式承载提示和会话恢复,`cline --acp` 是 ACP 服务入口,不能当作一次性 prompt 命令直接运行。Cline MCP 由安装器写入 Cline 数据目录内的 `<CLINE_DATA_DIR>/settings/cline_mcp_settings.json`(默认 `~/.cline/data/settings/cline_mcp_settings.json`)的 `mcpServers`:Cline 3.x 没有工作区级 MCP 作用域,项目内 `.cline/mcp.json` 永不被加载;必须同时存在并启用 `bugx-supervisor` 与 worker,Skill 文件不能替代 MCP。Cline 不支持 BugX 的 `Task(subagent_type="bugx-worker")` 派发契约;桌面端内置研究子 Agent不具备 Worker 写入与 MCP 权限,CLI 自带的 Agent/Team 接口也不等价于该 Task 契约。因此交互式单会话保持单 Claim 串行:运行 `bugx engine --root . workers --count 1`,再由当前会话通过 `bugx-supervisor-worker` 完成 worker-start、heartbeat/tool_call 和 checkpoint,核对有效 checkpoint 后才领取下一条。多进程 CLI/自治执行使用 `bugx autonomous --host cline --workers N` 或 workers 的显式 `--execute`,运行时上下文会把 host/execute/worker_capacity 原子写入当前项目会话,切换到 2~6 路有界进程池;每个 claim 在 `<artifact_root>/.cline_data` 中运行,注入 `CLINE_DATA_DIR` 与 `--data-dir`,仅加载 `bugx-supervisor-worker`(`--role worker`)和 `bugx-docs`,绝不加载主控 `bugx-supervisor`。进程池按 Supervisor 自适应槽位使用滑动窗口和 runtime context 的 `stagger_seconds` 错峰补位;超时、异常退出或无持久化 checkpoint 时回收该 claim,只有有效 Supervisor checkpoint 才算成功。mine 阶段只读共享源码,PoC 与证据只能写入 claim 的 artifact_root。
18
18
 
19
19
 
20
- ## Startup interaction adaptation: startup policy (no questionnaire)
20
+ ## 启动交互适配:启动策略(无问卷)
21
21
 
22
- Startup policy is resolved in this order: CLI arguments > project `.bugx/config.json` > user `~/.bugx/config.json` > system defaults. In autonomous startup (`--autonomous`) mode, a regular start presents no questionnaire for cloud sync, review mode, polling, fixes, or commits; in non-autonomous interactive mode, the host uses its native question control to present the battle plan for user confirmation (one-click approve, fine-tune, or defer). When optional MCP/probes are unavailable, fall back automatically to Native Protocol Mode and built-in capabilities; never require a restart merely because session proof is missing.
23
- ## Host Route (before intent triage)
22
+ 开工策略按 CLI 参数 > 项目 `.bugx/config.json` > 用户 `~/.bugx/config.json` > 系统默认值读取。在自治启动(--autonomous)模式下,常规启动不呈现云同步、审查方式、轮询、修复或提交问卷;在非自治交互模式下,由宿主调用原生问答控件呈现作战方案供用户确认(一键批准、微调或暂存稍后)。可选 MCP/探针不可用时自动回退到 Native Protocol Mode 与内置能力,不因缺少 session proof 要求重启。
23
+ ## 宿主路由(先于意图分流)
24
24
 
25
- - **ZCode host**: prefer loading the sibling `bugx-zcode` skill (ZCode-specific handbook: direct-drive path, rpc fallback, field-tested remedies). If it is not registered in the current session (newly installed skills need a host-session restart to appear), apply its core conclusions directly: after `workers` pre-claim, **drive the protocol channel from the host session** (worker MCP tools or `bugx supervisor rpc --role worker`, caller_role=worker); do not default to wrapping the worker in a subagent; `run_sandboxed_probe` must carry the current Task's lease_id/execution_id.
26
- - All other hosts follow the sections below.
25
+ - **ZCode 宿主**:优先加载同插件 `bugx-zcode` skill(ZCode 专属手册:直驱路径、rpc 回退、坑位对策)。若当前会话未注册该 skill(新装 skill 需重启宿主会话才可见),直接按其核心结论执行:`workers` 预占后**由宿主会话直驱协议通道**(worker MCP 工具或 `bugx supervisor rpc --role worker`,caller_role=worker),勿默认为 worker 派发子代理;`run_sandboxed_probe` 必须携带本次 Task 的 lease_id/execution_id。
26
+ - 其余宿主按后续章节执行。
27
27
 
28
28
 
29
29
 
30
- ## How to Use This Skill (AI Meta-Guidance and Intent Decision Tree)
30
+ ## 如何使用本技能(AI 执行元指南与意图决策树)
31
31
 
32
- When you (the AI) trigger and read this Skill, strictly follow this cognitive model and execution order:
32
+ 当你(AI)触发并阅读本技能时,请无条件遵循以下认知模型与执行时序:
33
33
 
34
- ### 1. Intent Decision Tree
35
- In the first second of receiving a task, classify which branch it belongs to:
36
- - **Branch A: Focused Quick Triage / Specific Function / Diff / Error Stack**
37
- - **Indicators**: Single-file inspection, reproducing a specific function, analyzing an exception stack trace.
38
- - **Action**: Write a lightweight reproduction test (PoC) or run targeted tests locally using `bugx view`, `bugx test-generate`, `bugx test-verify`; **strictly forbid starting heavy full-lifecycle gates!**
39
- - **Branch B: Full-Repository Vulnerability Hunting / Deep Mutation / Parallel Worker Audit**
40
- - **Indicators**: User explicitly triggers `/bugx`, requests "full codebase audit", or "hunt deep vulnerabilities".
41
- - **Action**: Follow the canonical lifecycle progression (`engine pre` -> gate confirmation -> Explore -> Mutate -> Repair -> post settlement).
42
- - **Branch C: Environment Diagnosis / Dependency Repair / Host Inspection**
43
- - **Action**: Run `bugx doctor --root <ROOT> --json` and `bugx engine --root <ROOT> status --json`; never use `init` or `--force` blindly.
34
+ ### 1. 意图决策树(Triage Decision Tree)
35
+ 拿到任务第一秒,判定属于哪个分支:
36
+ - **分支 A:单点敏捷排查 / 特定函数 / Diff / 报错堆栈**
37
+ - **标志**:单文件排查、复现某个函数、分析异常报错。
38
+ - **动作**:就地编写轻量复现脚本(PoC)或运行定向测试,使用 `bugx view`, `bugx test-generate`, `bugx test-verify`;**严禁启动重型全流程门禁!**
39
+ - **分支 B:全库漏洞挖掘 / 深度变异 / 多 Worker 并发审计**
40
+ - **标志**:用户明确输入 `/bugx`、要求“全库审计”、“挖掘潜在漏洞”。
41
+ - **动作**:按标准生命周期流转(`engine pre` -> 门禁确认 -> Explore -> Mutate -> Repair -> 结算)。
42
+ - **分支 C:环境诊断 / 依赖修复 / 宿主状态排查**
43
+ - **动作**:优先运行 `bugx doctor --root <ROOT> --json` 与 `bugx engine --root <ROOT> status --json`,绝不盲目 `init` 或 `--force`。
44
44
 
45
- ### 2. Standard 5-Step Execution Loop
46
- 1. **Target Root**: Confirm the target repository's absolute path `<ROOT>`; strictly restrict operations within `<ROOT>`, and forbid broad filesystem scans.
47
- 2. **Inspect State**: Run read-only commands to check runtime state first (`bugx engine --root <ROOT> status --json` or `bugx doctor`).
48
- 3. **Select Route**: Pick commands based on intent; if parameters are needed, run `bugx help <top-level-cmd>` (e.g. `bugx help cloud`) to read live syntax dynamically; never guess.
49
- 4. **Handle Gates**: If `engine pre` exits with code `2`, it signals waiting for host structured gate interaction; present options via the host's native control and execute the controlled action selected by the user. Do not fabricate choices or spin-loop. Exit code `0` confirms gate passage only, not audit completion.
50
- 5. **Close the Loop**: Defects require standalone reproduction scripts (PoC) and call-stack evidence; report truthfully using the 6 standard status terms (read-only inspection, project ready, gate ready, test execution, mining launched, mining completed).
45
+ ### 2. 标准五步操作闭环(5-Step Execution Loop)
46
+ 1. **定根**:确定被测项目根绝对路径 `<ROOT>`,严格在 `<ROOT>` 内部执行,禁止全盘发散扫描。
47
+ 2. **探况**:先执行只读命令检查运行态(`bugx engine --root <ROOT> status --json` 或 `bugx doctor`)。
48
+ 3. **选路**:根据意图挑选命令;若需查阅参数,运行 `bugx help <顶层命令>`(如 `bugx help cloud`)按需动态读取,严禁盲猜。
49
+ 4. **承接**:若 `engine pre` 返回退出码 `2`,表示等待宿主单选门禁交互;必须调用宿主原生控件展示选项,按用户选择的 action 执行,禁止文本伪造选择或自旋重试。退出码 `0` 只代表门禁通过,不代表挖掘完成。
50
+ 5. **闭环**:缺陷必须给出最小独立复现脚本(PoC)与完整调用栈证据;使用 6 大标准汇报用词(只读检查、项目就绪、门禁就绪、测试执行、挖掘启动、挖掘完成)如实汇报。
51
51
 
52
- ### 3. Core Action Matrix (High-Frequency Commands Covering 90% of Calls)
53
- - **Environment Diagnosis**: `bugx doctor --root <ROOT> --json` (`--repair-assets` for repair)
54
- - **Startup and Gates**: Run `bugx engine --root <ROOT> status --json` first. Only when the status is `UNINITIALIZED`, run `bugx engine --root <ROOT> pre` to prepare a fresh project; do not run `bugx init` first when starting mining through a host plugin; it is a separate explicit CLI operation and does not replace the status/pre state machine. If the status is `FATAL_BLOCKED`, another blocked state, or the status check fails, preserve the state and stop; never use `init`, `reset`, or `--force` to bypass the gate.
55
- - **Reproduction and Mutation**: `bugx test-generate --root <ROOT> --scope <PATH::SYM> --out <FILE>` / `bugx test-verify verify --scope <SCOPE>`
56
- - **Supervisor and Concurrency**: `bugx supervisor status --root <ROOT>`
57
- - **Telemetry and Logs**: `bugx telemetry inspect` / `bugx log --root <ROOT> --errors`
58
- - **Dual Reports and Preview**: `bugx report both --eval-dir evals/oss --out evals/oss` / `bugx report serve --port 18991`
52
+ ### 3. 高频场景命令(覆盖 90% 日常调用)
53
+ - **环境诊断**:`bugx doctor --root <ROOT> --json`(`--repair-assets` 按需修复)
54
+ - **启动与门禁**:先运行 `bugx engine --root <ROOT> status --json`;仅当状态为 `UNINITIALIZED` 时运行 `bugx engine --root <ROOT> pre` 自动准备新项目。挖掘启动不要先调用 `bugx init`;它是独立 CLI 初始化操作,不替代 status/pre 状态机。若状态为 `FATAL_BLOCKED`、其他阻断状态或检查失败,保留现场并停止;禁止用 `init`、`reset` 或 `--force` 绕过门禁。
55
+ - **单点复现与变异**:`bugx test-generate --root <ROOT> --scope <PATH::SYM> --out <FILE>` / `bugx test-verify verify --scope <SCOPE>`
56
+ - **Supervisor 与并发排查**:`bugx supervisor status --root <ROOT>`
57
+ - **脱敏飞轮与日志**:`bugx telemetry inspect` / `bugx log --root <ROOT> --errors`
58
+ - **双轨报告与预览**:`bugx report both --eval-dir verification/evals/oss --out verification/evals/oss` / `bugx report serve --port 18991`
59
59
 
60
- ### 4. Compact Command Radar (41 Top-level Commands Classified Index)
61
- To invoke any command below, inspect exact parameters dynamically via `bugx help <cmd>`; never guess:
62
- - **Diagnostics and Inspection (9)**: `help`, `doctor`, `hosts`, `completion`, `log`, `stats`, `view`, `project`, `self-audit`
63
- - **Core Lifecycle and Hosts (14)**: `init`, `engine`, `supervisor`, `daemon`, `config`, `reset`, `install`, `uninstall`, `dsh`, `plugin`, `mcp`, `mcp-runtime`, `capability`, `logic-analysis`
64
- - **Deep Audit and Verification (10)**: `audit`, `probe`, `test-generate`, `test-audit`, `test-verify`, `patch-forge`, `test-strategy`, `fuzz-input`, `differential-probe`, `mining-audit`
65
- - **Knowledge Flywheel and Delivery (8)**: `report`, `lesson`, `knowledge`, `skill`, `cloud`, `auth`, `telemetry`, `advisory`
60
+ ### 4. 紧凑型命令全景雷达(43 个顶层命令分类索引)
61
+ 如需调用以下命令,通过 `bugx help <命令>` 动态获取具体参数与子命令,严禁盲猜:
62
+ - **诊断与探索 (10)**:`help`, `completion`, `guide`, `hosts`, `doctor`, `log`, `stats`, `view`, `project`, `self-audit`
63
+ - **核心生命周期与宿主 (15)**:`init`, `install`, `reset`, `uninstall`, `dsh`, `engine`, `supervisor`, `daemon`, `config`, `plugin`, `mcp`, `capability`, `mcp-runtime`, `update`, `interaction`
64
+ - **深度审计与测试验证 (10)**:`audit`, `probe`, `logic-analysis`, `mining-audit`, `test-generate`, `test-audit`, `test-verify`, `patch-forge`, `autonomous`, `goal`
65
+ - **云端、知识与交付 (8)**:`cloud`, `auth`, `telemetry`, `knowledge`, `lesson`, `skill`, `advisory`, `report`
66
66
 
67
- ### 5. Mandatory Rules and Deprecated Command Redirection
68
- - **Gate Blockage Forbids Destructive Repairs**: `FATAL_BLOCKED` must never be bypassed using `init`, `reset`, or `--force`; preserve logs and state first.
69
- - **Deprecated Command Redirections**: `matrix` -> `bugx audit`; `console` -> `bugx report serve`; `watch` -> `bugx log --watch`; `test` is an internal script, use `scripts/test_selector.py` instead.
67
+ ### 5. 核心军规与废弃命令重定向
68
+ - **阻断不授权暴力修复**:`FATAL_BLOCKED` 严禁使用 `init`、`reset`、`--force` 绕过,先保留报告和日志。
69
+ - **废弃命令重定向**:`matrix` -> `bugx audit`;`console` -> `bugx report serve`;`watch` -> `bugx log --watch`;`test` 不是公共命令。开发验证请在仓库外生成最小临时验证脚本,或运行被测目标项目自带的测试,完成后删除过程文件。
@@ -1,7 +1,8 @@
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: BugX 是一个具备自主代码审查与测试能力的智能体,严把代码交付关:它帮助开发人员在写完代码后自动排查隐藏的深层 Bug,减少反复排错与返工;帮助测试人员自动化运行黑盒测试、功能验证与性能测试,自动覆盖手工盲测难以覆盖的极端场景;确保代码功能符合要求、具备良好的健壮性和稳定性。让开发和测试在繁琐的工作中解放双手,大幅提高工作效率、全面提升代码质量、显著降低后期维护成本,实现科技服务于人。
4
4
  ---
5
+ <!-- bugx-locale: zh-CN -->
5
6
 
6
7
  # BugX Agent for DeepSeek Harness (dsh)
7
8
 
@@ -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.2",
3
+ "version": "0.1.4",
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
 
@@ -58,12 +58,12 @@ Skill、MCP `--root` 与证据输出都绑定当前 Session 的 workspace cwd;
58
58
  - **脱敏飞轮与日志**:`bugx telemetry inspect` / `bugx log --root <ROOT> --errors`
59
59
  - **双轨报告与预览**:`bugx report both --eval-dir evals/oss --out evals/oss` / `bugx report serve --port 18991`
60
60
 
61
- ### 4. 紧凑型命令全景雷达(41 个顶层命令分类索引)
61
+ ### 4. 紧凑型命令全景雷达(43 个顶层命令分类索引)
62
62
  如需调用以下命令,通过 `bugx help <命令>` 动态获取具体参数与子命令,严禁盲猜:
63
- - **诊断探索 (9)**:`help`, `doctor`, `hosts`, `completion`, `log`, `stats`, `view`, `project`, `self-audit`
64
- - **核心生命周期 (14)**:`init`, `engine`, `supervisor`, `daemon`, `config`, `reset`, `install`, `uninstall`, `dsh`, `plugin`, `mcp`, `mcp-runtime`, `capability`, `logic-analysis`
65
- - **深度审计验证 (10)**:`audit`, `probe`, `test-generate`, `test-audit`, `test-verify`, `patch-forge`, `test-strategy`, `fuzz-input`, `differential-probe`, `mining-audit`
66
- - **知识飞轮交付 (8)**:`report`, `lesson`, `knowledge`, `skill`, `cloud`, `auth`, `telemetry`, `advisory`
63
+ - **诊断与探索 (10)**:`help`, `completion`, `guide`, `hosts`, `doctor`, `log`, `stats`, `view`, `project`, `self-audit`
64
+ - **核心生命周期与宿主 (15)**:`init`, `install`, `reset`, `uninstall`, `dsh`, `engine`, `supervisor`, `daemon`, `config`, `plugin`, `mcp`, `capability`, `mcp-runtime`, `update`, `interaction`
65
+ - **深度审计与测试验证 (10)**:`audit`, `probe`, `logic-analysis`, `mining-audit`, `test-generate`, `test-audit`, `test-verify`, `patch-forge`, `autonomous`, `goal`
66
+ - **云端、知识与交付 (8)**:`cloud`, `auth`, `telemetry`, `knowledge`, `lesson`, `skill`, `advisory`, `report`
67
67
 
68
68
  ### 5. 核心军规与废弃命令重定向
69
69
  - **阻断不授权暴力修复**:`FATAL_BLOCKED` 严禁使用 `init`、`reset`、`--force` 绕过,先保留报告和日志。
@@ -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.2",
3
+ "version": "0.1.4",
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.2",
4
+ "version": "0.1.4",
5
5
  "servers": {
6
6
  "bugx-supervisor": {
7
7
  "type": "builtin",
@@ -46,7 +46,7 @@
46
46
  ".bugx/knowledge/docs.sqlite3"
47
47
  ],
48
48
  "source": "core/skills/bugx_docs_mcp_server.py",
49
- "sha256": "349d976843bdfeafd2531312eb938e7c3e9f60fa7453502bf3f8a8bf0a2c87ed",
49
+ "sha256": "7c71427c782371c9591e52e15161cf6896031c8016917565eaca91620b31bf52",
50
50
  "health": "initialize"
51
51
  }
52
52
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema_version": 1,
3
3
  "name": "bugx-pi",
4
- "version": "0.1.2",
4
+ "version": "0.1.4",
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 -->
@@ -57,12 +57,12 @@ Pi 的 `.pi/extensions/bugx` 提供原生选择能力;`BUGX_INTERACTION_REQUES
57
57
  - **脱敏飞轮与日志**:`bugx telemetry inspect` / `bugx log --root <ROOT> --errors`
58
58
  - **双轨报告与预览**:`bugx report both --eval-dir evals/oss --out evals/oss` / `bugx report serve --port 18991`
59
59
 
60
- ### 4. 紧凑型命令全景雷达(41 个顶层命令分类索引)
60
+ ### 4. 紧凑型命令全景雷达(43 个顶层命令分类索引)
61
61
  如需调用以下命令,通过 `bugx help <命令>` 动态获取具体参数与子命令,严禁盲猜:
62
- - **诊断探索 (9)**:`help`, `doctor`, `hosts`, `completion`, `log`, `stats`, `view`, `project`, `self-audit`
63
- - **核心生命周期 (14)**:`init`, `engine`, `supervisor`, `daemon`, `config`, `reset`, `install`, `uninstall`, `dsh`, `plugin`, `mcp`, `mcp-runtime`, `capability`, `logic-analysis`
64
- - **深度审计验证 (10)**:`audit`, `probe`, `test-generate`, `test-audit`, `test-verify`, `patch-forge`, `test-strategy`, `fuzz-input`, `differential-probe`, `mining-audit`
65
- - **知识飞轮交付 (8)**:`report`, `lesson`, `knowledge`, `skill`, `cloud`, `auth`, `telemetry`, `advisory`
62
+ - **诊断与探索 (10)**:`help`, `completion`, `guide`, `hosts`, `doctor`, `log`, `stats`, `view`, `project`, `self-audit`
63
+ - **核心生命周期与宿主 (15)**:`init`, `install`, `reset`, `uninstall`, `dsh`, `engine`, `supervisor`, `daemon`, `config`, `plugin`, `mcp`, `capability`, `mcp-runtime`, `update`, `interaction`
64
+ - **深度审计与测试验证 (10)**:`audit`, `probe`, `logic-analysis`, `mining-audit`, `test-generate`, `test-audit`, `test-verify`, `patch-forge`, `autonomous`, `goal`
65
+ - **云端、知识与交付 (8)**:`cloud`, `auth`, `telemetry`, `knowledge`, `lesson`, `skill`, `advisory`, `report`
66
66
 
67
67
  ### 5. 核心军规与废弃命令重定向
68
68
  - **阻断不授权暴力修复**:`FATAL_BLOCKED` 严禁使用 `init`、`reset`、`--force` 绕过,先保留报告和日志。
@@ -4,51 +4,39 @@ This document describes how to connect Qoder to BugX via the Model Context Proto
4
4
 
5
5
  ## Overview
6
6
 
7
- BugX provides two local stdio MCP channels for Qoder:
7
+ BugX registers three local stdio MCP servers for Qoder.
8
8
  1. `bugx-supervisor`: Main agent control plane for session lifecycle, gating, unit orchestration, and report generation.
9
9
  2. `bugx-supervisor-worker`: Dedicated worker channel for concurrent audit tasks, claims, and checkpoints.
10
+ 3. `bugx-docs`: Project documentation lookup.
10
11
 
11
12
  ## Configuration
12
13
 
13
- ### Project-level Configuration (`.qoder/mcp.json` or `.mcp.json`)
14
+ ### Project-level Configuration (`.mcp.json`)
14
15
 
15
- When you run `bugx install --agent qoder`, the project configuration is automatically created:
16
+ Run `bugx install --agent qoder` from the project root. The installer merges the BugX servers into `.mcp.json` and retains the other project connectors and settings.
16
17
 
17
18
  ```json
18
19
  {
19
20
  "mcpServers": {
20
21
  "bugx-supervisor": {
21
22
  "command": "bugx",
22
- "args": ["mcp", "serve", "--root", ".", "--role", "host"]
23
+ "args": ["mcp", "serve", "--root", "/absolute/project/path", "--role", "host"]
23
24
  },
24
25
  "bugx-supervisor-worker": {
25
26
  "command": "bugx",
26
- "args": ["mcp", "serve", "--root", ".", "--role", "worker"]
27
- }
28
- }
29
- }
30
- ```
31
-
32
- ### Global User-level Configuration (`~/.qoder/settings.json`)
33
-
34
- To add the BugX connector globally across all projects, add the following to `~/.qoder/settings.json` under `mcpServers`:
35
-
36
- ```json
37
- {
38
- "mcpServers": {
39
- "bugx-supervisor": {
40
- "command": "bugx",
41
- "args": ["mcp", "serve", "--root", ".", "--role", "host"]
27
+ "args": ["mcp", "serve", "--root", "/absolute/project/path", "--role", "worker"]
42
28
  },
43
- "bugx-supervisor-worker": {
29
+ "bugx-docs": {
44
30
  "command": "bugx",
45
- "args": ["mcp", "serve", "--root", ".", "--role", "worker"]
31
+ "args": ["mcp", "docs", "serve", "--root", "/absolute/project/path", "--db", ".bugx/knowledge/docs.sqlite3"]
46
32
  }
47
33
  }
48
34
  }
49
35
  ```
50
36
 
37
+ Reopen the workspace and start a new session after installation. Approve the project servers in Qoder when prompted. The absolute project path binds the servers to the workspace even when Qoder launches them from its application directory. On Windows the installer uses the absolute Python executable and adds `-P -m bugx_cli.cli` before the arguments in the example. npm installs also supply their own module and resource paths. Qoder also reads project settings in `.qoder/settings.json`. When both files define a server, the root `.mcp.json` takes precedence. [Qoder MCP reference](https://docs.qoder.com/cli/mcp-reference)
38
+
51
39
  ## Security & Permissions
52
40
 
53
- - **Local Execution**: Both MCP servers run locally via stdio pipes; no open network ports or credentials are required.
41
+ - **Local execution.** The three MCP servers communicate with Qoder over local stdio pipes.
54
42
  - **Root Enforcement**: All commands and files are scoped to the current project workspace.
@@ -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.2",
10
+ "version": "0.1.4",
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.2",
10
+ "version": "0.1.4",
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,9 +1,10 @@
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.2
3
+ description: BugX 是一个具备自主代码审查与测试能力的智能体,严把代码交付关:它帮助开发人员在写完代码后自动排查隐藏的深层 Bug,减少反复排错与返工;帮助测试人员自动化运行黑盒测试、功能验证与性能测试,自动覆盖手工盲测难以覆盖的极端场景;确保代码功能符合要求、具备良好的健壮性和稳定性。让开发和测试在繁琐的工作中解放双手,大幅提高工作效率、全面提升代码质量、显著降低后期维护成本,实现科技服务于人。
4
+ version: 0.1.4
5
5
  author: BugX
6
6
  ---
7
+ <!-- bugx-locale: zh-CN -->
7
8
 
8
9
  # BugX for WorkBuddy
9
10
 
@@ -57,12 +58,12 @@ WorkBuddy 的单选交互必须使用宿主原生控件逐题承接;遇到
57
58
  - **脱敏飞轮与日志**:`bugx telemetry inspect` / `bugx log --root <ROOT> --errors`
58
59
  - **双轨报告与预览**:`bugx report both --eval-dir evals/oss --out evals/oss` / `bugx report serve --port 18991`
59
60
 
60
- ### 4. 紧凑型命令全景雷达(41 个顶层命令分类索引)
61
+ ### 4. 紧凑型命令全景雷达(43 个顶层命令分类索引)
61
62
  如需调用以下命令,通过 `bugx help <命令>` 动态获取具体参数与子命令,严禁盲猜:
62
- - **诊断探索 (9)**:`help`, `doctor`, `hosts`, `completion`, `log`, `stats`, `view`, `project`, `self-audit`
63
- - **核心生命周期 (14)**:`init`, `engine`, `supervisor`, `daemon`, `config`, `reset`, `install`, `uninstall`, `dsh`, `plugin`, `mcp`, `mcp-runtime`, `capability`, `logic-analysis`
64
- - **深度审计验证 (10)**:`audit`, `probe`, `test-generate`, `test-audit`, `test-verify`, `patch-forge`, `test-strategy`, `fuzz-input`, `differential-probe`, `mining-audit`
65
- - **知识飞轮交付 (8)**:`report`, `lesson`, `knowledge`, `skill`, `cloud`, `auth`, `telemetry`, `advisory`
63
+ - **诊断与探索 (10)**:`help`, `completion`, `guide`, `hosts`, `doctor`, `log`, `stats`, `view`, `project`, `self-audit`
64
+ - **核心生命周期与宿主 (15)**:`init`, `install`, `reset`, `uninstall`, `dsh`, `engine`, `supervisor`, `daemon`, `config`, `plugin`, `mcp`, `capability`, `mcp-runtime`, `update`, `interaction`
65
+ - **深度审计与测试验证 (10)**:`audit`, `probe`, `logic-analysis`, `mining-audit`, `test-generate`, `test-audit`, `test-verify`, `patch-forge`, `autonomous`, `goal`
66
+ - **云端、知识与交付 (8)**:`cloud`, `auth`, `telemetry`, `knowledge`, `lesson`, `skill`, `advisory`, `report`
66
67
 
67
68
  ### 5. 核心军规与废弃命令重定向
68
69
  - **阻断不授权暴力修复**:`FATAL_BLOCKED` 严禁使用 `init`、`reset`、`--force` 绕过,先保留报告和日志。
@@ -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.2",
3
+ "version": "0.1.4",
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.2",
4
- "description": "Autonomous code review and vulnerability hunting agent that uncovers, reproduces, and fixes deep bugs.",
3
+ "version": "0.1.4",
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.2",
4
- "description": "Autonomous code review and vulnerability hunting agent that uncovers, reproduces, and fixes deep bugs.",
3
+ "version": "0.1.4",
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",