Convert Claude Code JSONL sessions to readable markdown transcripts
Project description
Claude Transcript
Convert Claude Code JSONL session files to readable markdown transcripts with the exact same output as the physical-sessions command.
Installation
Install as a tool (recommended)
uv tool install claude-transcript
Install in current environment
uv add claude-transcript
# or
pip install claude-transcript
Usage
# Basic usage
claude-transcript session.jsonl
# Custom output filename
claude-transcript session.jsonl -o custom_name.md
# Upload to GitHub Gist after generation
claude-transcript session.jsonl --upload-gist
# Show help
claude-transcript --help
Features
- Exact output compatibility: Produces the same markdown format as Claude Code's built-in physical-sessions command
- Zero dependencies: Pure Python with no external dependencies
- Comprehensive parsing: Handles all JSONL entry types including tool operations, sidechains, and timing information
- GitHub Gist integration: Optional upload to share transcripts easily
- Tool operations display: Shows detailed information about file edits, searches, and other actions taken during the session
Example Output
The tool generates clean, readable markdown transcripts that include:
- Session metadata and timing information
- Conversational turns with user requests and assistant responses
- Detailed tool operation logs (file edits, searches, bash commands, etc.)
- Parallel task execution details from sidechains
- Professional formatting suitable for documentation or sharing
Requirements
- Python 3.8 or higher
- No external dependencies required
- Optional: GitHub CLI (
gh) for gist upload functionality
Development
This tool is built as a standalone script with PEP 723 inline dependencies, making it easy to run directly with uv run or package as a proper Python package.
License
MIT License - see LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_transcript-1.0.0.tar.gz.
File metadata
- Download URL: claude_transcript-1.0.0.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef807a83c263e8d79d13c9d3b4c0b0c6ea637de196d496ad46ae43758d323cc3
|
|
| MD5 |
cf9a8b09140a5351d6321d4eb22c36e4
|
|
| BLAKE2b-256 |
b3f295b6360b5bd71e0b047d529d5d3de79fb48430a8310a9747abb3830cc1e3
|
File details
Details for the file claude_transcript-1.0.0-py3-none-any.whl.
File metadata
- Download URL: claude_transcript-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fd68c8b5777a9a7b990eb85109f4029b20d78bc05c34c1362d94d7dba529d48
|
|
| MD5 |
69468dea08cdfd97b51c28d1133f3e6a
|
|
| BLAKE2b-256 |
c9cea6c528de016004b4300ba06ae5c102785f54dfb4047c21170bffc1d522b5
|