ccsessions (from Claude Code Sessions) is a terminal UI for browsing Claude Code session history for the current working directory.
It maps the current directory to Claude's project history folder under ~/.claude/projects by default, or a custom Claude directory passed with --claude-dir, loads each .jsonl session file, and shows:
- a searchable session list
- session metadata such as timestamps and branch
- the full session log for the selected session
go run ./cmd/ccsessionsTo read sessions from a different Claude config directory:
go run ./cmd/ccsessions --claude-dir ~/.claude-personalTo show discovery diagnostics in the UI header:
go run ./cmd/ccsessions --claude-dir ~/.claude-personal --debugBuild the binary into ./bin/ccsessions:
make buildOr build it directly with Go:
go build -o bin/ccsessions ./cmd/ccsessionsInstall ccsessions into your Go binary directory:
go install ./cmd/ccsessionsAfter that, run it with:
ccsessionsOr:
ccsessions --claude-dir ~/.claude-personalYou can combine it with:
ccsessions --debug- Type to filter sessions
Tabto cycle focus between search, session list, and session logj/kor arrow keys to move in the session list or scroll the session log when that pane is focused/in the session log pane to open inline searchup/downin session log search to move between matchesEnterto keep the current session log search activeEscto clear the current session log searchqto quit
This repo depends on:
github.com/charmbracelet/bubbleteagithub.com/charmbracelet/bubblesgithub.com/charmbracelet/lipgloss