AIPass: Command for Claude Code

.claude/commands/codex.md

codex is a command for Claude Code from AIOSAI/AIPass. It costs 0 tokens per session (1,060 once invoked), scanned A, original, MIT.

A command that hands the current conversation from Claude Code to Codex in the same terminal. It saves a compact summary and writes a handoff so Codex can continue the work.

In plain words
What is it for?
Use it when the user asks to switch to Codex. It prepares the session, writes the handoff file, and replaces the current pane with Codex.
Why use it?
It prevents context from being lost when moving between coding agents. The handoff records the current task, relevant memories, open tasks, and uncommitted files.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents; positional $N argument; mentions Claude Code.

This is AIOSAI/AIPass's own configuration. It tells Claude Code how to work on AIPass itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything AIPass configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/AIOSAI/AIPass/main/.claude/commands/codex.md
Clone the repo
git clone --depth 1 https://github.com/AIOSAI/AIPass

Made for: Claude Code.

Wrote 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.

agentmods badge for codex

README.md
[![agentmods](https://agentmods.dev/badge/commands/aiosai/aipass/codex/github.svg)](https://agentmods.dev/commands/aiosai/aipass/codex)
Your own site
<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.

agentmods 80×15 button for codex

Your own site · 80×15
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,060 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured today against content hash b5154f128b62, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.claude/commands/codex.md · 41 lines

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

  1. Pin the live thread FIRST — one sentence: what this chat was doing when /codex fired (the task, question or build mid-flight; "nothing in flight" counts). It becomes the Resuming line.

  2. 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.

  3. 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.

  4. Switch. Run, with the Bash tool:

Read the full file on GitHub · 41 lines

Changes

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.

  1. today Changed b5154f128b62
  2. yesterday First seen · 41 lines · 0 tokens per session scan A 21838ca76f65

Subscribe to this mod's changes

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.