Repository navigation
Labels
needs-owner-decisionAwaiting a human or maintainer judgment call.needs-triageNot yet classified. Floor until a type and one priority tier are set.
Description
Problem
After the #6152 cutover, both guard mods draw rows above the prompt in every interactive session. The owner finds them noisy. The rows are also hard to control, because the documented toggle commands do not exist.
- The toggle commands named in the docs do not exist. Both mods call
$.command.register({ name: 'band' })(plugins/context-guard/hooks/register.tsx:597-601,plugins/rate-limit-guard/hooks/register.tsx:449-450). The mods typings say this "declares the slash command/<name>", with no plugin prefix, and that "registering a name again replaces it" (2.1.288 typings,index.d.ts:2874-2887). The plugins'plugin.jsonoption descriptions, READMEs, setup skills and CHANGELOGs promise/context-guard:bandand/rate-limit-guard:band, and Claude Code answersUnknown command: /context-guard:band. The two guards also compete for the one/bandname. - The rows repeat the status line. On a machine whose status line already shows context %, 5h and 7d, the band rows
[claude-opus-5-5] ctx 24% (acceptable)and[claude-opus-5-5] 5h 3% | 7d 73%repeat those figures and the model id, one row per guard. Both are on by default (context_guard_band,rate_limit_guard_band). - The zone-change notice row is truncated and repeats itself. On a zone change it renders as
context-guard notice: context-guard: context zone smart → acceptable. ... Continuation options, yours to choose: continue; /compact;…. The prefix appears twice, and the menu is cut off at the row width (register.tsx:477-479,:748, theAbovePromptrender at:773-781).
Decide, then build
- Which display mechanism fits each piece: an
AbovePromptrow, a toast or$.ui.logline, the status line itself, or nothing, given that Claude gets its lines throughtool.callcontext whatever the display does. - Defaults: whether the rows default to off, or switch off when a status line already shows the same figures.
- Configurability: one option per surface, names that match the commands, and command names that are unique per plugin (for example
context-band,rate-band), or one shared row. - The notice text: a single prefix and a length that fits one row, with the full menu still reachable.
Acceptance
- Every documented command resolves, and no two plugins register the same command name.
- The chosen defaults and options are recorded in each guard's README and
plugin.json, with one CHANGELOG entry and version bump per plugin. - Mod tests cover the command names and the default visibility.
Related
- feat(mods)!: adopt Claude Code mods and move context-guard and rate-limit-guard onto them #6152 (the mods conversion this follows), feat(context-guard): toast the operator once when zones.json is malformed #6156 (other deferred guard improvements; it does not cover display).
Metadata
Metadata
Assignees
Labels
needs-owner-decisionAwaiting a human or maintainer judgment call.needs-triageNot yet classified. Floor until a type and one priority tier are set.
Type
Fields
No fields configured for issues without a type.
Activity
github-actions commentedon Oct 4, 2026
Thanks for the detailed writeup. As I understand it, three problems after the #6152 mods cutover: (1) the documented
/context-guard:bandand/rate-limit-guard:bandcommands don't resolve because both mods register a barebandname that collides and doesn't carry a plugin prefix; (2) the band rows above the prompt duplicate figures already in the status line; (3) the zone-change notice row repeats its own prefix and gets truncated, cutting off the continuation menu.The issue already lays out the open design questions (which display surface to use, default visibility, per-plugin command naming) under "Decide, then build," plus clear acceptance criteria. Related to #6152 (the cutover this follows) and #6156 (other deferred guard work, which this issue notes doesn't cover display), so I don't see this as a duplicate of either.
Automated triage. A maintainer reviews it.