Stop hooks that terminate a Claude Code session when the agent's final message contains a kill phrase. Two scripts: single-kill (ends Claude) and double-kill (ends Claude plus the terminal shell that launched it), each bound to its own phrase. Installs at local (project) or global (user) scope; scripts require LOCAL or GLOBAL arg and exit 1 if missing. Contains-match (robust to model preambles), case-sensitivity configurable, and a kill path that walks the process tree to the owning claude (and, for double-kill, the top-most shell ancestor) and never signals pid <= 2. Install, remove, update, info, and whendone skills via a router; composes safely with existing Stop hooks.

version
0.2.5
GitHub stars
20

Install

/plugin install terminator@florianbuetow-plugins

Run it inside Claude Code after adding the marketplace with /plugin marketplace add florianbuetow/claude-code.

Contents

Discovered from source

Skills 6

Sponsors

Details

Marketplace
florianbuetow/claude-code
Source
plugins/terminator
Author
Florian Buetow
Category
productivity

More from florianbuetow/claude-code

All 35