v5.1.0 β Context Window Monitor & Customisable Status Line
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 systembin/audio-hooks.pyβcmd_statusnow emitsstatusline_settingsconfig/default_preferences.jsonβ newstatusline_settings.visible_segmentskeyplugins/audio-hooks/skills/audio-hooks/SKILL.mdβ full feature coverage, 8 new sectionsCLAUDE.mdβ updated config table and decision treeREADME.mdβ new status line section with mermaid diagram, segment table, examplesdocs/ARCHITECTURE.mdβ updated statusline documentation
Full Changelog: v5.0.3...v5.1.0