Borrowing it
Nothing to install: this file belongs to CodePrometheus/codex-buddy. 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/CodePrometheus/codex-buddy/main/CLAUDE.mdgit clone --depth 1 https://github.com/CodePrometheus/codex-buddyWrote 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/codeprometheus/codex-buddy/claude-md)<a href="https://agentmods.dev/instructions/codeprometheus/codex-buddy/claude-md"><img src="https://agentmods.dev/badge/instructions/codeprometheus/codex-buddy/claude-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/codeprometheus/codex-buddy/claude-md"><img src="https://agentmods.dev/badge/instructions/codeprometheus/codex-buddy/claude-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.01539 | $0.01539 |
| Opus 5.5 | $0.00616 | $0.00616 |
| Sonnet 5.5 | $0.00308 | $0.00308 |
| Haiku 4.5 | $0.00154 | $0.00154 |
Grade A, and why
codex-buddy CLAUDE.md scanned grade A with 0 findings 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 yesterday.
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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
codex-buddy
A macOS CLI to switch between and run Codex CLI accounts in parallel; codex-buddy claude ... also
runs several Claude Code accounts side by side. Logic lives in
crates/core; crates/cli is a thin shell. apps/tray is a SwiftUI menu-bar app (work in
progress) that reuses core through crates/ffi's uniffi bindings — same invariants, same
source of truth, no logic duplicated into Swift.
How it works (the invariant everything rests on)
Each account keeps one real auth.json in ~/.codex-buddy/<alias>/. ~/.codex/auth.json is a
symlink to the active account's file. Switching only repoints that symlink; auth files are never
copied. This sidesteps OAuth refresh-token rotation: a credential exists as exactly one file,
refreshed in place, so there is never a stale copy that would force a re-login.
- Switched (per account;
~/.codex/<entry>symlinks to the active account's copy):auth.json,sessions/,history.jsonl. - Isolated (per account, never shared or linked): all sqlite (
sqlite/dir,*.sqlite*). - Shared (symlinked back to
~/.codex): everything else — config.toml, AGENTS.md, rules, ... - Parallel = run codex with
CODEX_HOME=<account dir>; switch = repoint the switched symlinks.
Hard requirement: codex's cli_auth_credentials_store must be file (keyring / auto / ephemeral
move or delete auth.json and break the scheme). config_check enforces this.
Claude Code accounts (core::claude)
Claude Code keeps its login in the macOS Keychain, keyed to the literal CLAUDE_CONFIG_DIR path
(Claude Code >= 2.1.144), so nothing can be repointed: Claude accounts run in parallel only.
defaultis~/.claude+~/.claude.json, plainclaude; codex-buddy never modifies its login. Managed accounts live in~/.codex-buddy/.claude/<dir>/(the dot keeps them clear of codex aliases), launched with that dir as bothCLAUDE_CONFIG_DIRandCLAUDE_SECURESTORAGE_CONFIG_DIR, with env vars that bypass account login scrubbed.- Claude Code owns login, refresh, and the Keychain; codex-buddy never reads or copies credentials.
The dir never moves (
renamechanges only the alias) — moving it would orphan the login. - Shared: only the
SHARED_ENTRIESallowlist (user config plus conversation history), symlinked to~/.claude; everything else stays per-account, so state a future Claude Code adds defaults to isolated. User-scopemcpServersare mirrored one way from~/.claude.json, written under claude's own.claude.json.lock. - Usage is the
cachedUsageUtilizationclaude writes into each account's.claude.json.
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.
- yesterday Changed · +19 lines · +365 tokens per session 8a22b90c0263
- 2mo ago First seen · 73 lines · 1,174 tokens per session scan A f28c21539d2a
codex-buddy CLAUDE.md is an instructions file published in the GitHub repository CodePrometheus/codex-buddy (2 stars, last pushed 2d ago), licensed MIT. It adds 1,539 tokens to every session, about $0.0062 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
codex-buddy CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codex-buddy CLAUDE.mdCodePrometheus/codex-buddy | Instructions file | 2 | 2d ago | MIT | A | 1,539 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | 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 |