handoff

handoff is a skill for Claude Code from Amal-David/claude-to-codex. It costs 59 tokens per session (452 once invoked), scanned A, original, MIT.

A handoff tool that packages the active Claude Code session, recent decisions, and Git state before opening Codex.

In plain words
What is it for?
For switching an unfinished coding task from Claude Code to Codex, choosing a model, and using print or other recovery options if automatic launch fails.
Why use it?
It preserves the information needed to continue work when Claude reaches usage or context limits or when you change models.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SESSION_ID} variable. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Part of the claude-to-codex plugin — 1 skill, 1 command, 3 agents shipped together

Good fit For switching an unfinished coding task from Claude Code to Codex, choosing a model, and using print or other recovery options if automatic launch fails.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/amal-david/claude-to-codex/handoff
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Amal-David/claude-to-codex --skill handoff
Clone the repo
git clone --depth 1 https://github.com/Amal-David/claude-to-codex

Made for: Claude Code.

Or install claude-to-codex, the plugin that ships this one along with the rest of its 1 skill, 1 command, 3 agents.

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 handoff

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/amal-david/claude-to-codex/handoff"><img src="https://agentmods.dev/badge/skills/amal-david/claude-to-codex/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 452 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.00059 $0.00452
Opus 5 $0.00030 $0.00226
Sonnet 5 $0.00012 $0.00090
Haiku 4.5 $0.00006 $0.00045

Measured 8d ago against content hash b5682fbc0329, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

handoff 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/claude-to-codex.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/claude-to-codex/skills/handoff/SKILL.md · 44 lines

What it actually says

Handoff

Run the bundled launcher immediately. Do not manually summarize or paste the transcript into Codex.

For a Skills CLI installation, locate scripts/claude-to-codex.mjs beside this SKILL.md and run:

node <skill-directory>/scripts/claude-to-codex.mjs --session "${CLAUDE_SESSION_ID}"

Common skill directories are:

  • $HOME/.claude/skills/handoff
  • <project>/.claude/skills/handoff
  • $HOME/.agents/skills/handoff

Require a non-empty CLAUDE_SESSION_ID; do not silently choose the newest transcript. The launcher writes a private package under ~/.claude/handoffs, resolves the target model from CLAUDE_TO_CODEX_MODEL or Codex config, and dispatches Codex when a supported launcher is available. Relay the launcher result and manual fallback command exactly.

The Claude Code plugin provides the deterministic namespaced command:

/claude-to-codex:handoff

Maintainers can use the direct Node CLI for recovery options such as --mode print, --codex-model, --handoff-reason, --session, --latest, --transcript, --tail, --check, or --codex-subagents:

node plugins/claude-to-codex/skills/handoff/scripts/claude-to-codex.mjs --mode print --latest --codex-model gpt-5.6-sol

Token rule: pass Codex a bounded pointer prompt plus hot context, handoff manifest, git snapshot, digest, and transcript paths, not a full pasted transcript. Source-model safety/refusal verdicts do not become continuation guidance; Codex assesses the original user request independently.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 44 lines · 59 tokens per session scan A b5682fbc0329

Subscribe to this mod's changes

handoff is a skill published in the GitHub repository Amal-David/claude-to-codex (1 stars, last pushed 1mo ago), licensed MIT. It adds 59 tokens to every session and 452 once invoked, about $0.0003 per session on Opus 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.

Related

Other skills, from other repositories

cross-agent-handoff

Transfer context between AI agent sessions with structured handoff protocols, state serialization, and decision log preservation. Covers multi-agent coordination, context compression, and continuity patterns. Triggers on agent handoff, session transfer, or multi-agent continuity requests.

organvm-iv-taxis/a-i--skills · 53 tokens

typescript-react-nextjs-patterns

Production-grade TypeScript reference for React & Next.js frontend development. Covers type narrowing, component Props, generic hooks, discriminated unions, as const, satisfies, Zod validation, TanStack Query, server/client boundaries, forms, state management, performance, accessibility, debugging, and code review.…

leejpsd/typescript-react-nextjs-patterns · 142 tokens

codex

Delegate coding tasks to OpenAI Codex CLI. Supports presets (turbo/balanced/quality/max) or custom model+effort selection. Use when user wants to leverage GPT-5.5/Codex models for code analysis, refactoring, security audits, or complex transformations. Also covers MCP server management and advanced CLI features.

b1rd33/codex-skill · 72 tokens

git-workflow

This skill should be used when the user asks to "create git commit", "manage branches", "follow git workflow", "use Conventional Commits", "handle merge conflicts", or asks about git branching strategies, version control best practices, pull request workflows. Provides comprehensive Git workflow guidance for team…

Galaxy-Dawn/claude-scholar · 64 tokens

daily-paper-generator

Use when the user asks to generate daily paper digests on a general topic. This skill supports both arXiv and bioRxiv (or either one), then produces structured Chinese/English summaries for selected papers.

Galaxy-Dawn/claude-scholar · 47 tokens

codex-autoresearch

Run autonomous, measurable experiments in a Git repository: change one hypothesis, verify a numeric metric, keep improvements, and revert failures. Use when the user wants Codex to keep iterating toward a numeric target in the foreground or as a detached background run. Do not use for ordinary one-shot coding…

leo-lilinxiao/codex-autoresearch · 80 tokens