feat(plugin): add statusLine script and mode-detect HUD update#1094
Merged
Conversation
- Create codingbuddy-hud.py statusLine with model pricing, cost estimation, cache hit rate, health indicator, and session duration formatting - Update user-prompt-submit.py to write detected mode to hud-state.json - Add 33 tests for statusLine (8 test classes) and 4 tests for mode detect - Add Wave 2 implementation plan document Closes #1088 Closes #1090
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
codingbuddy-hud.pystatusLine script with:~/.claude/hud/)fcntl.LOCK_SH)◕‿◕ CB v5.1.1 | PLAN 🟢 | 12m | ~$0.23 | Cache:87% | Ctx:45%user-prompt-submit.pyto write detected mode tohud-state.jsonCODINGBUDDY_HUD_STATE_FILEenv for test DITest plan
python3 -m pytest tests/test_hud.py -v— 33 passedpython3 -m pytest tests/test_mode_detect_hud.py -v— 4 passedpython3 -m pytest tests/ -q— 393 passedecho '{"model":{"id":"claude-opus-4-6"},"context_window":{"used_percentage":45,"current_usage":{"input_tokens":1000,"cache_creation_input_tokens":500,"cache_read_input_tokens":2000}}}' | python3 hooks/codingbuddy-hud.pyCloses #1088
Closes #1090