top | item 46805870

Show HN: Cc-sessions – Fast CLI to list and resume Claude Code sessions

2 points| Chronologos | 1 month ago |github.com

3 comments

order

Chronologos|1 month ago

I built this because Claude Code stores sessions in per-project directories (~/.claude/projects/*/), but there's no built-in way to see all your sessions across projects or quickly jump back into one.

cc-sessions solves this by: - Scanning all project directories in parallel (Rust + rayon) - Showing sessions sorted by last modified with relative timestamps - Interactive fzf picker with transcript preview (-i flag) - Project filtering (-p dotfiles) - Fork mode to branch off from any session (-f flag)

Technical details: ~350 lines of Rust, no chrono dependency (hand-rolled ISO 8601 parser to keep the binary small), reads from Claude's sessions-index.json files rather than parsing the .jsonl transcripts directly.

Requires fzf and jaq for the interactive preview.

nulone|1 month ago

Nice. Does this work across multiple machines / moved repos (same project, different local path), or is it strictly path-based?

Chronologos|1 month ago

it reads the session files that claude writes locally, so works on a single local machine only, and breaks if you move a repos around on the same machine.