transcript-export
Claude Code-style session files live in ~/.claude/projects/<project>/: <session-id>.jsonl is the main transcript. Beside it is a <session-id>/ directory holding tool-results/ (oversized tool outputs) and subagents/ (sub-agent transcripts, if any were spawned).
The script renders the main transcript and every sub-agent .jsonl to HTML with claude-replay, writing <name>.html beside each <name>.jsonl, then zips the lot to /mnt/user-data/outputs/transcript-export.zip. Run it as is:
bash "$(ls -1dt /mnt/skills/*/transcript-export ~/.claude/skills/synced/*/transcript-export 2>/dev/null | head -1)/export.sh"
Rendering needs npx and the npm registry. If a render fails, the script prints why and zips that transcript without its HTML. It never skips the zip.
Then call SendUserFile on /mnt/user-data/outputs/transcript-export.zip with display: attach. Reply in one or two lines:
- it is a snapshot as of now, so turns after the export are not included;
- each
.htmlopens in a browser as a replay; ⏭ (skip to end) shows the whole conversation at once; - mention if no
subagents/entries appeared (none were spawned), and name any transcript that failed to render.