Borrowing it
Nothing to install: this file belongs to AIOSAI/AIPass. 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/AIOSAI/AIPass/main/.claude/commands/codex.mdgit clone --depth 1 https://github.com/AIOSAI/AIPassWrote 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/aiosai/aipass/codex)<a href="https://agentmods.dev/commands/aiosai/aipass/codex"><img src="https://agentmods.dev/badge/commands/aiosai/aipass/codex/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/commands/aiosai/aipass/codex"><img src="https://agentmods.dev/badge/commands/aiosai/aipass/codex.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.00000 | $0.01060 |
| Opus 5.5 | $0.00000 | $0.00424 |
| Sonnet 5.5 | $0.00000 | $0.00212 |
| Haiku 4.5 | $0.00000 | $0.00106 |
Grade A, and why
codex 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 today.
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 — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Switch to Codex
Purpose: move this chat from Claude Code to Codex in one turn, in this same terminal. It is still you: memories saved, the live thread written down, Codex opens where you stood. Works like a compaction, except the next model reads the summary.
Workflow: /codex → prep → handoff written → this pane becomes Codex, greeting it with the handoff.
Execution
-
Pin the live thread FIRST — one sentence: what this chat was doing when
/codexfired (the task, question or build mid-flight; "nothing in flight" counts). It becomes the Resuming line. -
Prep, compact form. Do the memory steps of
.agents/skills/prep/SKILL.md(session entry, key learnings, todos reconciled, observations if any) and update any plan this chat touched. Skip the compass review and the git suggestion; note uncommitted files in the handoff instead. -
Write the handoff to
.ai_mail.local/handoff.md(untracked, beside the session pointer). Overwrite; one file, the latest switch. The whole file is the first prompt Codex receives, so write it to the next model, in this shape:Hi. You are <branch>, the same citizen, continuing a chat that just moved from Claude Code to Codex on the user's /codex. Run your startup protocol first (memories one file per call, dashboard refresh, inbox), then read this handoff and pick up the Resuming line. Say in one line that you are here and what you are on; no recap. ## Handoff from Claude Code, <date time> Primary request and intent: what the user asked for, in their words where it matters. Decisions made: rulings, with who made them. Files touched: paths; which are committed, which are not. In flight: dispatches out (ids), sub-agents, background work, open mails. Errors met and how they ended. Current work: where exactly the chat stood. Resuming: the step-0 line, then the next concrete action.Facts only, no praise, no narration. Under 2,500 words. The next model has your memories; the handoff carries what memories do not: the live thread.
-
Switch. Run, with the Bash tool:
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.
- today Changed b5154f128b62
- yesterday First seen · 41 lines · 0 tokens per session scan A 21838ca76f65
codex is a command published in the GitHub repository AIOSAI/AIPass (306 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,060 tokens. 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-10-27.
Other commands, from other repositories
squad-manager
Protocolo central que rege o trabalho da squad multi-agente DotAgents. Sempre ativo.
dot-agent-bootstrap
Executa a calibração inicial da squad no repositório — varre o código e popula as memórias raiz. Exceção de protocolo (setup-time, fora do SDLC).
dot-agent-deploy
Deploy, release ou gestão de dependências — pré-classifica como 🚀 e entra pelo Ops com o gate completo.
dot-agent-fix-bug
Reportar e corrigir um bug — pré-classifica como 🐛 Bug e entra no pipeline pelo Tech Lead (triage).
dot-agent-architecture-review
Revisão arquitetural ou refatoração — pré-classifica como 🏛️ Arquitetura/Refactor e entra pelo Architect.
dot-agent-new-feature
Iniciar uma nova feature — pré-classifica como 🆕 Feature e entra no pipeline do Manager pelo Product Owner.