codex-transfer

codex-transfer is a skill for Claude Code from LeeJuOh/claude-code-zero. It costs 25 tokens per session (1,280 once invoked), scanned A, original, MIT.

A one-way handoff tool that moves the current Claude Code conversation, including its turn history, into Codex as a resumable thread.

In plain words
What is it for?
Use it to continue an existing Claude Code session in Codex. It accepts an optional session file and can return either a summary or raw JSON.
Why use it?
It removes the need to restart work or manually copy the conversation when switching from Claude Code to Codex.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the codex-advisor plugin — 10 skills, 1 agent shipped together

Good fit Use it to continue an existing Claude Code session in Codex. It accepts an optional session file and can return either a summary or raw JSON.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add LeeJuOh/claude-code-zero
Claude Code
/plugin install codex-advisor

Made for: Claude Code.

Or install codex-advisor, the plugin that ships this one along with the rest of its 10 skills, 1 agent.

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-transfer

README.md
[![agentmods](https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/codex-transfer/github.svg)](https://agentmods.dev/skills/leejuoh/claude-code-zero/codex-transfer)
Your own site
<a href="https://agentmods.dev/skills/leejuoh/claude-code-zero/codex-transfer"><img src="https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/codex-transfer/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-transfer

Your own site · 80×15
<a href="https://agentmods.dev/skills/leejuoh/claude-code-zero/codex-transfer"><img src="https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/codex-transfer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,280 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.00025 $0.01280
Opus 5.5 $0.00010 $0.00512
Sonnet 5.5 $0.00005 $0.00256
Haiku 4.5 $0.00003 $0.00128

Measured 9d ago against content hash 3384abc602cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codex-transfer 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 9d 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.

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.

plugins/codex-advisor/skills/codex-transfer/SKILL.md · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codex Session Transfer

One-way handoff. Unlike every other codex-advisor skill, there is no double-check phase — once the transfer completes, work continues in Codex outside Claude Code, so there is nothing left here to classify. The wrapper's job is whitelisting, error taxonomy, and disable-parity — not verification.

Phase 1: Analyze

Whitelist for this skill: --source <path>, --json. Nothing else — transfer has no prompt, so there is no focus text or model/effort to route.

  • --source <path> — explicit Claude session .jsonl to import. Optional; when omitted the companion falls back to the CODEX_COMPANION_TRANSCRIPT_PATH env var, which codex-advisor's own SessionStart hook (hooks/session-start.mjs) sets automatically — whether or not the Official plugin itself is enabled.
  • --json — when the user passes this, show them the raw JSON payload in Phase 3 instead of the friendly summary: add --show-json to the script call. This is independent of the --json the script always passes to the companion, which is for our own parsing.
  • Unrecognized token (any other flag, or free-standing text) → AskUserQuestion. Transfer has no positional argument — the companion silently discards anything it doesn't recognize as --source/--cwd/--json (handleTransfer destructures only options, never positionals), so passing it through would do nothing rather than corrupt a prompt. Still don't forward it: ask what the user meant. If it looks like a task description, suggest /codex-rescue instead — transfer moves the whole session, it doesn't run a task.

Phase 2: Invoke

Single synchronous call — no --wait/--background, no Pattern A/B. The companion's own import timeout is 2 minutes (EXTERNAL_AGENT_IMPORT_TIMEOUT_MS in lib/codex.mjs), so give the Bash tool call itself a timeout comfortably above that (e.g. 150000) — a shorter tool-side timeout could kill the process right at the companion's own deadline and mask its real error message.

Read the full file on GitHub · 79 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. 9d ago Changed · -10 lines · -61 tokens per session 3384abc602cd
  2. 1mo ago First seen · 89 lines · 86 tokens per session scan A 6087728ddf87

Subscribe to this mod's changes

codex-transfer is a skill published in the GitHub repository LeeJuOh/claude-code-zero (52 stars, last pushed 3d ago), licensed MIT. It adds 25 tokens to every session and 1,280 once invoked, about $0.0001 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-30.