Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By florianbuetowv0.2.5MITIn 1 marketplace
Ends a Claude Code session when the agent's final message contains a phrase you choose, optionally closing the terminal shell too. Stop hooks signal the process on match; needs bash and jq, runs on macOS or Linux.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code Stop hooks that terminate a session — and optionally its terminal — when the agent's final message contains a kill phrase.
| Script | On phrase match |
|---|---|
single-kill.sh | Terminates Claude. Terminal stays open. |
double-kill.sh | Terminates Claude, then the terminal shell that launched it. |
Behaviour is chosen by which script you install, each bound to its own phrase — not by a runtime flag. Install one or both.
The hook fires when the agent's final message contains the configured phrase (case-sensitivity configurable). Contains-match is used deliberately: models often prepend text like "I'll provide the requested output," which would defeat a whole-message exact match.
Choose a memorable, rare phrase — a movie quote or a sentence unlikely to appear in normal output.
The install and update skills warn you if you pick something too common; single common words like
done, finished, or stop will cause sessions to terminate at seemingly random moments.
claude process and signals it (SIGTERM, then SIGKILL).double-kill.sh additionally walks to the top-most shell ancestor (the terminal's
controlling shell — robust to any wrapper/launcher between it and Claude) and signals that too,
~1s after Claude.macOS note: killing the shell ends the shell session. Whether the Terminal window then closes depends on the terminal app's profile ("When the shell exits" → "Close the window"). A process cannot close a GUI window with a signal.
| Skill | Purpose |
|---|---|
/terminator:install | Install single-kill and/or double-kill, each with its phrase. |
/terminator:update | Change a phrase or case sensitivity (live, no restart). |
/terminator:remove | Uninstall, leaving other Stop hooks intact. |
/terminator:whendone | Arm the session to self-terminate once work is finished. |
.claude/hooks/single-kill.sh and/or .claude/hooks/double-kill.sh
.claude/terminator.json # { single_killphrase, double_killphrase, case_sensitive }
.claude/settings.local.json # Stop hook entries (merged in, never clobbering others)
bash, jq, and standard POSIX tools (ps, kill). macOS and Linux (the macOS path is
covered by tests; the Linux path uses the same POSIX ps interface).
7-day copy clicks
npx claudepluginhub florianbuetow/claude-code --plugin terminatorBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground