Skip to main content

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.

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 code with 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
ln -sf $(pwd)/.venv/bin/claudep ~/.local/bin/claudepd

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

claude_code_pretty-0.1.0.tar.gz (158.1 kB view details)

Uploaded Source

Built Distribution

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

claude_code_pretty-0.1.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file claude_code_pretty-0.1.0.tar.gz.

File metadata

  • Download URL: claude_code_pretty-0.1.0.tar.gz
  • Upload date:
  • Size: 158.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for claude_code_pretty-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b55b40bde3629123672a3e6a2508c775ae9832151d79d57d83f2fc1627e35f76
MD5 7679fb0776c52a0ab4d626a6272669d7
BLAKE2b-256 3648268d6f9df5fd5061b5bdc10c6a2e5e5d851f535db57c19ea39a7a4d33fda

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_code_pretty-0.1.0.tar.gz:

Publisher: release.yml on lucasvtiradentes/claude-code-pretty

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file claude_code_pretty-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_code_pretty-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e02273cd042cf03c2ccc2243fcea208e6dbbbc6d0cddcee588fd173534aae16
MD5 400e0fae363384bb699d5128d58536f5
BLAKE2b-256 ed39038d46d13eca31680d329dabc9bca8873b7fb8b66b9e284f2d90104d6e06

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_code_pretty-0.1.0-py3-none-any.whl:

Publisher: release.yml on lucasvtiradentes/claude-code-pretty

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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