View Claude Code session history as a conversation
Project description
claudeconvo
View Claude Code session history as a conversation
claudeconvo is a command-line utility that loads and displays Claude Code session files stored in ~/.claude/projects/ for the current working directory, formatted as readable conversations with colored output for different speakers and tool executions.
Features
- Display Claude Code conversations with colored, formatted output
- Multiple color themes optimized for different terminal backgrounds
- Filter messages by type (user, assistant, tools, system, etc.)
- Show or hide metadata, tool details, and system messages
- Support for relative and absolute session references
- Rich formatting with proper indentation and line wrapping
- Configuration file support for persistent settings
Installation
Using pip
pip install claudeconvo
From source
git clone https://github.com/lpasqualis/claudeconvo.git
cd claudeconvo
pip install -e .
Usage
Basic Usage
# View the most recent session
claudeconvo
# View a specific session by number
claudeconvo 3
# View previous session
claudeconvo -1
# Watch a session for new entries (tail mode)
claudeconvo -w
# Watch a specific session
claudeconvo -f session-123 -w
Filtering Options
Use single-letter flags to control what content is displayed:
# Show only user and assistant messages (default)
claudeconvo
# Show all content
claudeconvo -a
# Show summaries and metadata
claudeconvo -sm
# Show tool executions with full details
claudeconvo -ot
Available Options
q- Show user messagesw- Show assistant (Claude) messagess- Show session summariesh- Show hook executionsm- Show metadata (uuid, sessionId, version, etc.)c- Show command-related messagesy- Show all system messagest- Show full tool details without truncationo- Show tool executionse- Show all error details and warningsr- Show API request IDsf- Show parent/child relationshipsu- Show all content without truncationd- Show performance metrics and token countsp- Show working directory (cwd) for each messagel- Show message level/priorityk- Show sidechain/parallel messagesv- Show user type for each messagea- Enable all options
Uppercase letters disable options:
aH- Enable all except hooksAqw- Disable all, then enable only user and assistant messages
Color Themes
Choose from multiple color themes optimized for different terminal backgrounds:
# Use light theme for white/light terminals
claudeconvo --theme light
# Use high contrast theme for accessibility
claudeconvo --theme high-contrast
# Disable colors entirely
claudeconvo --no-color
Available themes:
dark(default) - Optimized for dark terminal backgroundslight- Optimized for light/white terminal backgroundssolarized-dark- Solarized dark color schemesolarized-light- Solarized light color schemedracula- Dracula color schemenord- Nord color schememono- No colors (monochrome)high-contrast- Maximum contrast for accessibility
Set a default theme using:
- Environment variable:
export CLAUDECONVO_THEME=light - Config file: Create
~/.claudeconvorcwith{"theme": "light"}
Configuration
Create a ~/.claudeconvorc file to set persistent preferences:
{
"theme": "light",
"default_show_options": "qwo"
}
Configuration priority (highest to lowest):
- Command-line arguments
- Environment variables
- Config file (
~/.claudeconvorc) - Built-in defaults
Help and Available Sessions
# Show help
claudeconvo --help
# List available sessions
claudeconvo --list
# Show what options would display
claudeconvo -?sm
Requirements
- Python 3.8 or higher
- No external dependencies
Development
Setting up development environment
git clone https://github.com/lpasqualis/claudeconvo.git
cd claudeconvo
pip install -e ".[dev]"
Running tests
pytest
Code formatting and linting
black src/
ruff check src/
mypy src/
License
MIT License - see LICENSE file for details.
Author
Lorenzo Pasqualis
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Support
If you encounter any problems or have suggestions, please open an issue.
Project details
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 claudeconvo-0.1.0.tar.gz.
File metadata
- Download URL: claudeconvo-0.1.0.tar.gz
- Upload date:
- Size: 41.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92c5b2d8cb297ae6c1a5e230bb91742c84246478a9742bad57ec13b481aab294
|
|
| MD5 |
dcb5981c155a215718524c658f83a269
|
|
| BLAKE2b-256 |
403e369d06322454dc0aef4a0057b4974398670e020548a24c3d747203c62d76
|
File details
Details for the file claudeconvo-0.1.0-py3-none-any.whl.
File metadata
- Download URL: claudeconvo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 45.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00a9761ff57efa8524394c493f758f67a84c566188e5b87ffd8d18a57af9125e
|
|
| MD5 |
acda98c4381a37a6b96a31c0aa0a6616
|
|
| BLAKE2b-256 |
fe67748272c2550f0dd01b458ae3a5e0330ab2d0613f81630c50986a70f03e7c
|