Pretty formatter for Claude Code stream-json output
Project description
claude-code-pretty
Pretty formatter for Claude Code - stream sessions in real-time or replay saved .jsonl files.
| without claude-code-pretty | with claude-code-pretty |
|---|---|
Features
- stream mode - run claude with pretty output in real-time
- replay mode - replay saved .jsonl session files
- tool display - formatted output for Glob, Grep, Bash, Read, Edit, etc.
- markdown - renders bold and
codewith ANSI styles - subagent depth - visual indentation for nested Task calls
- cost tracking - shows duration, cost, tokens per session
Installation
pip install claude-code-pretty
Aliases: claudep, ccp, claude-code-pretty
Usage
# stream mode - run claude with pretty output
claudep -p "explain this code"
# replay mode - replay a saved session
claudep -f ~/.claude/projects/.../session.jsonl
Stream mode runs claude with these flags automatically:
--print --verbose --dangerously-skip-permissions --output-format stream-json --include-partial-messages
Environment
| Variable | Default | Description |
|---|---|---|
| CP_TOOL_RESULT_MAX_CHARS | 300 | Max chars for tool results (0=hide) |
| CP_READ_PREVIEW_LINES | 5 | Lines to preview from Read (0=hide) |
Development
make install # setup venv + install
make test # run pytest
make check # ruff lint
# dev alias (claudepd)
ln -sf $(pwd)/.venv/bin/claudep ~/.local/bin/claudepd # install
rm ~/.local/bin/claudepd # remove
License
MIT
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 claude_code_pretty-0.1.2.tar.gz.
File metadata
- Download URL: claude_code_pretty-0.1.2.tar.gz
- Upload date:
- Size: 553.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62f898924e0319a82f4027f28a9fe054ba8e1b566de4fa3e433d374e6fb80146
|
|
| MD5 |
fcf292cd0a708ef56e8ca416895508cd
|
|
| BLAKE2b-256 |
df9f9e79309d5062005104cf7a340e292f627b61b7b5426693ddd2d2bbb6e7ed
|
Provenance
The following attestation bundles were made for claude_code_pretty-0.1.2.tar.gz:
Publisher:
release.yml on lucasvtiradentes/claude-code-pretty
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_code_pretty-0.1.2.tar.gz -
Subject digest:
62f898924e0319a82f4027f28a9fe054ba8e1b566de4fa3e433d374e6fb80146 - Sigstore transparency entry: 994865580
- Sigstore integration time:
-
Permalink:
lucasvtiradentes/claude-code-pretty@28fe76c771628739a92bc9dcce06c729cdc2182e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/lucasvtiradentes
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@28fe76c771628739a92bc9dcce06c729cdc2182e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file claude_code_pretty-0.1.2-py3-none-any.whl.
File metadata
- Download URL: claude_code_pretty-0.1.2-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc48644f18320e5732afe40968127aa2dc9d2f457e9c661ad1a1316e9af6dffb
|
|
| MD5 |
32b4cc43f4047c6a2933000422206294
|
|
| BLAKE2b-256 |
dde3c69c68264a237e8a88e9c6b3508383c310ebedba7fae2fbb7ba490b3a002
|
Provenance
The following attestation bundles were made for claude_code_pretty-0.1.2-py3-none-any.whl:
Publisher:
release.yml on lucasvtiradentes/claude-code-pretty
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_code_pretty-0.1.2-py3-none-any.whl -
Subject digest:
cc48644f18320e5732afe40968127aa2dc9d2f457e9c661ad1a1316e9af6dffb - Sigstore transparency entry: 994865676
- Sigstore integration time:
-
Permalink:
lucasvtiradentes/claude-code-pretty@28fe76c771628739a92bc9dcce06c729cdc2182e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/lucasvtiradentes
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@28fe76c771628739a92bc9dcce06c729cdc2182e -
Trigger Event:
workflow_dispatch
-
Statement type: