Skip to main content

CC-Summarize

A CLI tool for managing, viewing, and summarizing Claude Code sessions.

Demo screenshot showing AI-powered session summaries

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)

Source distribution for cc-summarize 1.4.0
File Size Uploaded
cc_summarize-1.4.0.tar.gz 58.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cc-summarize 1.4.0
File Interpreter ABI Platform
cc_summarize-1.4.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page