Remote script. The agent fetches and follows a procedure from a remote URL, so review the linked steps before letting it run commands on your machine.
Who it is forA developer working inside Claude Code or Codex who wants the agent to run the migration with a fixed, tested procedure.
The problemWriting the exact migration commands and checking their output by hand takes time and invites small mistakes.
The outcomeThe coding agent follows the published procedure, runs the transfer for the chosen session, and reports the new target session.
What you need first
- Linux with Python 3.11+ (the README lists these as the currently supported platform)
- uv or pipx to install the CLI
- A native session file from the source client, such as a Claude Code JSONL transcript
- The target client installed locally, for example Codex, to resume the migrated session
Steps
- Pick the source client, the target client, and the session UUID or title.
- Open the project website at https://session-migrate.github.io/ to choose the route.
- Give your coding agent this instruction, replacing the bracketed values: "Follow https://session-migrate.github.io/llms.txt to migrate a session from
[SOURCE]to[TARGET]. Session:[UUID OR TITLE]" - Read the agent's report and confirm the new target session identifier.
- Resume the migrated session in the target client.
Prompt for your agent
Follow https://session-migrate.github.io/llms.txt from the xhluca/session-migrate project to migrate the session <UUID OR TITLE> from <SOURCE> to <TARGET>. Report the new session identifier and the manifest summary. Verify that the report states the source session was not modified and lists any omitted data.
Caveat. The README says the linked procedure is sandbox-tested with Claude Code and Codex only, so other agents may need closer supervision.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for xhluca/session-migrate and "Have a coding agent run the migration for you"
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