brewtools:agent-toggle
Installation
SKILL.md
Agent Toggle
Disable/enable individual agents via the native
permissions.denymechanism insettings.json. AAgent(<name>)deny entry removes the subagent from the model context. State survives plugin updates — no SessionStart reapply hook needed. See also:/brewtools:skill-togglefor skills.
Robustness Rules
| Rule | Applies |
|---|---|
Every Bash call ends with && echo "OK ..." || echo "FAILED ..." |
ALL |
Never use Write/Edit on any settings.json — use Bash + Node helper |
ALL |
This skill mutates agents only (permissions.deny) — never skills |
ALL |
Agent(name) matches the BARE name — strip any plugin: prefix the user passes |
ALL |
| Atomic writes via lockfile + temp + rename (handled by helper) | P2 |