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 - run claude with pretty output (all args forwarded to claude)
claudep stream -p "explain this code"
claudep stream -p "fix the bug" --model sonnet --max-turns 3
claudep stream --resume
# show - replay a saved session in terminal
claudep show ~/.claude/projects/.../session.jsonl
Stream mode adds 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
Metadata
Release files for claude-code-pretty 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| claude_code_pretty-0.1.3.tar.gz | 555.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| claude_code_pretty-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 571.4 kB
Release files / claude_code_pretty-0.1.3.tar.gz
| Download URL | claude_code_pretty-0.1.3.tar.gz |
|---|---|
| Size | 555.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
790eabafd4931bef49c1833e12fe68a456d77cc77e15700730d0218fe52de413
|
|
BLAKE2b-256 checksum How to use checksums |
74d8fbfb72dfd1fa6e4da87db008d8986abdd205f3f3c15c3e5adc8cdce9fca8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.
Transparency logRelease files / claude_code_pretty-0.1.3-py3-none-any.whl
| Download URL | claude_code_pretty-0.1.3-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f98d6d8cf1970c0e502e2420092cb3f0329498fdd760401e1067749f309676e
|
|
BLAKE2b-256 checksum How to use checksums |
c3c36a6dd4a1c08d43f6a3aa51b345af8867b47ea63dbfdb3435f03727f515c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.
Transparency log