Skip to content

v5.1.0 β€” Context Window Monitor & Customisable Status Line

Choose a tag to compare

@ChanMeng666 ChanMeng666 released this 12 Apr 23:11
· 39 commits to master since this release

What's new

Context window monitor in the status line

The status line now tracks context window usage in real time with color-coded thresholds that warn you before entering the "agent dumb zone" β€” when context exceeds 60–70%, Claude starts ignoring instructions and making basic coding errors.

Color Range What it means What to do
🟒 Green < 50% Safe β€” agent performs well Nothing, keep working
🟑 Yellow 50–80% Caution β€” entering the "dumb zone" Type /compact or /clear
πŸ”΄ Red > 80% Danger β€” agent makes frequent errors Type /compact immediately
[Opus] πŸ”Š Audio Hooks v5.1.0 | 6/26 Sounds | Webhook: off | Theme: Voice
🌿 main  β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘ API Quota: 60%  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ Context: 65% ⚠️ /compact

10 customisable status line segments

Users can choose exactly which segments to show. Just tell Claude Code in natural language:

  • "Only show context usage in the status line" β†’ shows just the context bar
  • "Show context and API quota" β†’ shows two progress bars
  • "Show everything" β†’ resets to all 10 segments (default)

Available segments: model, version, sounds, webhook, theme, snooze, focus, branch, api_quota, context.

audio-hooks set statusline_settings.visible_segments '["context"]'
audio-hooks set statusline_settings.visible_segments '["context","api_quota"]'
audio-hooks set statusline_settings.visible_segments '[]'   # show all (default)

Human-readable display labels (global accessibility)

All status line labels redesigned so non-English-native, non-technical users can understand them at a glance:

Before After
ctx: 65% Context: 65%
5h: 60% API Quota: 60%
24/26 hooks 24/26 Sounds
theme: custom Theme: Chimes
theme: default Theme: Voice
SNOOZED MUTED

Old config segment names (ctx, hooks, rate_limit) are still accepted for backwards compatibility.

SKILL.md now covers all features

The /audio-hooks SKILL (the natural-language interface Claude Code uses) now documents every project capability. 8 previously missing sections added:

  • Check project status β€” audio-hooks status / audio-hooks version
  • Notification settings β€” audio-only, notification-only, per-hook overrides
  • Playback settings β€” debounce configuration
  • Focus Flow β€” breathing exercises, min thinking seconds
  • Uninstall β€” plugin and script paths
  • Generic get/set β€” read/write any config key
  • Webhook view β€” audio-hooks webhook (view current config)
  • Status line customisation β€” segment selection with examples

Install / upgrade

If you already have the plugin installed, Claude Code will pick up the new version automatically on next plugin update. For new installs:

Tell Claude Code: "Install the audio-hooks plugin from github.com/ChanMeng666/claude-code-audio-hooks"

Then type /reload-plugins once. That's it β€” natural language forever after.

Files changed

  • bin/audio-hooks-statusline.py β€” context bar, segment filtering, human-readable labels, backwards-compat alias system
  • bin/audio-hooks.py β€” cmd_status now emits statusline_settings
  • config/default_preferences.json β€” new statusline_settings.visible_segments key
  • plugins/audio-hooks/skills/audio-hooks/SKILL.md β€” full feature coverage, 8 new sections
  • CLAUDE.md β€” updated config table and decision tree
  • README.md β€” new status line section with mermaid diagram, segment table, examples
  • docs/ARCHITECTURE.md β€” updated statusline documentation

Full Changelog: v5.0.3...v5.1.0