Skip to content

feat(plugin): add statusLine script and mode-detect HUD update#1094

Merged
JeremyDev87 merged 1 commit into
masterfrom
feat/statusline-mode-detect-1088-1090
Mar 28, 2026
Merged

feat(plugin): add statusLine script and mode-detect HUD update#1094
JeremyDev87 merged 1 commit into
masterfrom
feat/statusline-mode-detect-1088-1090

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Summary

  • feat(plugin): add codingbuddy statusLine script (codingbuddy-hud.py) #1088: Create codingbuddy-hud.py statusLine script with:
    • Model pricing (haiku/sonnet/opus) and cost estimation with cache discounts
    • Cache hit rate computation and health indicator (🟢/🟡/🔴)
    • Session duration formatting and buddy face branding
    • Standalone design (no lib/ imports, works when copied to ~/.claude/hud/)
    • File-locked state reading (fcntl.LOCK_SH)
    • Output: ◕‿◕ CB v5.1.1 | PLAN 🟢 | 12m | ~$0.23 | Cache:87% | Ctx:45%
  • feat(plugin): update HUD state on mode detection #1090: Update user-prompt-submit.py to write detected mode to hud-state.json
    • Supports CODINGBUDDY_HUD_STATE_FILE env for test DI
    • Works with all 5 languages (EN/KO/JA/ZH/ES)
  • 33 statusLine tests + 4 mode-detect tests, all passing
  • 393 total tests, zero regression

Test plan

  • python3 -m pytest tests/test_hud.py -v — 33 passed
  • python3 -m pytest tests/test_mode_detect_hud.py -v — 4 passed
  • python3 -m pytest tests/ -q — 393 passed
  • Manual: echo '{"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.py
  • lint, format:check, typecheck, test:coverage, circular, build — all passed
  • Security audit (all 3 workspaces) — no issues

Closes #1088
Closes #1090

- 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
@JeremyDev87 JeremyDev87 added feat sub-issue 상위 이슈의 하위 작업 plugin packages/claude-code-plugin wow-experience Plugin Wow Experience Design labels Mar 28, 2026
@vercel

vercel Bot commented Mar 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Mar 28, 2026 2:06pm

@JeremyDev87 JeremyDev87 self-assigned this Mar 28, 2026
@JeremyDev87 JeremyDev87 merged commit 1075b2b into master Mar 28, 2026
28 checks passed
@JeremyDev87 JeremyDev87 deleted the feat/statusline-mode-detect-1088-1090 branch March 28, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat plugin packages/claude-code-plugin sub-issue 상위 이슈의 하위 작업 wow-experience Plugin Wow Experience Design

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(plugin): update HUD state on mode detection feat(plugin): add codingbuddy statusLine script (codingbuddy-hud.py)

1 participant