bugx-cli 0.1.3 → 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 (129) hide show
  1. package/core/README.md +5 -3
  2. package/core/assets/bugx-wechat-group.png +0 -0
  3. package/core/bugx.md +2 -2
  4. package/core/bugx_paths.py +10 -2
  5. package/core/bundled_docs/OVERVIEW.md +310 -0
  6. package/core/bundled_docs/README.md +10 -0
  7. package/core/bundled_docs/README_EN.md +278 -0
  8. package/core/bundled_docs/ai/01_AI_REFERENCE.md +833 -0
  9. package/core/bundled_docs/ai/02_AI_USAGE.md +161 -0
  10. package/core/bundled_docs/ai/03_AI_COMMANDS.md +322 -0
  11. package/core/bundled_docs/guides/01_USER_GUIDE.md +887 -0
  12. package/core/bundled_docs/guides/02_COMMANDS.md +935 -0
  13. package/core/bundled_docs/guides/03_TROUBLESHOOTING.md +763 -0
  14. package/core/bundled_docs/guides/04_CLOUD_AUTH_AND_SYNC_COOKBOOK.md +48 -0
  15. package/core/bundled_docs/guides/05_HOST_MATRIX_AND_DISPATCH.md +23 -0
  16. package/core/bundled_docs/guides/06_PROBES_AND_POC_COOKBOOK.md +49 -0
  17. package/core/bundled_docs/guides/07_LIFECYCLE_AND_RECOVERY_STATES.md +46 -0
  18. package/core/bundled_docs/guides/08_LESSONS_AND_PRIVACY_BOUNDARY.md +35 -0
  19. package/core/bundled_docs/hosts/bugx-claude_SKILL.md +326 -0
  20. package/core/bundled_docs/hosts/bugx-dsh_SKILL.md +229 -0
  21. package/core/bundled_docs/hosts/bugx-opencode_SKILL.md +129 -0
  22. package/core/bundled_docs/hosts/bugx-zcode_SKILL.md +459 -0
  23. package/core/bundled_docs/hosts/bugx_SKILL.md +118 -0
  24. package/core/bundled_docs/hosts/cline_bugx_SKILL.md +69 -0
  25. package/core/bundled_docs/hosts/platform_bugx_SKILL.md +50 -0
  26. package/core/bundled_docs/manifest.json +140 -0
  27. package/core/bundled_docs/reference/01_ENVIRONMENT_VARIABLES.md +421 -0
  28. package/core/bundled_docs/reference/04_REPOSITORY_TOPOLOGY.md +180 -0
  29. package/core/cli-help.txt +7 -3
  30. package/core/cloud_sync/cloud_client.py +81 -2
  31. package/core/cloud_sync/endpoint_router.py +22 -9
  32. package/core/cloud_sync/issue_uploader.py +297 -0
  33. package/core/cloud_sync/sensitive_filter.py +77 -7
  34. package/core/contracts/AGENT_GUIDE.md +3 -9
  35. package/core/contracts/README.md +1 -1
  36. package/core/contracts/bugx-runtime-contract.md +10 -20
  37. package/core/contracts/bugx-worker.md +1 -1
  38. package/core/engine-integrity.json +209 -93
  39. package/core/host_acp/antigravity.py +153 -0
  40. package/core/host_runtime/adapters.py +5 -1
  41. package/core/host_runtime/antigravity.py +162 -0
  42. package/core/host_runtime/host_bootstrap.py +18 -7
  43. package/core/host_runtime/host_evaluators.py +4 -4
  44. package/core/host_runtime/host_registry.py +2 -1
  45. package/core/host_runtime/mcp_process_tracker.py +30 -3
  46. package/core/host_runtime/mcp_registry_gate.py +34 -11
  47. package/core/hosts/antigravity.py +115 -0
  48. package/core/hosts/codex.py +3 -0
  49. package/core/hosts/dsh.py +42 -23
  50. package/core/hosts/minimax.py +5 -4
  51. package/core/i18n.py +94 -5
  52. package/core/infra/README.md +1 -1
  53. package/core/infra/build_info.py +2 -2
  54. package/core/launch_phases/README.md +2 -2
  55. package/core/launch_phases/startup_version_gate.py +2 -2
  56. package/core/launch_phases/supervisor_bridge.py +2 -0
  57. package/core/launch_phases/supervisor_degraded.py +7 -5
  58. package/core/ledger/README.md +1 -1
  59. package/core/locales/en-US.json +3 -3
  60. package/core/locales/zh-CN.json +3 -3
  61. package/core/mcp_runtime_support/environment.py +6 -1
  62. package/core/metadata.txt +1 -1
  63. package/core/planning/README.md +1 -1
  64. package/core/planning/prompt_harness.py +2 -2
  65. package/core/probes/codebase_memory_probe.py +43 -24
  66. package/core/probes/probe_registry.py +10 -7
  67. package/core/prompts/command_routing_en.md +6 -5
  68. package/core/prompts/command_routing_zh.md +6 -5
  69. package/core/repair/rsi_rounds.py +3 -0
  70. package/core/repair/self_heal.py +160 -6
  71. package/core/retrieval/README.md +1 -1
  72. package/core/runtime/README.md +1 -1
  73. package/core/runtime/scenario_eval.py +5 -1
  74. package/core/runtime/tool_install_targets.py +12 -2
  75. package/core/skills/README.md +4 -2
  76. package/core/skills/bugx_docs_cloud_sync.py +658 -0
  77. package/core/skills/bugx_docs_mcp_server.py +966 -140
  78. package/core/supervisor/README.md +1 -1
  79. package/core/supervisor/worker_execution.py +16 -3
  80. package/core/webui/docs_session_service.py +40 -2
  81. package/core/webui/mcp_inspector.py +6 -6
  82. package/ecosystem/integrations/cline/skills/bugx/SKILL.md +46 -46
  83. package/ecosystem/integrations/dsh/agents/bugx.md +2 -1
  84. package/ecosystem/integrations/dsh/mcp/package.json +1 -1
  85. package/ecosystem/integrations/dsh/skills/bugx/SKILL.md +5 -5
  86. package/ecosystem/integrations/dsh/ui/package.json +1 -1
  87. package/ecosystem/integrations/opencode/bugx-mcp-manifest.json +2 -2
  88. package/ecosystem/integrations/pi/extensions/bugx/manifest.json +1 -1
  89. package/ecosystem/integrations/pi/skills/bugx/SKILL.md +5 -5
  90. package/ecosystem/integrations/qoder/CONNECTORS.md +11 -23
  91. package/ecosystem/integrations/qoder/connector-meta.json +1 -1
  92. package/ecosystem/integrations/workbuddy/connector-meta.json +1 -1
  93. package/ecosystem/integrations/workbuddy/skills/bugx/SKILL.md +8 -7
  94. package/ecosystem/plugins/bugx/.claude-plugin/plugin.json +1 -1
  95. package/ecosystem/plugins/bugx/.codex-plugin/plugin.json +1 -1
  96. package/ecosystem/plugins/bugx/.zcode-plugin/plugin.json +1 -1
  97. package/ecosystem/plugins/bugx/agents/bugx-worker.md +14 -18
  98. package/ecosystem/plugins/bugx/agents/bugx.md +45 -49
  99. package/ecosystem/plugins/bugx/skills/bugx/SKILL.md +7 -7
  100. package/ecosystem/plugins/bugx/skills/bugx-zcode/SKILL.md +2 -2
  101. package/interfaces/cli/bugx_cli/__init__.py +1 -1
  102. package/interfaces/cli/bugx_cli/cli.py +138 -8
  103. package/interfaces/cli/bugx_cli/commands/agent.py +376 -69
  104. package/interfaces/cli/bugx_cli/commands/cloud.py +42 -1
  105. package/interfaces/cli/bugx_cli/commands/doctor.py +650 -223
  106. package/interfaces/cli/bugx_cli/commands/guide.py +143 -0
  107. package/interfaces/cli/bugx_cli/commands/issue.py +262 -0
  108. package/interfaces/cli/bugx_cli/commands/lifecycle.py +55 -25
  109. package/interfaces/cli/bugx_cli/commands/plugin.py +295 -54
  110. package/interfaces/cli/bugx_cli/commands/plugin_antigravity.py +350 -0
  111. package/interfaces/cli/bugx_cli/commands/plugin_claude.py +2 -2
  112. package/interfaces/cli/bugx_cli/commands/plugin_kimi.py +154 -62
  113. package/interfaces/cli/bugx_cli/commands/plugin_minimax.py +308 -108
  114. package/interfaces/cli/bugx_cli/commands/system.py +11 -1
  115. package/interfaces/cli/bugx_cli/common.py +39 -8
  116. package/interfaces/cli/bugx_cli/host_adapters.py +40 -3
  117. package/interfaces/cli/bugx_cli/hosts/registry.py +3 -2
  118. package/interfaces/cli/bugx_cli/hosts/template_engine.py +21 -2
  119. package/interfaces/cli/bugx_cli/infra/__init__.py +4 -0
  120. package/interfaces/cli/bugx_cli/infra/ai_advisor.py +14 -12
  121. package/interfaces/cli/bugx_cli/infra/engine_installer.py +76 -10
  122. package/interfaces/cli/bugx_cli/infra/host_sync.py +66 -1
  123. package/interfaces/cli/bugx_cli/infra/mcp_advisor.py +240 -50
  124. package/package.json +3 -2
  125. package/pyproject.toml +22 -2
  126. package/scripts/sync-version.mjs +1 -1
  127. package/skills/README.md +1 -2
  128. package/skills/platform/bugx/SKILL.md +50 -0
  129. package/skills/platform/bugx-user/SKILL.md +0 -92
@@ -0,0 +1,278 @@
1
+ <p align="center">
2
+ <a href="README.md">中文</a> · English
3
+ </p>
4
+
5
+ <p align="center">
6
+ <img src="core/assets/bugx-hero-en.svg" alt="BugX — effortless audits of AI-written code" width="800">
7
+ </p>
8
+
9
+ # BugX — Autonomous Code Review & Automated Testing Agent
10
+
11
+ BugX is an autonomous code review and automated testing agent that lives inside your AI coding assistant or runs standalone on the command line.
12
+
13
+ **It safeguards software delivery at every step:**
14
+ - **For Developers**: Catches subtle, high-impact bugs immediately after code is written, eliminating painful debugging loops and rework.
15
+ - **For QA & Test Engineers**: Automates black-box, functional, and performance testing across complex edge cases that manual reviews often miss.
16
+ - **For Engineering Teams**: Guarantees code strictly meets functional contracts with rock-solid stability and resilience, ensuring dependable, crash-free releases.
17
+
18
+ By replacing subjective self-reporting with automated, evidence-backed audits, BugX accelerates release velocity, elevates software quality, and reduces long-term maintenance costs. Supported environments include **Claude Code, OpenAI Codex, Cursor, Trae, Windsurf, Kimi Code, MiniMax Code, OpenCode, ZCode, Cline, DeepSeek Harness (DSH), WorkBuddy, and Qoder**.
19
+
20
+ <p align="center">
21
+ <a href="https://pypi.org/project/bugx-cli/"><img src="https://img.shields.io/pypi/v/bugx-cli.svg?style=flat&color=0284c7&label=PyPI" alt="PyPI"></a>
22
+ <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"></a>
23
+ <img src="https://img.shields.io/badge/python-%E2%89%A53.11-334155.svg?style=flat" alt="Python">
24
+ <img src="https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20Windows-334155.svg?style=flat" alt="Platform">
25
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-BSL--1.1-334155.svg?style=flat" alt="License"></a>
26
+ </p>
27
+
28
+ 🌐 Website: **https://bugx.dev**
29
+
30
+ ## Contents
31
+
32
+ - [The problem it solves](#the-problem-it-solves)
33
+ - [Quick start](#quick-start)
34
+ - [What a full audit looks like](#what-a-full-audit-looks-like)
35
+ - [Supported AI coding tools](#supported-ai-coding-tools)
36
+ - [Data and security](#data-and-security)
37
+ - [Documentation](#documentation)
38
+ - [Development](#development)
39
+ - [License](#license)
40
+
41
+ ## The problem it solves
42
+
43
+ AI writes code faster than any human can review it. And the model carries a quirk that makes this worse: it cuts corners. That isn't malice — it's how the model was trained. Three mechanisms stack together:
44
+
45
+ 1. **The grader rewards confidence.** The last stage of training is human raters scoring responses. One answer says "I checked it carefully, nothing found." Another says "I haven't finished reading the files." The first scores better — it sounds reliable and useful. So the model learns that reporting good news earns the reward.
46
+ 2. **Checking is expensive; claiming is cheap.** Reading a few hundred files takes real work. Replying "no issues found" takes a few words. When both options sit on the table, the cheap one always wins.
47
+ 3. **It doesn't know what it hasn't checked.** The model can't see its own coverage gaps, and nothing in training taught it to say "half done." So it says "done" — every time.
48
+
49
+ BugX replaces that with a ledger and four hard rules:
50
+
51
+ 1. **A coverage list.** Your project is split into audit units, each with a real status: checked, blocked, or not yet checked. Coverage is tracked, not assumed.
52
+ 2. **Independent blind review & reproduction.** Suspicious findings are blind-reviewed by an isolated verification agent. The attack input must reproduce the bug twice, and a clean input must trigger zero times, backed by AST syntax anti-empty assertions. Refuted findings are logged to the FP Ledger to prevent repeat false alarms.
53
+ 3. **It picks up where it left off.** Close your AI tool and reopen it later — the audit resumes from the last recorded step instead of starting over.
54
+ 4. **Every verdict stays reviewable.** Who checked what, when, and on what evidence goes into the ledger line by line, with hash chaining between pages. Nothing gets edited quietly.
55
+
56
+ ## Quick start
57
+
58
+ Python `>=3.11`; the npm wrapper needs Node.js `>=18`.
59
+
60
+ Install from PyPI:
61
+
62
+ ```bash
63
+ python -m pip install bugx-cli
64
+ ```
65
+
66
+ Or install from npm:
67
+
68
+ ```bash
69
+ npm install -g bugx-cli
70
+ ```
71
+
72
+ Check and update using the server release matching your current install source:
73
+
74
+ ```bash
75
+ bugx update --check # check only: 0=up-to-date, 1=update available, 2=check failed
76
+ bugx update # update pip or npm wrapper installation
77
+ bugx update --channel alpha # explicitly choose pre-release channel
78
+ ```
79
+
80
+ Then run this once from any directory:
81
+
82
+ ```bash
83
+ bugx install
84
+ ```
85
+
86
+ > ⚠️ **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.
87
+
88
+ CLI boolean flags are switches: pass `--force` to enable, omit it to disable. Do not pass `--force=True` or `force=True`.
89
+ It lists every AI host it detects on your machine and walks you through picking one. To install everywhere at once, use `bugx install --agent all`.
90
+
91
+ ### Connect the project to BugX Cloud
92
+
93
+ From the repository root, confirm the account, sync scope, and sensitive-data policy. Run `bugx auth login --root .` and check that `bugx auth status --root . --verify --json` reports the expected account and `auth_verified=true`.
94
+
95
+ When both the account-wide and project scopes are authorized, initialize a fresh project with `bugx init --root . --cloud-sync sync` and check the first transfer with `bugx cloud sync --root . --scope all`. Initialization installs `.agents/skills/bugx/SKILL.md`. Invoke `/bugx` or run `bugx guide "<query>"` for on-demand steps in a host that discovers project Skills there. For existing projects, use `bugx cloud sync --root . --scope all` after the full scope is authorized, then check the binding and queue with `bugx cloud status --root . --scope all --json`. This flow includes project registration and profile, project knowledge, and account-wide knowledge. Decline requests for partial sync.
96
+
97
+ ### Option 1: use it inside your AI assistant (recommended)
98
+
99
+ No terminal and no commands to remember. Open your AI assistant in any project — Claude Code, Codex, Cline, OpenCode, ZCode — and just tell it what to check:
100
+
101
+ **ZCode**
102
+ ![Running a BugX audit in ZCode](core/assets/zcode.png)
103
+
104
+ **Codex**
105
+ ![Running a BugX audit in Codex](core/assets/codex.png)
106
+
107
+ **DSH**
108
+ ![Running a BugX audit in DSH](core/assets/dsh.png)
109
+
110
+ > "Audit this project"
111
+ > "Check the login module for vulnerabilities"
112
+ > "Review the changes on this branch for security issues"
113
+
114
+ The AI inside your host calls BugX on its own: it builds the coverage list, dispatches concurrent workers, runs probes, verifies the findings, and writes the report. To watch an audit live, run `bugx report serve` in a terminal and open **http://127.0.0.1:8080** — that's the full web report.
115
+
116
+ ### Option 2: run it from the command line
117
+
118
+ On the command line, the AI still comes from your installed hosts: BugX reuses the model and credentials you already configured there and never takes over your API keys (`--model` / `--provider` default to your host's configuration).
119
+
120
+ Check the selected host and connection with `bugx doctor --root . --strict`. For a staged CLI run, follow the [lifecycle guide](guides/01_USER_GUIDE.md#8-从-pre-到-post-的完整生命周期) through execution, evidence review, and settlement. See the current stage with `bugx engine --root . status --json`.
121
+
122
+ Or let BugX run the whole thing while you do something else:
123
+
124
+ ```bash
125
+ bugx autonomous --host opencode # model and credentials come from your OpenCode setup
126
+ # or give it a target:
127
+ bugx goal --host opencode "audit this project's login and payment flows"
128
+ ```
129
+
130
+ Fixes and outputs are command-line work too:
131
+
132
+ ```bash
133
+ bugx test-generate ... # generate AAA tests or a self-contained PoC for a unit
134
+ bugx test-verify ... # mutate the code to prove your tests catch real bugs
135
+ bugx patch-forge --from-issue <id> --diff fix.diff --repro repro.md --test test_ok.py --dry-run
136
+ ```
137
+
138
+ `patch-forge` builds a patch bundle and runs static checks on it. It produces the bundle but commits nothing — remove `--dry-run` once you've reviewed it.
139
+
140
+ Open the web UI for reports (during or after an audit):
141
+
142
+ ```bash
143
+ bugx report serve # then open http://127.0.0.1:8080 for live coverage, evidence, and findings
144
+ ```
145
+
146
+ For offline archives, export a static report:
147
+
148
+ ```bash
149
+ bugx report both --format html --out report.html
150
+ ```
151
+
152
+ See the host table below for valid `--agent` values; `bugx hosts` lists every environment detected on this machine with its capabilities.
153
+
154
+ ## What a full audit looks like
155
+
156
+ 1. **pre (with the game plan).** BugX enumerates your source and configuration files, then builds a minimal list of audit units (single modules plus cross-module business flows). Before anything runs, you get a plan with five decisions in one pass: **cloud sync** (sign in and sync lessons and experience, or explicitly choose offline use), **review mode**, **polling strategy**, **fix mode**, and **commit handling**. Confirm the actual sync scope and review policies presented by the startup gates.
157
+ 2. **Workers fan out.** The host hands audit units to concurrent workers. Each worker takes a lease, sends heartbeats, runs probes, and commits checkpoints.
158
+ 3. **Evidence lands on disk.** Every worker conclusion carries the command it ran, the exit code, and the artifact hash. Coverage is only ever `covered` or `blocked` — "roughly checked" doesn't exist here.
159
+ 4. **Findings get adjudicated.** Candidate bugs first go through the engine's verification channel: two positive runs plus a negative control, executed for real. Only then are they confirmed or rejected, and a rejection needs a stated reason.
160
+ 5. **post.** Coverage and findings are cross-checked and the audit settles. Whether it's actually done is decided by the state machine's final state — the model saying "done" doesn't count.
161
+ 6. **The report.** `bugx report both --format html --out report.html` produces the formal and visual reports; `bugx report serve` starts the live preview.
162
+
163
+ ## A look at the interface
164
+
165
+ BugX ships with BugX Studio, a web workbench. Run `bugx report serve` and open http://127.0.0.1:8080:
166
+
167
+ <p align="center">
168
+ <img src="core/assets/webui-studio.jpg" alt="BugX Studio workbench" width="860">
169
+ </p>
170
+
171
+ The workspace covers every connected host, and each host keeps its own audit sessions (the sidebar shows ChatGPT, ZCode, Claude, Codex, DSH, OpenCode, Pi, and more):
172
+
173
+ <p align="center">
174
+ <img src="core/assets/webui-chatgpt.jpg" alt="ChatGPT workspace" width="420">
175
+ <img src="core/assets/webui-zcode.jpg" alt="ZCode workspace" width="420">
176
+ </p>
177
+
178
+ The skill marketplace ships with `/audit` (one-shot full-surface audit with a dual-track report), `/review` (structured findings for branch changes), `/mining` (attack-surface survey and hardening), `/fix` (defensive patches with sandboxed regression), and `/test` (AAA tests with mutation-kill scoring):
179
+
180
+ <p align="center">
181
+ <img src="core/assets/webui-skills.jpg" alt="Skill marketplace" width="860">
182
+ </p>
183
+
184
+ ## What it can do
185
+
186
+ **Audit**
187
+ - **Code review**: bugs and defects, classified by logic / state / boundary / exception / concurrency / performance / resource.
188
+ - **Functionality review**: business-flow audit plus a behavior diff — feed the same inputs to your implementation and a reference implementation, then compare what differs.
189
+ - **Performance and memory**: performance and resource bugs, plus dedicated memory checks for six target families: native, Python, JVM, Electron, Android, and Apple.
190
+ - **UI audit**: layout, contrast, keyboard paths, and design tokens on a running web page (`bugx probe ui`).
191
+
192
+ **Reproduce and verify**
193
+ - Every finding ships with a command or input you can run yourself: the same bad input breaks it twice, a clean input breaks nothing, and all three runs stay on record.
194
+ - Your tests get graded too: `bugx test-verify` mutates your code to check whether the tests actually catch the bugs.
195
+
196
+ **Fixes and outputs**
197
+ - Generate AAA test cases or self-contained PoCs (`bugx test-generate`).
198
+ - Build patch bundles with static checks, delivered for your review — never committed for you (`bugx patch-forge`).
199
+ - Write reports (`bugx report`).
200
+
201
+ **Long term**
202
+ - **A lessons base**: sync verified lessons and experience with `bugx cloud sync` in the authorized scope. Use `bugx lesson retrieve` to look up a symptom or module in the next review.
203
+ - **Unattended runs**: follow your host (`bugx autonomous`), run toward a goal (`bugx goal`), or keep a resident daemon (`bugx daemon`).
204
+ - **Diagnostics & feedback**: `bugx doctor` / `bugx log` / `bugx stats` for installation, logs, and usage; use `bugx issue report` or `bugx feedback` to package sanitized local diagnostics and submit feedback directly.
205
+ - **Official documentation (Remote-First)**: built-in `bugx-docs` MCP server and `bugx guide` CLI command, connecting directly to official endpoints by default with seamless local fallback when offline.
206
+
207
+ ## FAQ
208
+
209
+ **What is BugX?**
210
+ An autonomous code-audit agent that lives inside AI coding assistants: it runs via MCP in Claude Code, Codex, Cline, OpenCode, and ZCode, or as a standalone CLI, tracks audit coverage per unit, and verifies every finding with real executions.
211
+
212
+ **Which AI coding tools does BugX support?**
213
+ BugX currently supports **Claude Code, OpenAI Codex, Cursor, Trae, Windsurf, Kimi Code, MiniMax Code, Google Antigravity, Cline / Roo Code, OpenCode, ZCode, DeepSeek Harness (DSH), WorkBuddy, and Qoder**, with continuous adaptations across the Model Context Protocol (MCP) ecosystem.
214
+
215
+ **How does BugX verify a vulnerability?**
216
+ Rather than trusting the proposing model's self-report, findings are independently blind-reviewed: an attack input must reliably trigger the vulnerability twice, and a clean input must trigger zero times (two positive runs, one negative control) recorded with command, exit code, and artifact hashes, verified by AST syntax assertions. Refuted findings are recorded in the FP Ledger.
217
+
218
+ **Does BugX trigger AI model cyber-security risk blocks?**
219
+ BugX includes a declarative Prompt Policy Engine with adaptive prompt profiles (e.g., defensive QA phrasing for OpenAI Codex / GPT-4o) that prevents models from triggering platform Daybreak / Cyber Risk safety blocks, while preserving 100% of the underlying code and CWE details.
220
+
221
+ **Does BugX send my code to the cloud?**
222
+ The audit itself runs locally. Enabling lesson and experience sync can trigger transfers at startup and after eligible ledger writes. Check the authorized scope and sensitive-data policy before enabling sync.
223
+
224
+ **Does BugX replace human review?**
225
+ No. It gives you a reviewable ledger — what was checked, what wasn't, and reproducible evidence per finding — so human review starts from facts instead of the model's self-report.
226
+
227
+ **What languages does BugX audit?**
228
+ Multi-language static and behavioral analysis (Python, JavaScript/TypeScript, Java, Go, Rust, and more via tree-sitter), plus dedicated memory checks for native, Python, JVM, Electron, Android, and Apple targets.
229
+
230
+ ## Supported AI coding tools
231
+
232
+ | AI coding tool | Integration | Install command |
233
+ | :--- | :--- | :--- |
234
+ | **Claude Code** | Native MCP / autonomous lifecycle | `bugx install --agent claude` |
235
+ | **OpenAI Codex** | Workspace subagents / native plugin | `bugx install --agent codex` |
236
+ | **Cursor / Trae / Windsurf** | Native project-level MCP integration | `bugx install --agent cursor` |
237
+ | **Kimi Code** | Managed plugin / project MCP | `bugx install --agent kimi` |
238
+ | **MiniMax Code** | Plugin V1 package / agent & MCP | `bugx install --agent minimax` |
239
+ | **Google Antigravity** | Native Agent/Worker, Skills, project-level Supervisor/Worker/docs MCP, ACP direct passthrough | `bugx install --agent antigravity` |
240
+ | **Gemini / Gemini Code** | Native MCP connection / automated audit pipelines (Full Gemini 4 Carbon / Neon support) | `bugx install --agent gemini` or standard MCP |
241
+ | **OpenCode** | Headless ACP / native MCP | `bugx install --agent opencode` |
242
+ | **Cline / Roo Code** | MCP chat sessions / multi-process concurrency | `bugx install --agent cline` |
243
+ | **ZCode** | Native MCP / user-level MCP registration | `bugx install --agent zcode` |
244
+ | **DeepSeek Harness (DSH)** | Desktop launcher / managed plugin & MCP | `bugx install --agent dsh` |
245
+ | **WorkBuddy / Qoder** | Connector meta / native extension | `bugx install --agent workbuddy` |
246
+
247
+ Run `bugx hosts` to see all environments detected on your machine.
248
+
249
+ ## Data and security
250
+
251
+ - Project state lives in the project's `.bugx/` directory; the global engine, credentials, knowledge base, and caches live in a user-level BugX directory.
252
+ - Credentials are written to a controlled sandbox when needed (readable only by the current user by default). `bugx auth status` reports whether credentials exist — it never prints them. A model name is not a credential.
253
+ - Knowledge sync uses the configured scope and sensitive-data policy. Bundle uploads, diagnostic log reports, and feedback have separate commands and data boundaries.
254
+ - `reset` / `uninstall` / `purge` / `--no-backup` delete data. Check each command's dry-run and backup behavior first.
255
+
256
+ ## Documentation
257
+
258
+ The documentation is written in Chinese:
259
+
260
+ - [User guide](guides/01_USER_GUIDE.md): installation, configuration, host capabilities, lifecycle, MCP/ACP, cloud scope, results, and recovery.
261
+ - [Command reference](guides/02_COMMANDS.md): every command, argument, default, scope, side effect, and exit behavior.
262
+ - [Troubleshooting](guides/03_TROUBLESHOOTING.md) covers common symptoms and recovery steps.
263
+ - The [BugX skill](hosts/platform_bugx_SKILL.md) and `bugx guide` cover on-demand setup, cloud sync, evidence review, and lesson reuse.
264
+ - [UI audit (probe ui)](guides/02_COMMANDS.md#63-probe): responsive layout, contrast, keyboard paths, and design tokens on a running web UI.
265
+ - [AI reference](ai/01_AI_REFERENCE.md): MCP, lifecycle, state, evidence, and failure contracts for hosts and agents.
266
+ - `Docs index` (`docs/README.md`): architecture and documentation navigation (including 5 topic cookbooks in `docs/01_guides/04_*`..`08_*`, packaged into `core/bundled_docs/` for instant offline `bugx guide` / `bugx-docs` queries and versioned cloud hot-sync).
267
+
268
+ ## Development
269
+
270
+ Repository conventions (docs sync, version contract, verification gates) live in `AGENTS.md` (`AGENTS.md`); architecture and internal design live in [docs/02_architecture/](docs/02_architecture/). Before committing, run `python3 scripts/bump_version.py --check`.
271
+
272
+ ## Keywords
273
+
274
+ Google Antigravity · Antigravity IDE · Gemini 4 · Gemini 4 Carbon · Gemini 4 Neon · Gemini · Gemini Code Assist · G4 models · Claude 5.5 · Claude Sonnet 5.5 · Claude Opus 5.5 · Claude Code review · GPT-4 code review · 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 · zcode · coding agent · llm code review · autonomous audit · behavior diff · memory leak detection · python security · javascript security · devsecops
275
+
276
+ ## License
277
+
278
+ [Business Source License 1.1](LICENSE).