Skip to main content

BugX

Version 0.9.15

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.15

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.15
File Size Uploaded
bugx_agent-0.9.15.tar.gz 1.3 MB Details

Built distribution (wheel)

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

Total release size: 2.1 MB

Release files / bugx_agent-0.9.15.tar.gz

Download URL bugx_agent-0.9.15.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
08bbe612ef5d769b52cfe7a43a031e67df4b0fd59a4f934dc9291f65dd38167d
BLAKE2b-256 checksum
How to use checksums
e11eec3bfa439a0e5e3e542f81a745f78778292582b0d5888049f4421654ccde
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.15-py3-none-any.whl

Download URL bugx_agent-0.9.15-py3-none-any.whl
Size 835.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dd2942c647262517705c34f3d42eff3d7c3b5c34dee7e8b52d521b014483eac
BLAKE2b-256 checksum
How to use checksums
fe455c18e02120a6f8dbaf02e7612a5ea02418d218a7987b8be4d371e774a4f2
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.15 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