Skip to main content

BugX

Version 0.9.20

BugX 是装进 AI 编程工具里的代码审计 Agent。

它不是另一个需要你学习的 CLI。你只需安装一次,之后直接在 AI 工具里说你想检查什么; AI 会自己读代码、跑测试、调用 BugX 并给出有证据的结果。

快速开始

1. 安装

全局安装 BugX CLI:

npm install -g @bencibro/bugx

然后在 IDE 打开的项目终端里运行:

bugx install

BugX 会自动发现本机已安装的 AI 工具。选择“安装到全部已检测 Agent”即可:

  • 已有且没变化的入口:跳过;
  • 没有的入口:添加;
  • 旧版本入口:更新。

这一步只安装 BugX Agent,不会启动 AI,也不会开始审计。

2. 在 AI 工具里启动 BugX

打开刚才的项目,在 AI 工具里选择 BugX:

  • OpenCode:输入 @bugx;
  • Codex:选择 BugX Skill;
  • Claude Code:选择 BugX Agent;
  • Cline、ZCode、Pi、ChatGPT、DeepSeek Harness:选择对应的 BugX Agent、Skill 或插件。

如果刚打开时看不到 BugX,重启一次 AI 工具。

第 4 步:开始你的第一次审计

直接把这句话发给 AI:

请使用 BugX 检查当前项目。
先只读分析,不要修改代码。
发现问题时给出文件位置、复现步骤、证据、影响和严重程度。

从这里开始由 AI 主导,不需要你继续敲 BugX 命令。

什么时候用 BugX?

上线前检查

请使用 BugX 做一次完整项目审计,重点检查业务逻辑、边界条件、安全风险和测试覆盖。

遇到具体 Bug

请使用 BugX 复现这个问题,找到根因并验证修复:
<粘贴问题描述>

检查修复或测试

请使用 BugX 验证这个修复是否真的有效,并检查现有测试能否防止问题再次出现。

第一次使用时,AI 可能会询问是否只在本地运行、是否允许修改、是否允许提交。 按你的需要选择即可。

卸载

在 IDE 的项目终端里运行:

bugx uninstall

想先预览会删除什么:

bugx uninstall --dry-run

Metadata

Release files for bugx-agent 0.9.20

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.20
File Size Uploaded
bugx_agent-0.9.20.tar.gz 1.4 MB Details

Built distribution (wheel)

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

Total release size: 2.4 MB

Release files / bugx_agent-0.9.20.tar.gz

Download URL bugx_agent-0.9.20.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
c090ff2a42cde191eddca3519eeef1ef9f7fa03ff228b95ade4a12093fd4f09a
BLAKE2b-256 checksum
How to use checksums
9202bef134e6659dd87a17b60becda9dfb4325d9bfcf7a8e2b51b533c47cfef6
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.20-py3-none-any.whl

Download URL bugx_agent-0.9.20-py3-none-any.whl
Size 953.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fc88295e9fd93621d51d18402a81b330449567d553c4e4eef61c38a94de36dc
BLAKE2b-256 checksum
How to use checksums
af9752d2d878150dbe2d84de60328792625c9e6af16cb4a6f657e4798f5426d7
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.20 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