Browse and view Claude Code conversation history using fzf.
overview.mp4
The demo shows:
- Opening the session list with
cclog
- Navigating through sessions with real-time preview
- Resuming a Claude Code session with
Ctrl-R
Add to your ~/.config/sheldon/plugins.toml
:
[plugins.cclog]
github = "choplin/cclog"
Then run:
sheldon lock --update
Works with both bash and zsh:
git clone https://github.com/choplin/cclog.git
Add to your shell configuration:
# For bash/zsh
source /path/to/cclog/cclog.sh
# For zsh with plugin managers (oh-my-zsh, etc)
# The cclog.plugin.zsh will be loaded automatically
Other Plugin Managers
Note: These methods haven't been tested but should work thanks to the standard
.plugin.zsh
file structure. Please open an issue if you encounter any problems!
git clone https://github.com/choplin/cclog ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/cclog
Then add cclog
to the plugins array in your ~/.zshrc
:
plugins=(... cclog)
zinit load choplin/cclog
zplug "choplin/cclog"
antigen bundle choplin/cclog
zgen load choplin/cclog
antibody bundle choplin/cclog
cclog
Key bindings:
Enter
: Return the session IDCtrl-V
: View the full log in your pagerCtrl-P
: Return the file pathCtrl-R
: Resume the conversation withclaude -r
Browse all Claude Code projects sorted by recent activity:
cclog projects
Key bindings:
Enter
: Change directory to the selected project
The preview window shows the most recent sessions for each project, helping you quickly identify the project you're looking for.
cclog view ~/.claude/projects/*/session-id.jsonl
cclog info ~/.claude/projects/*/session-id.jsonl
fzf
- Fuzzy finderpython3
- Python 3.x (for performance optimization)claude
- Claude Code CLI (for resume functionality)
- Color-coded messages (User: Cyan, Assistant: White, Tool: Gray)
- Session information display (file, messages count, start time, duration)
- Interactive browsing with fzf
- Browse all projects across your system sorted by recent activity
- Resume conversations directly from the browser
- Performance optimized with Python helper script for large conversation histories
- Stream-based processing for efficient memory usage
- Duration and message count columns in the conversation list
- Topic summaries displayed when available (📑 prefix)
Run the test suite:
./run_tests.sh
Or manually with pytest:
pytest tests/ -v
This project is licensed under the MIT License - see the LICENSE file for details.