Extract conversation transcripts from AI coding sessions.
I built this because documenting AI-assisted development in PRs is valuable but annoying to do by hand. See clawdbot/clawdbot#763 for an example of what good "prompt history" documentation looks like — and why I didn't want to format that manually ever again.
| Platform | Session Location |
|---|---|
| Clawdbot | ~/.clawdbot/agents/main/sessions/*.jsonl |
| Claude Code | ~/.claude/projects/<project>/*.jsonl |
| Codex | ~/.codex/sessions/YYYY/MM/DD/*.jsonl |
Format is auto-detected.
# Basic extraction (latest session for current platform)
./skills/prompt-log/scripts/extract.sh
# Explicit session file
./skills/prompt-log/scripts/extract.sh <session-file>
# Custom output file
./skills/prompt-log/scripts/extract.sh --output my-transcript.mdOutput defaults to .prompt-log/ directory to keep transcripts tidy in project folders.
# Clawdbot - recent sessions
ls -lt ~/.clawdbot/agents/main/sessions/*.jsonl | head -10
# Claude Code - project sessions
ls -lt ~/.claude/projects/*/*.jsonl | head -10
# Codex - recent sessions
find ~/.codex/sessions -name "*.jsonl" -mtime -7 | head -10
# Search all for a keyword
grep -l "keyword" ~/.clawdbot/agents/main/sessions/*.jsonl 2>/dev/nullSee examples/building-prompt-log.md for a real transcript — it's the conversation where this tool was built.
MIT