Skip to main content

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

Project description

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

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

cc_summarize-1.4.0.tar.gz (58.2 kB view details)

Uploaded Source

Built Distribution

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

cc_summarize-1.4.0-py3-none-any.whl (68.0 kB view details)

Uploaded Python 3

File details

Details for the file cc_summarize-1.4.0.tar.gz.

File metadata

  • Download URL: cc_summarize-1.4.0.tar.gz
  • Upload date:
  • Size: 58.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for cc_summarize-1.4.0.tar.gz
Algorithm Hash digest
SHA256 710f3c8a55b58ee1562ec7c8fed7aeacb814d6e18cb9fd7cd4b5d51ca92115ce
MD5 011b0ff9236c6902e2bf71fbea874b42
BLAKE2b-256 41814a1a98da4b8ad0ae1577222cd9cda13135a3ac7c8d99bf99a96cd09473ec

See more details on using hashes here.

File details

Details for the file cc_summarize-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: cc_summarize-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 68.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for cc_summarize-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4170410f970e7586badd7b189369e416d29627b76a3b96fcba945cfb8be9b4c
MD5 89a57871ab631db4fe708e8a17dac674
BLAKE2b-256 93e399c6cfb1a82cc6ae0ab2b61f531ad8f77c698459887230b708580157b2bb

See more details on using hashes here.

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