Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/0xuxdesign/ai-codebase-boilerplate/review-codexgit clone --depth 1 https://github.com/0xUXDesign/ai-codebase-boilerplateWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/0xuxdesign/ai-codebase-boilerplate/review-codex)<a href="https://agentmods.dev/commands/0xuxdesign/ai-codebase-boilerplate/review-codex"><img src="https://agentmods.dev/badge/commands/0xuxdesign/ai-codebase-boilerplate/review-codex.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00016 | $0.01834 |
| Opus 5 | $0.00008 | $0.00917 |
| Sonnet 5 | $0.00003 | $0.00367 |
| Haiku 4.5 | $0.00002 | $0.00183 |
Grade A, and why
review-codex scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
Call the Chat Completions API via curl. Use the Bash tool's `timeout` parameter (300000ms / 5 minutes). How it starts
The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are orchestrating an adversarial security review of the current branch using an OpenAI model. Claude hydrates the prompt with codebase context, then dispatches to a different model for a cold-start review — different model, different blind spots.
Phase 0: Prerequisites
Run these checks sequentially. Stop at the first failure.
-
Check if
OPENAI_API_KEYis set:echo "${OPENAI_API_KEY:+set}"If NOT set, print:
review-codex: OPENAI_API_KEY not set. To use this command: export OPENAI_API_KEY=sk-... Or add it to your shell profile (~/.zshrc, ~/.bashrc). This command requires an OpenAI API key to dispatch reviews to a different model.STOP.
If set:
API_BASE="https://api.openai.com/v1"MODEL="gpt-4.1"(or override withREVIEW_CODEX_MODELenv var if set)- Print:
Backend: OpenAI API (direct)
-
Get the diff stat:
git diff main --statIf empty (no changes vs main), print:
review-codex: No changes to review (branch matches main).STOP.
-
Print header:
Review-Codex: <branch> @ <directory> (<model>)Use
git branch --show-currentandpwdfor the values.
Phase 1: Gather Context
Collect all of the following. Run independent steps in parallel where possible.
1a. Git data
git diff main— full diff (save to variable for Phase 2)git diff main --name-only— affected file list
1b. Codebase reconnaissance (best-effort)
Search the codebase for context about the changed areas:
- Read
CLAUDE.mdif it exists — extract architecture section and any security rules - For the most-changed files, read surrounding context (imports, module structure)
- If Pharaoh MCP tools are available, use
get_codebase_mapandget_blast_radiuson the most-changed functions
1c. Large diff handling
If the diff exceeds 2000 lines:
- Filter to only security-relevant files: anything in paths containing
auth,crypto,db,api,middleware,config,token,session,oauth,webhook,secret,key,password,login,permission,tenant,admin, or handler/route files. - Print a note:
Large diff (N lines). Filtered to M security-relevant files. Run on a smaller branch for full coverage. - Use the filtered diff for the prompt.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 202 lines · 16 tokens per session scan A d8bc29c12641
review-codex is a command published in the GitHub repository 0xUXDesign/ai-codebase-boilerplate (11 stars, last pushed 5mo ago), licensed MIT. It adds 16 tokens to every session and 1,834 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
create-architecture
Create architecture solution design decisions for AI agent consistency. Use when the user says ""lets create architecture"" or ""create technical architecture"" or ""create a solution design"".
quick-spec
Very quick process to create implementation-ready quick specs for small changes or features. Use when the user says ""create a quick spec"" or ""generate a quick tech spec"".
brainstorming
Facilitate interactive brainstorming sessions using diverse creative techniques and ideation methods. Use when the user says ""help me brainstorm"" or ""help me ideate"".
teach-me-testing
Teach testing progressively through structured sessions. Use when user says ""lets learn testing"" or ""I want to study test practices"".
index-docs
Generates or updates an index.md to reference all docs in the folder. Use if user requests to create or update an index of all files in a specific folder.
act
Execute the implementation plan with TDD.