CC-Summarize
A CLI tool for managing, viewing, and summarizing Claude Code sessions.
Features
- Interactive session picker (
--pick): Select sessions from a list instead of copying UUIDs - Session-level AI summaries (
--summary): Generate work summaries, commit messages, or requirements - Per-turn AI summaries (
--summarize): Summarize assistant actions between user messages - Multiple output formats (terminal, plain, markdown, JSONL)
- Smart caching to avoid re-summarizing identical content
- Date-based filtering and session management
- Filters out noise (warmup sessions, subagents, empty sessions)
Installation
pip install cc-summarize
AI summarization uses the Claude Agent SDK. Ensure it's configured with your Anthropic API key or authenticated account.
Usage
# List sessions for current project (with descriptions)
cc-summarize --list
# Interactive session picker
cc-summarize --pick # pick a session, show user messages
cc-summarize --pick --summary work # pick a session, generate work summary
# Session-level AI summaries (holistic summary of all work)
cc-summarize --summary default # detailed work summary
cc-summarize --summary commit # conventional commit message
cc-summarize --summary requirements # extract user requirements
cc-summarize -S --summary work > summary.md # redirect to file
# Per-turn AI summaries (summarize each assistant response)
cc-summarize --summarize normal
cc-summarize --summarize detailed
# Show user messages only (default, no AI)
cc-summarize
# Include additional message types
cc-summarize --with-assistant --with-plans
cc-summarize --with-all
# Filter by date
cc-summarize --since 3d
cc-summarize --since 2h
cc-summarize --from 2024-12-01
# Output formats
cc-summarize --format markdown
cc-summarize --format jsonl -o output.jsonl
cc-summarize --format plain | less
Output Formats
- terminal (default): Rich formatted output with colors
- plain: Plain text suitable for piping (auto-enabled when not a TTY)
- markdown: Markdown document format
- jsonl: Structured JSON Lines for programmatic use
Requirements
- Python 3.10+
- Claude Code sessions in
~/.claude/projects/ - For AI summaries: configured Claude Agent SDK (API key or authenticated account)
Environment Variables
CC_SUMMARIZE_CACHE_DIR: Custom cache directory (default:~/.cache/cc-summarize/)
License
CC0-1.0
Metadata
Release files for cc-summarize 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cc_summarize-1.4.0.tar.gz | 58.2 kB | Without provenance | Details for cc_summarize-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cc_summarize-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for cc_summarize-1.4.0-py3-none-any.whl |
Total release size: 126.2 kB
Release files / cc_summarize-1.4.0.tar.gz
| Download URL | cc_summarize-1.4.0.tar.gz |
|---|---|
| Size | 58.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
710f3c8a55b58ee1562ec7c8fed7aeacb814d6e18cb9fd7cd4b5d51ca92115ce
|
|
BLAKE2b-256 checksum How to use checksums |
41814a1a98da4b8ad0ae1577222cd9cda13135a3ac7c8d99bf99a96cd09473ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / cc_summarize-1.4.0-py3-none-any.whl
| Download URL | cc_summarize-1.4.0-py3-none-any.whl |
|---|---|
| Size | 68.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4170410f970e7586badd7b189369e416d29627b76a3b96fcba945cfb8be9b4c
|
|
BLAKE2b-256 checksum How to use checksums |
93e399c6cfb1a82cc6ae0ab2b61f531ad8f77c698459887230b708580157b2bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for cc-summarize 1.4.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.