Continue your conversation in another coding agent.
English | 日本語 | 简体中文 | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Português (Brasil) | Русский | मराठी | தமிழ்
txcript is a library for converting agent sessions. Start a conversation in Claude Code and continue it in Codex, carrying over messages, reasoning, and tool history where the target supports them.
Build session search, viewers, and editors against one transcript model. txcript handles the agent-specific formats, with a Rust API, a JavaScript package, and a CLI.
Try the CLI · Use the library · Supported agents · Share with your team · Documentation
Download a binary for macOS, Linux, or Windows from Releases, or install from source with Rust 1.96 or newer:
cargo install --git https://github.com/skillsynchq/txcript txcript-cli --lockedWith Nix, run it without installing anything, or install it for real:
nix run github:skillsynchq/txcript -- list
nix profile install github:skillsynchq/txcriptFind a Claude Code session and continue it in Codex:
txcript list --from claude_code
txcript continue <session-id> --with codexUse an ID from the list; an unambiguous prefix works too. txcript writes a new native session and launches Codex in the recorded working directory. The source session is kept. Have the target agent installed and signed in before continuing.
Other ways to work with your sessions:
txcript query "relay bug" # search local session history
txcript view <session-id> # read a conversation in the terminal
txcript crop <session-id> # edit or trim history into a new copy
txcript export <session-id> --out run.jsonMove run.json to another machine and continue it with txcript continue ./run.json --with claude_code. Bring the project files separately.
Run txcript mcp to let an MCP client list, search, and read past sessions. Its tools are read-only. See the CLI reference for filters, message ranges, and shell integration.
cargo add txcriptConvert a Claude Code transcript into Codex's native format:
use txcript::harness::{claude_code::ClaudeCode, codex::Codex};
use txcript::{TextCodec, convert};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let input = std::fs::read_to_string("session.jsonl")?;
let source = ClaudeCode::from_text(&input)?;
let target = convert::<ClaudeCode, Codex>(&source)?;
std::fs::write("rollout.jsonl", Codex::to_text(&target)?)?;
Ok(())
}Use Store implementations to discover, load, and save sessions in an agent's own storage. Convert to Transcript<Common> to search, crop, or render conversations through the same API across agents. See the Rust API and examples.
npm install txcriptimport { convert } from "txcript";
import { readFileSync, writeFileSync } from "node:fs";
const input = readFileSync("session.jsonl", "utf8");
const output = convert(input, "claude_code", "codex");
writeFileSync("rollout.jsonl", output);The package includes prebuilt WebAssembly for Node and Bun. It converts and searches session text in memory; your application handles files and storage. See the JavaScript reference.
Each name links to its format documentation. Use the ID with --from and --with.
| Agent | ID | Read from | Continue into |
|---|---|---|---|
| Claude Code | claude_code |
Yes | Yes |
| Codex | codex |
Yes | Yes |
| OpenCode | opencode |
Yes | Yes |
| Cursor CLI | cursor |
Yes | Yes |
| Cursor desktop | cursor_desktop |
Yes | Yes |
| pi | pi |
Yes | Yes |
| Campfire | campfire |
Yes | Yes |
| Cowork | cowork |
Yes | Yes |
| Grok CLI | grok |
Yes | Yes |
| Grok Bot | grok_bot |
Yes | Via local gateway |
| fx | fx |
Yes | Yes |
| Antigravity | antigravity |
Yes | Yes |
| Hermes Agent | hermes |
Yes | No |
| Amp | amp |
Yes | No |
| Claude Chat | claude_chat |
Live account | No |
| ChatGPT | chatgpt |
Live account | No |
Local discovery skips the live accounts. Select --from claude_chat or --from chatgpt explicitly to read them. These sources use private web APIs and reuse an existing app login; requirements and limitations are in their linked docs.
An agent without a native adapter can emit Simple, txcript's interchange JSON. Save a document like this as run.json:
{
"messages": [
{ "role": "user", "content": "Find why the tests fail." },
{ "role": "assistant", "content": "The test clock is using local time." }
]
}txcript continue ./run.json --with claude_codeSimple also represents reasoning, tool calls, results, images, and metadata. It is the format txcript export writes.
Publish a session so colleagues can read it, and list what they published:
txcript push <session-id> # publish; prints the slug
txcript list --from share # everyone's published sessions
txcript pull <slug> --with codex # continue someone else's workThis needs a share service, which you host. Two options: a Cloudflare Worker over R2, or a single binary you run yourself over the filesystem or any S3-compatible bucket. Both enforce the same rule — publish your own, read everyone's, modify only your own — through one implementation of the rules with no I/O, so it is tested as a pure function rather than against a server.
Transcripts carry working-directory paths, branch names, and tool output, so a service must have something authenticating in front of it; HTTPS alone leaves them readable by anyone with the URL. Cloudflare Access is the documented gate, and the service verifies its assertion itself rather than trusting a header.
There is a third option if everyone already has credentials for one bucket:
publish straight to S3, with no service to run at all. Ownership is then
enforced by the bucket's access rules, and txcript s3-policy prints the IAM
policy each publisher needs:
nix profile install github:skillsynchq/txcript#txcript-s3
# Print the policy, then attach it to the identity that publishes
txcript s3-policy --bucket my-bucket --owner alice > policy.json
export TXCRIPT_SHARE_BUCKET=my-bucket
export TXCRIPT_SHARE_OWNER=alice # the one prefix this identity may write
txcript push <session-id>Give every publisher their own owner prefix: the condition on writes is the only thing enforcing ownership here, so a wider policy lets any publisher overwrite any other's transcripts.
See Deploying a share service.
The common model represents messages, reasoning, tool calls and results, images, metadata, and token usage. What survives conversion depends on what the source records and the destination can represent. Agent-specific records and unsupported fields can be lost.
Conversion carries conversation history. The destination supplies its own system instructions and tools, and project files must be available separately. Native load/save and conversion have different preservation guarantees; see each format's caveats.
- CLI reference: commands, search, cropping, MCP, and shell integration.
- Rust API and JavaScript reference.
- Deploying a share service: publish and read sessions across a team, on Cloudflare or your own host.
- Transcript formats: storage layouts, mappings, and limitations, with sources and reverse-engineering notes.
- Development and test guide.
- Contributing · Report a security vulnerability.
- Changelog · Report an issue.
