Skip to main content
Code Guide
Script Recommended

cc-sessions.py

Advanced session search with incremental indexing

When to use this

  • When searching across past Claude Code sessions by topic, date, or content to resume earlier work
  • When the session list is long enough that manual browsing is slower than keyword search
  • When you want incremental indexing so searches stay fast even with hundreds of stored sessions

How to use

  1. Open the template on GitHub and copy its content: scripts/cc-sessions.py
  2. Place the file inside anywhere (run directly) in your project (or globally in ~/.claude/ to share across all projects). For shell scripts, make it executable: chmod +x cc-sessions.py
  3. Read through the file, identify the sections that need project-specific values, and update them before committing.

Related templates