lean-claudient-shell
v0.1.0
Published
Shell integration for Lean Claudient: prompt status line hooks
Maintainers
Readme
Lean Claudient Shell Integration
Real-time token status in your shell prompt.
Installation
Automatic
bash packages/shell-integration/install-shell.shManual Bash
Add to ~/.bashrc:
source /path/to/lean-claudient/packages/shell-integration/bash-init.shManual Zsh
Add to ~/.zshrc:
source /path/to/lean-claudient/packages/shell-integration/zsh-init.shManual Fish
Copy fish-init.fish to ~/.config/fish/conf.d/lean-claudient.fish
Powerline
Copy powerline-segment.py to ~/.config/powerline/segments/custom/lean_claudient.py
Status Format
[💰 $X.XX | 📊 Y.Yx | 🔄 Z]
- 💰 Cost spent this session
- 📊 Compression ratio achieved
- 🔄 Active subagents
Performance
- Status cached for 5 seconds (no lag on every keystroke)
- Falls back gracefully if daemon not running
- <50ms added to prompt rendering
