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 --updateWorks with both bash and zsh:
git clone https://github.com/choplin/cclog.gitAdd 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 automaticallyOther Plugin Managers
Note: These methods haven't been tested but should work thanks to the standard
.plugin.zshfile structure. Please open an issue if you encounter any problems!
git clone https://github.com/choplin/cclog ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/cclogThen add cclog to the plugins array in your ~/.zshrc:
plugins=(... cclog)zinit load choplin/cclogzplug "choplin/cclog"antigen bundle choplin/cclogzgen load choplin/cclogantibody bundle choplin/cclogcclogKey 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 projectsKey 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.jsonlcclog info ~/.claude/projects/*/session-id.jsonlfzf- 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.shOr manually with pytest:
pytest tests/ -vThis project is licensed under the MIT License - see the LICENSE file for details.