DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to hand off a Claude session to Codex through the CLI with Threadport

Extract a Capsule from a Claude session file and write a Codex handoff file with the handoff command.

Short answer: Run npm ci in the Threadport checkout; then run npm run build; run node dist/src/cli.js extract --from claude --session ./session.jsonl --project . and note the output path it prints. All steps.

Credentials. The extracted Capsule may contain code excerpts and paths from the session; the README says to inspect artifacts before sharing them.

Who it is forA developer or automation script that needs a validated, file-based handoff from a Claude session to Codex without opening the workbench.

The problemMoving a task between agents usually means copying chat text by hand, which loses the observed state and invites mistakes.

The outcomeYou get a Capsule JSON file, a validated Codex handoff JSON file, and a clear confirmation that both files passed validation.

What you need first

  • Node.js 24 or newer (the README requires Node >=24.0.0 for this checkout)
  • A local clone of Frankie-Xu/threadport with npm available
  • Local Claude or Codex session logs, or a Cursor Copy Transcript export saved as UTF-8 text
  • The target Agent (Claude or Codex) installed locally if you want to launch a continuation

Steps

  1. Run npm ci in the Threadport checkout.
  2. Run npm run build.
  3. Run node dist/src/cli.js extract --from claude --session ./session.jsonl --project . and note the output path it prints.
  4. Run node dist/src/cli.js validate /path/printed/by/extract.json.
  5. Run node dist/src/cli.js handoff --to codex /path/to/capsule.json --format json --out ./handoff.json, then run node dist/src/cli.js validate --handoff ./handoff.json.

Prompt for your agent

Using the Frankie-Xu/threadport repo after `npm ci` and `npm run build`, extract a Capsule from <session-file> with --from claude and --project <project-directory>, then create a Codex handoff at <handoff-path>. Report both printed output paths and confirm that `node dist/src/cli.js validate --handoff <handoff-path>` succeeds.

Caveat. The CLI validates before writing and does not run next_action, but the README warns that secret scanning is heuristic and does not guarantee removal of all credentials.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for Frankie-Xu/threadport and "Hand off a Claude session to Codex through the CLI"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer