bugx-cli 0.1.2 → 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.
- package/README.md +26 -29
- package/core/agent/agent_orchestrator.py +3 -0
- package/core/agent/agent_workspace.py +14 -2
- package/core/assets/twitter_promo_art.jpg +0 -0
- package/core/assets/twitter_promo_card.svg +166 -0
- package/core/assets/twitter_promo_clean.jpg +0 -0
- package/core/assets/twitter_terminal_real.png +0 -0
- package/core/bugx.md +2 -2
- package/core/bugx_paths.py +2 -2
- package/core/cli-help.txt +1 -1
- package/core/contracts/bugx-opencode.md +1 -1
- package/core/contracts/bugx-runtime-contract.md +1 -1
- package/core/contracts/bugx-worker.md +1 -1
- package/core/engine-integrity.json +82 -42
- package/core/host_acp/kimi.py +175 -0
- package/core/host_acp/minimax.py +28 -0
- package/core/host_runtime/host_registry.py +23 -3
- package/core/hosts/dsh.py +1 -1
- package/core/hosts/kimi.py +293 -0
- package/core/hosts/minimax.py +248 -0
- package/core/hosts/zcode.py +5 -0
- package/core/infra/build_info.py +30 -5
- package/core/launch_phases/startup_version_gate.py +2 -2
- package/core/launch_phases/supervisor_bridge.py +14 -23
- package/core/metadata.txt +2 -2
- package/core/runtime/scenario_eval.py +1 -1
- package/core/runtime/setup_ui_env.py +4 -7
- package/core/supervisor/cli.py +2 -2
- package/core/webui/mcp_inspector.py +6 -0
- package/core/webui/static/index.html +51 -3
- package/core/webui/static/manifest.webmanifest +1 -1
- package/core/webui/static/project-settings.js +18 -3
- package/core/webui/static/robots.txt +36 -0
- package/core/webui/static/sitemap.xml +15 -0
- package/docs/07_distribution/01_README_NPM.md +26 -29
- package/ecosystem/integrations/cline/skills/bugx/SKILL.md +1 -1
- package/ecosystem/integrations/dsh/agents/bugx.md +1 -1
- package/ecosystem/integrations/dsh/dsh-patch.yml +2 -2
- package/ecosystem/integrations/dsh/mcp/package.json +1 -1
- package/ecosystem/integrations/dsh/skills/bugx/SKILL.md +1 -1
- package/ecosystem/integrations/dsh/skills/bugx-dsh/SKILL.md +1 -1
- package/ecosystem/integrations/dsh/ui/package.json +1 -1
- package/ecosystem/integrations/opencode/bugx-mcp-manifest.json +1 -1
- package/ecosystem/integrations/pi/extensions/bugx/manifest.json +1 -1
- package/ecosystem/integrations/pi/skills/bugx/SKILL.md +1 -1
- package/ecosystem/integrations/qoder/connector-meta.json +9 -9
- package/ecosystem/integrations/workbuddy/connector-meta.json +9 -9
- package/ecosystem/integrations/workbuddy/skills/bugx/SKILL.md +2 -2
- package/ecosystem/plugins/bugx/.claude-plugin/marketplace.json +2 -2
- package/ecosystem/plugins/bugx/.claude-plugin/plugin.json +2 -2
- package/ecosystem/plugins/bugx/.codex-plugin/plugin.json +4 -4
- package/ecosystem/plugins/bugx/.zcode-plugin/plugin.json +2 -2
- package/ecosystem/plugins/bugx/agents/bugx-worker.md +1 -1
- package/ecosystem/plugins/bugx/agents/bugx.md +1 -1
- package/ecosystem/plugins/bugx/skills/bugx/SKILL.md +3 -3
- package/ecosystem/plugins/bugx/skills/bugx-claude/SKILL.md +1 -1
- package/ecosystem/plugins/bugx/skills/bugx-dsh/SKILL.md +1 -1
- package/ecosystem/plugins/bugx/skills/bugx-opencode/SKILL.md +1 -1
- package/ecosystem/plugins/bugx/skills/bugx-zcode/SKILL.md +1 -1
- package/interfaces/bin/bugx.js +2 -0
- package/interfaces/cli/bugx_cli/__init__.py +2 -2
- package/interfaces/cli/bugx_cli/cli.py +15 -0
- package/interfaces/cli/bugx_cli/commands/agent.py +192 -67
- package/interfaces/cli/bugx_cli/commands/doctor.py +18 -0
- package/interfaces/cli/bugx_cli/commands/lifecycle.py +54 -47
- package/interfaces/cli/bugx_cli/commands/plugin.py +6 -6
- package/interfaces/cli/bugx_cli/commands/plugin_claude.py +27 -13
- package/interfaces/cli/bugx_cli/commands/plugin_kimi.py +348 -0
- package/interfaces/cli/bugx_cli/commands/plugin_minimax.py +322 -0
- package/interfaces/cli/bugx_cli/commands/plugin_qoder.py +3 -4
- package/interfaces/cli/bugx_cli/commands/plugin_zcode.py +4 -5
- package/interfaces/cli/bugx_cli/commands/system.py +64 -4
- package/interfaces/cli/bugx_cli/common.py +96 -7
- package/interfaces/cli/bugx_cli/host_adapters.py +150 -4
- package/interfaces/cli/bugx_cli/hosts/registry.py +4 -2
- package/interfaces/cli/bugx_cli/hosts/template_engine.py +10 -9
- package/interfaces/cli/bugx_cli/infra/engine_installer.py +4 -4
- package/interfaces/cli/bugx_cli/infra/host_sync.py +1 -1
- package/interfaces/cli/bugx_cli/infra/mcp_advisor.py +2 -2
- package/package.json +37 -13
- package/pyproject.toml +36 -12
- package/scripts/sync-version.mjs +1 -1
- package/skills/README.md +25 -0
- package/skills/platform/bugx-user/SKILL.md +92 -0
package/core/metadata.txt
CHANGED
|
@@ -141,7 +141,7 @@ def _run(argv: list[str], *, cwd: Path, timeout: float = 120.0,
|
|
|
141
141
|
# L3 等场景验证当前 checkout;不让已安装的旧引擎成为量具。
|
|
142
142
|
merged["BUGX_DEV_MODE"] = "1"
|
|
143
143
|
# 源码树里的版本声明是构建模板;开发态启动门禁需要同一解析值。
|
|
144
|
-
merged["BUGX_VERSION"] = os.environ.get("BUGX_VERSION", "0.1.
|
|
144
|
+
merged["BUGX_VERSION"] = os.environ.get("BUGX_VERSION", "0.1.3")
|
|
145
145
|
merged["HOME"] = str(_sandbox_home())
|
|
146
146
|
try:
|
|
147
147
|
proc = subprocess.run(
|
|
@@ -34,8 +34,7 @@ PLAYWRIGHT_MCP_VERSION = "0.0.79"
|
|
|
34
34
|
PLAYWRIGHT_BROWSER_VERSION = "1.63.0-alpha-2026-08-05"
|
|
35
35
|
AGENT_TTY_VERSION = "0.5.0"
|
|
36
36
|
PEXPECT_VERSION = "4.9.0"
|
|
37
|
-
NODE_MIN_MAJOR =
|
|
38
|
-
NODE_MAX_MAJOR = 27
|
|
37
|
+
NODE_MIN_MAJOR = 20
|
|
39
38
|
|
|
40
39
|
|
|
41
40
|
def sh(cmd: list[str], **kw) -> subprocess.CompletedProcess:
|
|
@@ -54,10 +53,9 @@ def node_ok() -> tuple[bool, str]:
|
|
|
54
53
|
major = int(version.lstrip("v").split(".", 1)[0])
|
|
55
54
|
except ValueError:
|
|
56
55
|
return False, f"node 版本无法解析: {version}"
|
|
57
|
-
if
|
|
56
|
+
if major < NODE_MIN_MAJOR:
|
|
58
57
|
return False, (
|
|
59
|
-
f"node {version} 不兼容(固定工具链要求 "
|
|
60
|
-
f">={NODE_MIN_MAJOR}, <{NODE_MAX_MAJOR})"
|
|
58
|
+
f"node {version} 不兼容(固定工具链要求 >={NODE_MIN_MAJOR})"
|
|
61
59
|
)
|
|
62
60
|
return True, f"node {version}"
|
|
63
61
|
|
|
@@ -141,8 +139,7 @@ def install() -> int:
|
|
|
141
139
|
print("=" * 52)
|
|
142
140
|
if not node_ok()[0]:
|
|
143
141
|
print(
|
|
144
|
-
f"✗ Node.js 版本不兼容,请安装 >= {NODE_MIN_MAJOR}
|
|
145
|
-
f"< {NODE_MAX_MAJOR}(https://nodejs.org)"
|
|
142
|
+
f"✗ Node.js 版本不兼容,请安装 >= {NODE_MIN_MAJOR}(https://nodejs.org)"
|
|
146
143
|
)
|
|
147
144
|
return 1
|
|
148
145
|
npx = shutil.which("npx")
|
package/core/supervisor/cli.py
CHANGED
|
@@ -41,9 +41,9 @@ _RPC_CLIENT_INFO: Mapping[str, object] = {
|
|
|
41
41
|
|
|
42
42
|
try:
|
|
43
43
|
if hasattr(sys.stdout, "reconfigure"):
|
|
44
|
-
sys.stdout.reconfigure(line_buffering=True)
|
|
44
|
+
sys.stdout.reconfigure(line_buffering=True, encoding="utf-8", errors="replace")
|
|
45
45
|
if hasattr(sys.stderr, "reconfigure"):
|
|
46
|
-
sys.stderr.reconfigure(line_buffering=True)
|
|
46
|
+
sys.stderr.reconfigure(line_buffering=True, encoding="utf-8", errors="replace")
|
|
47
47
|
except (AttributeError, ValueError):
|
|
48
48
|
pass
|
|
49
49
|
|
|
@@ -958,6 +958,12 @@ def toggle_project_mcp(
|
|
|
958
958
|
|
|
959
959
|
res = inspect_workspace_mcp(ws)
|
|
960
960
|
res["ok"] = True
|
|
961
|
+
if mount:
|
|
962
|
+
res["session_restart_required"] = True
|
|
963
|
+
res["restart_guidance"] = (
|
|
964
|
+
"项目 MCP 配置已更新至 .mcp.json。宿主进程(VS Code / Cursor / Windsurf / Claude 等)"
|
|
965
|
+
"不支持动态热重载,必须【重载窗口 / 重启宿主会话】方可生效。"
|
|
966
|
+
)
|
|
961
967
|
res["sandbox_env_path"] = str(_sandbox_env_file(ws))
|
|
962
968
|
return res
|
|
963
969
|
|
|
@@ -6,11 +6,45 @@
|
|
|
6
6
|
name="viewport"
|
|
7
7
|
content="width=device-width,initial-scale=1,viewport-fit=cover"
|
|
8
8
|
/>
|
|
9
|
-
<title>BugX Studio ·
|
|
9
|
+
<title>BugX Studio · 自主代码审查与智能测试智能体 | 全自动黑盒/功能/性能测试与质量保障</title>
|
|
10
10
|
<meta
|
|
11
11
|
name="description"
|
|
12
|
-
content="BugX
|
|
12
|
+
content="BugX 是一个具备自主代码审查与测试能力的智能体,严把代码交付关:帮助开发人员在写完代码后自动排查隐藏的深层 Bug,减少反复排错与返工;帮助测试人员自动化运行黑盒测试、功能验证与性能测试,自动覆盖手工盲测难以覆盖的极端场景;确保代码稳定运行不崩溃不卡死,上线放心不翻车。"
|
|
13
13
|
/>
|
|
14
|
+
<meta
|
|
15
|
+
name="keywords"
|
|
16
|
+
content="BugX,代码审查,自主代码审查,自动化测试,智能测试,黑盒测试,功能测试,性能测试,代码质检,软件质量保障,解放双手,Bug排查,测试智能体,AI代码审查,Claude Code,Codex,OpenCode,ZCode"
|
|
17
|
+
/>
|
|
18
|
+
<link rel="canonical" href="https://bugx.dev/" />
|
|
19
|
+
<!-- OpenGraph / Social Sharing -->
|
|
20
|
+
<meta property="og:type" content="website" />
|
|
21
|
+
<meta property="og:title" content="BugX · 自主代码审查与智能测试智能体" />
|
|
22
|
+
<meta property="og:description" content="严把代码交付关:帮助开发自动排查隐藏深层 Bug,帮助测试自动运行黑盒/功能/性能测试,确保稳定运行不崩溃不翻车,解放双手降本增效。" />
|
|
23
|
+
<meta property="og:url" content="https://bugx.dev/" />
|
|
24
|
+
<meta property="og:image" content="https://bugx.dev/icon-192.png" />
|
|
25
|
+
<meta property="og:site_name" content="BugX" />
|
|
26
|
+
<!-- Twitter Cards -->
|
|
27
|
+
<meta name="twitter:card" content="summary_large_image" />
|
|
28
|
+
<meta name="twitter:title" content="BugX · Autonomous Code Review & Automated Testing Agent" />
|
|
29
|
+
<meta name="twitter:description" content="Safeguarding software delivery: catches hidden deep bugs for developers, automates black-box, functional, and performance testing for QA, ensuring rock-solid stability." />
|
|
30
|
+
<meta name="twitter:image" content="https://bugx.dev/icon-192.png" />
|
|
31
|
+
<!-- Schema.org JSON-LD -->
|
|
32
|
+
<script type="application/ld+json">
|
|
33
|
+
{
|
|
34
|
+
"@context": "https://schema.org",
|
|
35
|
+
"@type": "SoftwareApplication",
|
|
36
|
+
"name": "BugX",
|
|
37
|
+
"operatingSystem": "All",
|
|
38
|
+
"applicationCategory": "DeveloperApplication",
|
|
39
|
+
"description": "BugX 是一个具备自主代码审查与测试能力的智能体,严把代码交付关:它帮助开发人员在写完代码后自动排查隐藏的深层 Bug,减少反复排错与返工;帮助测试人员自动化运行黑盒测试、功能验证与性能测试,自动覆盖手工盲测难以覆盖的极端场景;确保代码功能符合要求、具备良好的健壮性和稳定性。让开发和测试在繁琐的工作中解放双手,大幅提高工作效率、全面提升代码质量、显著降低后期维护成本,实现科技服务于人。",
|
|
40
|
+
"url": "https://bugx.dev",
|
|
41
|
+
"offers": {
|
|
42
|
+
"@type": "Offer",
|
|
43
|
+
"price": "0",
|
|
44
|
+
"priceCurrency": "USD"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
</script>
|
|
14
48
|
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)" />
|
|
15
49
|
<meta name="theme-color" content="#151517" media="(prefers-color-scheme: dark)" />
|
|
16
50
|
<link rel="manifest" href="./manifest.webmanifest" />
|
|
@@ -50,6 +84,20 @@
|
|
|
50
84
|
<script src="./project-settings.js?v=366" defer></script>
|
|
51
85
|
</head>
|
|
52
86
|
<body>
|
|
53
|
-
<div id="app"
|
|
87
|
+
<div id="app">
|
|
88
|
+
<noscript>
|
|
89
|
+
<div style="padding: 24px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; max-width: 800px; margin: 40px auto; color: #1e293b;">
|
|
90
|
+
<h1>BugX — 自主代码审查与自主测试智能体</h1>
|
|
91
|
+
<p><strong>BugX</strong> 是一个具备自主代码审查与测试能力的智能体,严把代码交付关:它帮助开发人员在写完代码后自动排查隐藏的深层 Bug,减少反复排错与返工;帮助测试人员自动化运行黑盒测试、功能验证与性能测试,自动覆盖手工盲测难以覆盖的极端场景;确保代码功能符合要求、具备良好的健壮性和稳定性。让开发和测试在繁琐的工作中解放双手,大幅提高工作效率、全面提升代码质量、显著降低后期维护成本,实现科技服务于人。</p>
|
|
92
|
+
<h2>主要能力与适用场景</h2>
|
|
93
|
+
<ul>
|
|
94
|
+
<li><strong>代码审查(Code Review)</strong>:功能编写完成或提交 PR 时自动排查隐藏的深层逻辑缺陷与代码异味;</li>
|
|
95
|
+
<li><strong>自动化黑盒测试</strong>:在隔离沙箱中自动构造测试场景与边界用例,验证功能完备性;</li>
|
|
96
|
+
<li><strong>功能与性能验证</strong>:精准发现死锁、竞态、内存泄漏与资源未释放等深层隐患;</li>
|
|
97
|
+
<li><strong>上线前质量守门</strong>:确保交付用户的软件在复杂环境下稳定运行、不崩溃不卡死,上线放心不翻车。</li>
|
|
98
|
+
</ul>
|
|
99
|
+
</div>
|
|
100
|
+
</noscript>
|
|
101
|
+
</div>
|
|
54
102
|
</body>
|
|
55
103
|
</html>
|
|
@@ -7841,7 +7841,12 @@
|
|
|
7841
7841
|
body: JSON.stringify(payload)
|
|
7842
7842
|
});
|
|
7843
7843
|
if (res.ok) {
|
|
7844
|
-
|
|
7844
|
+
const resData = await res.json().catch(() => ({}));
|
|
7845
|
+
if (resData && resData.session_restart_required) {
|
|
7846
|
+
alert(`【必须重启宿主】已成功挂载 MCP: ${srvName}\n\n项目 MCP 配置已更新至 .mcp.json。\n宿主(VS Code / Cursor / Windsurf / Claude 等)不支持动态热加载,请务必【重载窗口 / 重启宿主会话】方可生效!`);
|
|
7847
|
+
} else {
|
|
7848
|
+
showToast(`已成功挂载 MCP: ${srvName}`);
|
|
7849
|
+
}
|
|
7845
7850
|
await this.loadData();
|
|
7846
7851
|
this.render();
|
|
7847
7852
|
} else {
|
|
@@ -8019,7 +8024,12 @@
|
|
|
8019
8024
|
if (res.ok) {
|
|
8020
8025
|
it.mounted = true;
|
|
8021
8026
|
it.enabled = true;
|
|
8022
|
-
|
|
8027
|
+
const resData = await res.json().catch(() => ({}));
|
|
8028
|
+
if (resData && resData.session_restart_required) {
|
|
8029
|
+
alert(`【必须重启宿主】已成功挂载 MCP: ${it.name}\n\n项目 MCP 配置已更新至 .mcp.json。\n宿主(VS Code / Cursor / Windsurf / Claude 等)不支持动态热加载,请务必【重载窗口 / 重启宿主会话】方可生效!`);
|
|
8030
|
+
} else {
|
|
8031
|
+
showToast(`已成功挂载 MCP: ${it.name}`);
|
|
8032
|
+
}
|
|
8023
8033
|
await this.loadData();
|
|
8024
8034
|
this.render();
|
|
8025
8035
|
} else {
|
|
@@ -8198,7 +8208,12 @@
|
|
|
8198
8208
|
})
|
|
8199
8209
|
});
|
|
8200
8210
|
if (res.ok) {
|
|
8201
|
-
|
|
8211
|
+
const resData = await res.json().catch(() => ({}));
|
|
8212
|
+
if (resData && resData.session_restart_required) {
|
|
8213
|
+
alert(`【必须重启宿主】成功挂载自定义 MCP: ${name}\n\n项目 MCP 配置已更新至 .mcp.json。\n宿主(VS Code / Cursor / Windsurf / Claude 等)不支持动态热加载,请务必【重载窗口 / 重启宿主会话】方可生效!`);
|
|
8214
|
+
} else {
|
|
8215
|
+
showToast(`成功挂载自定义 MCP: ${name}`);
|
|
8216
|
+
}
|
|
8202
8217
|
closeModal();
|
|
8203
8218
|
await this.loadData();
|
|
8204
8219
|
this.render();
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# robots.txt for BugX WebUI & Public Interface
|
|
2
|
+
User-agent: *
|
|
3
|
+
Allow: /
|
|
4
|
+
Disallow: /api/
|
|
5
|
+
Disallow: /private/
|
|
6
|
+
|
|
7
|
+
# Explicitly Allow Major Search Bots and Generative AI Answer Engines
|
|
8
|
+
User-agent: Googlebot
|
|
9
|
+
Allow: /
|
|
10
|
+
|
|
11
|
+
User-agent: Baiduspider
|
|
12
|
+
Allow: /
|
|
13
|
+
|
|
14
|
+
User-agent: Bingbot
|
|
15
|
+
Allow: /
|
|
16
|
+
|
|
17
|
+
User-agent: GPTBot
|
|
18
|
+
Allow: /
|
|
19
|
+
|
|
20
|
+
User-agent: OAI-SearchBot
|
|
21
|
+
Allow: /
|
|
22
|
+
|
|
23
|
+
User-agent: PerplexityBot
|
|
24
|
+
Allow: /
|
|
25
|
+
|
|
26
|
+
User-agent: ClaudeBot
|
|
27
|
+
Allow: /
|
|
28
|
+
|
|
29
|
+
User-agent: Applebot-Extended
|
|
30
|
+
Allow: /
|
|
31
|
+
|
|
32
|
+
User-agent: Bytespider
|
|
33
|
+
Allow: /
|
|
34
|
+
|
|
35
|
+
# Sitemap Location
|
|
36
|
+
Sitemap: https://bugx.dev/sitemap.xml
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
3
|
+
<url>
|
|
4
|
+
<loc>https://bugx.dev/</loc>
|
|
5
|
+
<lastmod>2026-11-23</lastmod>
|
|
6
|
+
<changefreq>daily</changefreq>
|
|
7
|
+
<priority>1.0</priority>
|
|
8
|
+
</url>
|
|
9
|
+
<url>
|
|
10
|
+
<loc>https://bugx.dev/docs</loc>
|
|
11
|
+
<lastmod>2026-11-23</lastmod>
|
|
12
|
+
<changefreq>weekly</changefreq>
|
|
13
|
+
<priority>0.8</priority>
|
|
14
|
+
</url>
|
|
15
|
+
</urlset>
|
|
@@ -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 —
|
|
5
|
+
# BugX — Autonomous Code Review & Automated Testing Agent
|
|
6
6
|
|
|
7
|
-
BugX is an autonomous code
|
|
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
|
-
|
|
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>
|
|
@@ -73,12 +78,10 @@ The skill marketplace ships with `/audit` (one-shot full-surface audit with a du
|
|
|
73
78
|
|
|
74
79
|
Requires Node.js `>=18`. Python `>=3.11` is detected and managed by the wrapper.
|
|
75
80
|
|
|
76
|
-
**
|
|
81
|
+
**Check the CLI without a global install:**
|
|
77
82
|
|
|
78
83
|
```bash
|
|
79
|
-
npx bugx-cli
|
|
80
|
-
npx bugx-cli init # initialize the current repository (.bugx/)
|
|
81
|
-
npx bugx-cli install # register local AI assistants
|
|
84
|
+
npx bugx-cli --version
|
|
82
85
|
```
|
|
83
86
|
|
|
84
87
|
**Or install globally** (pick your package manager):
|
|
@@ -90,15 +93,21 @@ npm install -g bugx-cli
|
|
|
90
93
|
# bun add -g bugx-cli
|
|
91
94
|
```
|
|
92
95
|
|
|
93
|
-
After installing, run this
|
|
96
|
+
After installing, run this from the repository you want to use:
|
|
94
97
|
|
|
95
98
|
```bash
|
|
96
99
|
bugx install # lists detected AI hosts and registers the BugX MCP servers
|
|
97
100
|
bugx doctor --strict # health diagnostics
|
|
98
101
|
```
|
|
99
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
|
+
|
|
100
105
|
To install everywhere at once: `bugx install --agent all`.
|
|
101
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
|
+
|
|
102
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:
|
|
103
112
|
|
|
104
113
|
**ZCode**
|
|
@@ -117,13 +126,6 @@ To install everywhere at once: `bugx install --agent all`.
|
|
|
117
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.
|
|
118
127
|
|
|
119
128
|
```bash
|
|
120
|
-
bugx auth login # sign in to the cloud account (lesson and experience sync)
|
|
121
|
-
bugx init --cloud-sync sync # enable cloud sync so the project works across devices
|
|
122
|
-
|
|
123
|
-
bugx engine pre # build the coverage list and audit plan
|
|
124
|
-
bugx engine status # follow progress
|
|
125
|
-
bugx engine post # settle: cross-check coverage, evidence, and verdicts
|
|
126
|
-
|
|
127
129
|
bugx autonomous --host opencode # full audit without supervision
|
|
128
130
|
bugx goal --host opencode "audit this project's login and payment flows"
|
|
129
131
|
|
|
@@ -166,7 +168,7 @@ DeepSeek Harness (DSH), WorkBuddy, Cursor / Windsurf, and more are being adapted
|
|
|
166
168
|
|
|
167
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.
|
|
168
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.
|
|
169
|
-
-
|
|
171
|
+
- Knowledge sync uses the configured scope and sensitive-data policy. Bundle uploads, diagnostic log reports, and feedback have separate commands and data boundaries.
|
|
170
172
|
- `reset` / `uninstall` / `purge` / `--no-backup` delete data. Check each command's dry-run and backup behavior first.
|
|
171
173
|
|
|
172
174
|
### FAQ
|
|
@@ -181,7 +183,7 @@ Rather than trusting the proposing model's self-report, findings are independent
|
|
|
181
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.
|
|
182
184
|
|
|
183
185
|
**Does BugX send my code to the cloud?**
|
|
184
|
-
The audit
|
|
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.
|
|
185
187
|
|
|
186
188
|
**Does BugX replace human review?**
|
|
187
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.
|
|
@@ -217,12 +219,10 @@ BugX 用一本账和四条硬规矩对抗这件事:逐单元覆盖清单(查
|
|
|
217
219
|
|
|
218
220
|
要求 Node.js `>=18`;Python `>=3.11` 由包装器自动检测管理。
|
|
219
221
|
|
|
220
|
-
|
|
222
|
+
**免全局安装,先检查 CLI:**
|
|
221
223
|
|
|
222
224
|
```bash
|
|
223
|
-
npx bugx-cli
|
|
224
|
-
npx bugx-cli init # 初始化当前仓库(.bugx/)
|
|
225
|
-
npx bugx-cli install # 注册本地 AI 助手
|
|
225
|
+
npx bugx-cli --version
|
|
226
226
|
```
|
|
227
227
|
|
|
228
228
|
**或全局安装:**
|
|
@@ -231,7 +231,7 @@ npx bugx-cli install # 注册本地 AI 助手
|
|
|
231
231
|
npm install -g bugx-cli
|
|
232
232
|
```
|
|
233
233
|
|
|
234
|
-
|
|
234
|
+
装好后在目标仓库运行:
|
|
235
235
|
|
|
236
236
|
```bash
|
|
237
237
|
bugx install # 列出检测到的 AI 宿主并注册 BugX MCP 服务
|
|
@@ -240,6 +240,10 @@ bugx doctor --strict # 健康自检
|
|
|
240
240
|
|
|
241
241
|
一次装全所有宿主:`bugx install --agent all`。
|
|
242
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
|
+
|
|
243
247
|
**方式一:在 AI 助手里用(推荐)。** 在任意项目里打开 Claude Code、Codex、Cline、OpenCode 或 ZCode,直接说:
|
|
244
248
|
|
|
245
249
|
> 「审计一下这个项目」
|
|
@@ -250,13 +254,6 @@ bugx doctor --strict # 健康自检
|
|
|
250
254
|
**方式二:命令行直接跑。** AI 同样来自你已装好的宿主——模型和凭据直接复用,不接管你的 Key。
|
|
251
255
|
|
|
252
256
|
```bash
|
|
253
|
-
bugx auth login # 登录云端账号(错题/经验同步用)
|
|
254
|
-
bugx init --cloud-sync sync # 开启云端同步
|
|
255
|
-
|
|
256
|
-
bugx engine pre # 建立覆盖清单与审计计划
|
|
257
|
-
bugx engine status # 看进度
|
|
258
|
-
bugx engine post # 结账:核对覆盖、证据与裁决
|
|
259
|
-
|
|
260
257
|
bugx autonomous --host opencode # 无人值守完整审计
|
|
261
258
|
bugx report serve # 实时 Web 报告 http://127.0.0.1:8080
|
|
262
259
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: bugx
|
|
3
|
-
description: An autonomous
|
|
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:
|
|
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: "
|
|
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: bugx
|
|
3
|
-
description:
|
|
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
|
|
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
|
|
3
|
-
description:
|
|
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": "
|
|
6
|
-
"description_zh": "
|
|
7
|
-
"description_en": "
|
|
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.
|
|
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
|
-
"
|
|
19
|
-
"
|
|
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": "
|
|
6
|
-
"description_zh": "
|
|
7
|
-
"description_en": "
|
|
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.
|
|
10
|
+
"version": "0.1.3",
|
|
11
11
|
"examples_zh": [
|
|
12
|
-
"
|
|
13
|
-
"
|
|
12
|
+
"运行代码审查,排查深层 Bug 与性能隐患",
|
|
13
|
+
"自动化运行功能验证与黑盒测试"
|
|
14
14
|
],
|
|
15
15
|
"examples_en": [
|
|
16
|
-
"
|
|
17
|
-
"
|
|
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:
|
|
4
|
-
version: 0.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
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"bugx_build_id": 98,
|
|
5
|
-
"description": "Autonomous code review and
|
|
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"
|