A HUD-style status line for CodeBuddy Code, inspired by claude-hud.
[Claude-Sonnet-4.6-1M] │ my-project git:(main*)
Context ████░░░░░░ 41.8%
✓ Bash ×32 ✓ Read ×8 ✓ Edit ×5 ✓ WebFetch ×3 ✓ Grep ×2
| Field | Source |
|---|---|
| Model name | model.display_name from stdin |
| Folder name | workspace.current_dir from stdin |
Git branch + dirty (*) |
git branch --show-current |
| Context bar + % | context_window.used_percentage from stdin |
| Tool stats (Line 3) | Completed function_call entries in transcript, top 5 by count |
Context bar color: green < 70%, yellow 70–85%, red ≥ 85%.
Line 3 shows the top 5 most-used tools this session; hidden when no tools have run.
One command:
git clone https://github.com/staryxchen/codebuddy-hud ~/codebuddy-hud && bash ~/codebuddy-hud/install.shThen restart CodeBuddy Code.
The installer will:
- Find a suitable Python 3.7+ in your PATH
- Symlink
hud.pyinto~/.codebuddy/ - Merge the
statusLineconfig into~/.codebuddy/settings.json
If you prefer to do it by hand:
1. Clone this repo somewhere:
git clone https://github.com/staryxchen/codebuddy-hud ~/codebuddy-hud2. Symlink the script:
ln -sf ~/codebuddy-hud/hud.py ~/.codebuddy/hud.py3. Add to ~/.codebuddy/settings.json:
{
"statusLine": {
"type": "command",
"command": "python3 ~/.codebuddy/hud.py",
"padding": 0
}
}4. Restart CodeBuddy Code.
- Python 3.7+
gitin PATHtailin PATH
