Interactive terminal UI for browsing Claude Code session history.
- Browse Claude Code sessions for the current project or all projects
- Live search/filter by summary, project, or branch
- Full conversation view with scrolling
- Color-coded columns: date, project, branch, message count
claude-logs # sessions for the current project (auto-detected from CWD)
claude-logs --all # all sessions across all projects
claude-logs -a # same as --all
| Key | Action |
|---|---|
↑ ↓ / j k |
Navigate |
Enter |
Open session |
/ |
Search / filter |
Esc |
Clear search |
PgUp PgDn |
Page up / down |
g G |
First / last |
q |
Quit |
| Key | Action |
|---|---|
↑ ↓ / j k |
Scroll |
PgUp PgDn |
Page up / down |
g G |
Top / bottom |
b q Esc ← |
Back to list |
cd ~/Develop/tools/claude-code-log
sudo make installThis builds a Release binary and installs it to /usr/local/bin/claude-logs.
sudo make installsudo make uninstall- macOS
- Xcode (for building)
claude-code-log/
├── main.swift # Entry point, argument parsing
├── Models.swift # Session and Message value types
├── SessionLoader.swift # Load sessions from ~/.claude/projects/
├── Terminal.swift # Raw mode, ANSI helpers, key input
├── App.swift # Event loop, view state machine
├── ListView.swift # List view rendering and navigation
└── DetailView.swift # Conversation view rendering and navigation