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
- Run
npm ciin the Threadport checkout. - Run
npm run build. - Run
node dist/src/cli.js extract --from claude --session ./session.jsonl --project .and note the output path it prints. - Run
node dist/src/cli.js validate /path/printed/by/extract.json. - Run
node dist/src/cli.js handoff --to codex /path/to/capsule.json --format json --out ./handoff.json, then runnode 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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer