Bugx — Security skill for Claude Code
AI code-audit agent inside Claude Code, Codex, Cline, OpenCode & ZCode — coverage ledger, reproducible findings, hash-chained evidence.
How to install Bugx
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Bencibr/bugx and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Bugx does
AI code-audit agent inside Claude Code, Codex, Cline, OpenCode & ZCode — coverage ledger, reproducible findings, hash-chained evidence. AI 代码审计 Agent,装进你现有的 AI 编程助手。
Alternatives in Security
README
中文 · English
BugX — AI 代码审计 Agent(AI Code Audit Agent)
BugX 是一款装在 AI 编程助手里的代码审计 Agent。**写完功能或提 PR 时让它跑一遍,它会自动完成审计,然后告诉你:查了哪些地方、哪些还没查、哪有漏洞——每个漏洞都附一条你能亲手复现的命令。** 目前已适配宿主:Claude Code、Codex、Cline、OpenCode、ZCode;其余宿主持续适配中。 静态分析、行为差分、内存检查与 UI 无障碍审计全部本地执行;通过 MCP 接入宿主,审计过程可断点续跑、逐条可复查。
🌐 官网:**https://bugx.dev**
目录
它解决什么问题?
AI 写代码的速度,早就超过人眼审代码的速度。更麻烦的是,模型还藏着一个问题:爱偷懒。这不是它坏,是训练方式决定的,三条机制叠在一起:
- 打分偏好: 模型训练的最后一步,是让人类评分员给回答打分。一个版本说"我仔细查过了,没发现问题",另一个说"这个文件我还没看完"——评分员多半给前者高分,因为听着踏实、有用。模型由此学会:报喜不报忧才拿分。
- 成本不对等: 检查代码是体力活,几百个文件得一个个读;回一句"没发现问题"只要几个字。两条路摆在那,省事的那条永远更划算。
- 不知道"没查完": 模型既不知道哪块没查,也没被教过怎么说。所以它给不出"部分完成",只会给你"完成"。
Bugx的审计能依靠账本和四条规矩实现:
- 代码覆盖清单 项目拆成一个个审计单元,每个都有明确状态:查完了、卡住了、还没查。达到全面覆盖。
- 漏洞问题复现 同一段攻击输入跑两次,两次都能真的把漏洞触发出来;换成正常输入再跑一次,什么也触发不出。这三份记录都留在案,漏洞才算数。
- 排查可以续杯 退出AI工具后再次打开可以接着干之前的活儿。
- 记录全部可查 谁、什么时候、凭什么下的结论,一笔一笔记进账本,每页盖骑缝章(哈希链),谁也改不了,逐条可查。
快速开始
Python `>=3.11`;用 npm 封装时需要 Node.js `>=18`。 Pip安装
# 任选其一
python -m pip install b
Related Skills
Secure Plugin Installer
Audit and gate third-party Claude Code plugins / OpenClaw skills before enabling them: capability enumeration,
Mati
Your agent keeps 'fixing' the line that's deliberate. mati denies the read or edit until it has read why: Clau
Agentic Usage Analysis
Skill + toolkit: audit how AI coding agents (Codex, Claude Code, OpenCode, OMP, ZCode, ...) worked on a repo —
Threat Model Skills
Agent Skills that draft STRIDE threat models for OWASP Threat Dragon, turn them into security requirements, an
Buster Claw
A macOS desktop app that gives your own Claude Code, Codex or OpenCode agent hands: a browser it can drive, yo
Loxodonta
A tamper-evident security record for AI agents. Every tool call leaves a hash-chained receipt, and one command
Related Agents
Paf Reviewer
Runs one phone-a-friend relay or review command in the background and reports back a receipt plus the findings
Esk Auditor
Audits a repo, a system, or a claim and reports findings backed by measurable, reproducible, sourced evidence.
Longrun Auditor
Read-only audit of a longrun run after a compaction or at a milestone. Checks ledger coverage, effort by tier,