Skip to main content

BugX

Version 0.9.16

BugX 是一个给 AI 编程宿主使用的 Bug 审计 Agent。它负责规划测试、检查证据、确认问题并生成报告;真正的代码阅读和命令执行仍由 AI 宿主完成。

使用

准备好 bugx 命令后,进入要审计的项目目录,发现可用的 AI 宿主并启用 BugX:

bugx agent discover --root . --json
bugx install --root .

也可以指定宿主:

bugx install --root . \
  --agent opencode --agent codex --agent claude --agent cline \
  --agent zcode --agent pi --non-interactive

安装后,在对应宿主中选择 BugX,然后让它审计当前项目。例如:

  • OpenCode:输入 @bugx
  • Claude Code:选择 bugx Agent
  • Codex:选择 bugx Skill
  • Pi:使用 .pi/skills/bugx/SKILL.md

常用命令

# 检查安装
bugx doctor --root . --installation-only

# 启动本地 MCP Supervisor(宿主需要时使用)
bugx mcp serve --root . --role host

# 查看帮助和版本
bugx --help
bugx --version

审计结果和运行状态默认保存在项目的 .bugx/ 目录中。不要把其中可能包含项目代码片段的文件提交到公开仓库。

卸载

只移除当前项目中的 BugX:

bugx uninstall --root .

执行前可先用 --dry-run 查看将要删除的内容。

开发

每次提交代码都必须同步更新受影响文档并递增补丁版本;需要跨补丁版本变更时,显式使用 --confirm-version-transition。

python3 -m unittest -q tests.test_jenkinsfile tests.test_consistency
python3 scripts/bump_version.py --check

Metadata

Release files for bugx-agent 0.9.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bugx-agent 0.9.16
File Size Uploaded
bugx_agent-0.9.16.tar.gz 1.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for bugx-agent 0.9.16
File Interpreter ABI Platform
bugx_agent-0.9.16-py3-none-any.whl Python 3 none any Details

Total release size: 2.1 MB

Release files / bugx_agent-0.9.16.tar.gz

Download URL bugx_agent-0.9.16.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
e4c4cac8ad45a346c66e8a1c9204cb01d8c1105ce4f145540f5688add6b2dc87
BLAKE2b-256 checksum
How to use checksums
304300692f98512b0e3b026609ab58bbb014cf1799edc74c1aaf6a1dd95c737e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / bugx_agent-0.9.16-py3-none-any.whl

Download URL bugx_agent-0.9.16-py3-none-any.whl
Size 835.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a62fd52840ac9a135e326de60eb4c9fc3de448318bb6f975f78cbc437201acaa
BLAKE2b-256 checksum
How to use checksums
2880307e128383a55202ce87c4432aa15db2f277901732d8a8b3befa4022aab7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release history Release notifications | RSS feed

0.10.0

2 release files

This release

0.9.16 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page