This guide walks you through installing ct and using it to browse your Claude Code transcripts.
- Go 1.21+ — Required for installation
- Claude Code — You need existing session transcripts in
~/.claude/projects/
go install github.com/robertguss/claude-transcripts@latestThis installs the ct binary to your $GOPATH/bin (usually ~/go/bin). Make sure this directory is in your PATH.
git clone https://github.com/robertguss/claude-transcripts.git
cd claude-transcripts
go build -o ct .ct --versionList all Claude Code projects with transcripts:
ct listOutput shows projects by their directory names:
my-web-app 3 sessions Modified: 2h ago
backend-api 12 sessions Modified: 1d ago
side-project 1 session Modified: 3d ago
ct list my-web-appShows all sessions with metadata:
abc12345 "Add authentication flow" 45 messages 2h ago
def67890 "Fix database connection" 23 messages 1d ago
Export a project's transcripts to readable markdown:
ct convert my-web-app -o ./transcriptsCreates markdown files with YAML frontmatter:
./transcripts/
└── my-web-app/
├── abc12345-add-authentication-flow.md
└── def67890-fix-database-connection.md
For ongoing use, sync all projects incrementally:
ct sync -o ./transcriptsThis converts all projects at once, skipping files that already exist. Use --prune to remove orphaned files:
ct sync -o ./transcripts --pruneCreate a backup of all your raw transcript files:
ct backup -o ~/backups/claudeThis copies the entire ~/.claude/projects/ directory, preserving the original structure. Useful before system updates or for portable storage.
Browse all your transcripts in a full-screen interface:
ctNavigation:
j/kor↑/↓— Move up/downh/lor←/→— Switch panelsEnter— Select itemf— Toggle fullscreen previewe— Open in editor/— Searchq— Quit
Claude Code saves session data in:
~/.claude/projects/<hashed-directory-name>/
├── sessions-index.json # Metadata for all sessions
└── <session-id>.jsonl # Individual conversation logs
Each .jsonl file contains the raw conversation as JSON lines. The ct tool reads these files and converts them to human-readable markdown.
- Command Reference — Full documentation of all commands
- Troubleshooting — Solutions for common issues