Skip to main content

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 messages
  • w - Show assistant (Claude) messages
  • s - Show session summaries
  • h - Show hook executions
  • m - Show metadata (uuid, sessionId, version, etc.)
  • c - Show command-related messages
  • y - Show all system messages
  • t - Show full tool details without truncation
  • o - Show tool executions
  • e - Show all error details and warnings
  • r - Show API request IDs
  • f - Show parent/child relationships
  • u - Show all content without truncation
  • d - Show performance metrics and token counts
  • p - Show working directory (cwd) for each message
  • l - Show message level/priority
  • k - Show sidechain/parallel messages
  • v - Show user type for each message
  • a - Enable all options

Uppercase letters disable options:

  • aH - Enable all except hooks
  • Aqw - 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 backgrounds
  • light - Optimized for light/white terminal backgrounds
  • solarized-dark - Solarized dark color scheme
  • solarized-light - Solarized light color scheme
  • dracula - Dracula color scheme
  • nord - Nord color scheme
  • mono - No colors (monochrome)
  • high-contrast - Maximum contrast for accessibility

Set a default theme using:

  • Environment variable: export CLAUDECONVO_THEME=light
  • Config file: Create ~/.claudeconvorc with {"theme": "light"}

Configuration

Create a ~/.claudeconvorc file to set persistent preferences:

{
  "theme": "light",
  "default_show_options": "qwo"
}

Configuration priority (highest to lowest):

  1. Command-line arguments
  2. Environment variables
  3. Config file (~/.claudeconvorc)
  4. 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.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. 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

claudeconvo-0.1.0.tar.gz (41.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claudeconvo-0.1.0-py3-none-any.whl (45.2 kB view details)

Uploaded Python 3

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

Hashes for claudeconvo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 92c5b2d8cb297ae6c1a5e230bb91742c84246478a9742bad57ec13b481aab294
MD5 dcb5981c155a215718524c658f83a269
BLAKE2b-256 403e369d06322454dc0aef4a0057b4974398670e020548a24c3d747203c62d76

See more details on using hashes here.

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

Hashes for claudeconvo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00a9761ff57efa8524394c493f758f67a84c566188e5b87ffd8d18a57af9125e
MD5 acda98c4381a37a6b96a31c0aa0a6616
BLAKE2b-256 fe67748272c2550f0dd01b458ae3a5e0330ab2d0613f81630c50986a70f03e7c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page