Borrowing it
Nothing to install: this file belongs to softcane/codex-blackbox. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/softcane/codex-blackbox/main/AGENTS.mdgit clone --depth 1 https://github.com/softcane/codex-blackboxWrote 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/instructions/softcane/codex-blackbox/agents-md)<a href="https://agentmods.dev/instructions/softcane/codex-blackbox/agents-md"><img src="https://agentmods.dev/badge/instructions/softcane/codex-blackbox/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/softcane/codex-blackbox/agents-md"><img src="https://agentmods.dev/badge/instructions/softcane/codex-blackbox/agents-md.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.01559 | $0.01559 |
| Opus 5.5 | $0.00624 | $0.00624 |
| Sonnet 5.5 | $0.00312 | $0.00312 |
| Haiku 4.5 | $0.00156 | $0.00156 |
Grade B, and why
codex-blackbox AGENTS.md scanned grade B 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 2mo 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
- Do not mutate `~/.codex/config.toml` for wrapper behavior. How it starts
The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Codex Blackbox Agent Instructions
These instructions apply to the whole repository unless a deeper AGENTS.md
overrides them.
Product Boundary
- Codex Blackbox observes Codex traffic through a local Envoy proxy,
codex-blackbox-core, and thecodex-blackboxCLI. - Fake OpenAI Responses fixtures validate local contracts only. Do not turn a fake e2e result into a live Codex support claim.
- Live support claims require explicit real smoke or dogfood evidence.
- Prefer the current code and tests over stale copied comments or old planning text.
Implementation Map
- Architecture and harness map:
ARCHITECTURE.md,docs/index.md,docs/harness.md - Request parsing:
codex-blackbox-core/src/codex_request.rs - Response SSE accumulation:
codex-blackbox-core/src/codex_response.rs - Turn accounting:
codex-blackbox-core/src/codex_accounting.rs - Pricing:
codex-blackbox-core/src/pricing.rs - Runtime, persistence, hooks, and Envoy ext_proc:
codex-blackbox-core/src/main.rs - Watch event types:
codex-blackbox-core/src/watch.rs - Metrics:
codex-blackbox-core/src/metrics.rs - CLI wrapper, preflight, watch rendering:
codex-blackbox-cli/src/main.rs
Worktree Rules
- For multi-step work, use
docs/PLANS.mdand keep active plans indocs/exec-plans/active/. - Read the code path and nearby tests before changing behavior.
- Use
rg/rg --filesfor searches. - Check
git status --shortbefore and after meaningful edits. - Do not revert or overwrite user changes.
- Keep changes scoped to the requested behavior and surrounding module.
- Use
apply_patchfor manual edits. - Update tests and user-facing docs when behavior changes.
Codex Routing
codex-blackbox run -- codex ...uses the experimental ChatGPT subscription proxy path.- The default Envoy listener routes
/backend-apitochatgpt.com. - Codex model turns use command-line config overrides:
chatgpt_base_url,openai_base_url,model_provider="openai", andfeatures.enable_request_compression=false. - Do not mutate
~/.codex/config.tomlfor wrapper behavior. - Do not inject
--ephemeral; Codex keeps normal session persistence. - Remove inherited parent-session
CODEX_*variables listed in the CLI before spawning child Codex processes. OPENAI_API_KEYis not used for ChatGPT subscription proxy mode.- A successful
codex execchild run must still fail the wrapper ifcodex-blackbox-coreobserves no newprovider="codex_responses"request.
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.
- 2mo ago First seen · 148 lines · 1,559 tokens per session scan B 932d3135f156
codex-blackbox AGENTS.md is an instructions file published in the GitHub repository softcane/codex-blackbox (6 stars, last pushed 5mo ago), licensed MIT. It adds 1,559 tokens to every session, about $0.0062 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
codex-blackbox AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codex-blackbox AGENTS.mdsoftcane/codex-blackbox | Instructions file | 6 | 5mo ago | MIT | B | 1,559 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |