插件介绍
Quality gate for AI/Codex-generated pull requests: blocks TODO leftovers, leaked secrets, sloppy commits and red CI before they reach main.
项目详情摘要
🤖 Codex Guard Docs site:** An automatic quality gate for AI-generated pull requests.** Stop TODO leftovers, leaked secrets, sloppy commits and red CI from reaching `main` — with zero review bandwidth spent on the obvious stuff. Works with **OpenAI Codex** (cloud & CLI), **Claude Code**, **Copilot**, and any other agent that opens PRs against your repo. 🐕 **Dogfooding:** this repo gates its own AI-generated PRs. See a real failing example on PR #6 and the workflow behind it in `.github/workflows/codex-guard.yml`. Why AI coding agents are great at writing code and terrible at cleaning up after themselves. In practice, agent-written PRs tend to arrive with the same handful of problems: `// TODO: handle this` comments that were never meant to stay Hardcoded API keys and connection strings copied from a chat transcript Commit trails like `WIP`, `fix stuff`, `more changes` — squashed versions of a messy session A green-looking PR that actually has failing CI on the head commit You shouldn't need a human reviewer to catch those every single time. **Codex Guard checks the boring, deterministic things automatically, and only on PRs that look AI-generated** — so human attention goes where it matters. How it works Codex Guard runs on `pull_request`, figures out whether the PR looks agent-generated (via label, branch prefix, or title), and then: Check | What it flags | --- | --- | 🧹 TODO scan | `TODO` / `FIXME` / `XXX` / `HACK` / `WIP` markers on **added lines only** | 🔐 Secret scan | AWS (access + secret keys), GitHub, Google, OpenAI, Anthropic, Slack, Stripe, npm, SendGrid, Telegram, Azure connection strings, JWTs, hardcoded credentials, connection strings (values are redacted in reports) | 💬 Commit hygiene | Subjects that don't match conventional commits, empty subjects | 🧪 CI s
摘自项目公开 README,可能随上游仓库更新。安装方法
建议先在测试 Profile 中安装,并检查权限、安装脚本和依赖。
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Akimiya-z/codex-guard
使用前检查
- 确认项目符合 DSH bundle 规范,而不只是相关仓库。
- 阅读许可证和安装脚本,检查网络、文件及执行权限。
- 备份配置,并确保插件能够安全卸载或回滚。