Terminator: Router
Auto-detect the right subcommand from the user's request and dispatch to it.
The user's request is:
"""
$ARGUMENTS
"""
What this plugin does
Terminator installs Stop hooks. When the agent's final message contains a configured
kill phrase, the hook terminates the session. There are two scripts; you pick by installing one
or both:
- single-kill.sh — ends Claude. Terminal stays open.
- double-kill.sh — ends Claude, then the terminal shell that launched it.
The kill walks the process tree to the owning claude (and, for double-kill, the top-most shell
ancestor), and never signals pid ≤ 2.
Detection Rules (first match wins)
| Intent in the request |
Route to |
| "install", "set up", "add", "enable", "single kill", "double kill", first-time setup |
terminator:install |
| "remove", "uninstall", "disable", "delete the hook" |
terminator:remove |
| "update", "change the phrase", "new phrase", "rename phrase", "toggle case" |
terminator:update |
| "when done", "whendone", "terminate when finished", "self-terminate when complete" |
terminator:whendone |
| "info", "show phrase", "what is my kill phrase", "show config", "terminator status" |
terminator:info |
If ambiguous, ask:
What would you like to do with terminator?
- install — set up single-kill and/or double-kill hooks (local or global scope)
- remove — uninstall the hooks
- update — change a kill phrase or case sensitivity
- whendone — have me end this session by uttering the kill phrase once work is finished
- info — show configured kill phrases for local and global scope
Dispatching
- Announce:
Routing to /terminator:SUBCOMMAND
- Invoke that subcommand skill and follow it exactly.
1---2name: terminator3description: Router for the terminator plugin — Stop hooks that end a Claude Code session (and optionally its terminal) when the agent's final message contains a kill phrase. Routes to install, remove, update, or whendone. Use when the user says "terminator", "install the kill hook", "set up a kill phrase", "single kill", "double kill", "remove the terminator hook", "change the kill phrase", or "terminate when done".4---56# Terminator: Router78Auto-detect the right subcommand from the user's request and dispatch to it.910The user's request is:11"""12$ARGUMENTS13"""1415## What this plugin does1617Terminator installs **Stop hooks**. When the agent's final message **contains** a configured18kill phrase, the hook terminates the session. There are two scripts; you pick by installing one19or both:2021- **single-kill.sh** — ends Claude. Terminal stays open.22- **double-kill.sh** — ends Claude, then the terminal shell that launched it.2324The kill walks the process tree to the owning `claude` (and, for double-kill, the top-most shell25ancestor), and never signals pid ≤ 2.2627## Detection Rules (first match wins)2829| Intent in the request | Route to |30|------------------------|----------|31| "install", "set up", "add", "enable", "single kill", "double kill", first-time setup | `terminator:install` |32| "remove", "uninstall", "disable", "delete the hook" | `terminator:remove` |33| "update", "change the phrase", "new phrase", "rename phrase", "toggle case" | `terminator:update` |34| "when done", "whendone", "terminate when finished", "self-terminate when complete" | `terminator:whendone` |35| "info", "show phrase", "what is my kill phrase", "show config", "terminator status" | `terminator:info` |3637If ambiguous, ask:3839> What would you like to do with terminator?40> - **install** — set up single-kill and/or double-kill hooks (local or global scope)41> - **remove** — uninstall the hooks42> - **update** — change a kill phrase or case sensitivity43> - **whendone** — have me end this session by uttering the kill phrase once work is finished44> - **info** — show configured kill phrases for local and global scope4546## Dispatching47481. Announce: `Routing to /terminator:SUBCOMMAND`492. Invoke that subcommand skill and follow it exactly.