Stop AI agents from leaving zombie terminals in VS Code and GitHub Codespaces. Copy-paste terminal management rules for GitHub Copilot, Claude Code, Gemini, Cursor, Windsurf, and more.
npm install auto-kill-terminalCapabilities documented in this repository.
See the full documentation for details.
See the full documentation for details.
See the full documentation for details.
See the full documentation for details.
See the full documentation for details.
See the full documentation for details.
Install it, then run your first command.
npm install auto-kill-terminal
Taken directly from this repository's documentation.
█████╗ ██╗ ██╗████████╗ ██████╗ ██╗ ██╗██╗██╗ ██╗
██╔══██╗██║ ██║╚══██╔══╝██╔═══██╗ ██║ ██╔╝██║██║ ██║
███████║██║ ██║ ██║ ██║ ██║█████╗█████╔╝ ██║██║ ██║
██╔══██║██║ ██║ ██║ ██║ ██║╚════╝██╔═██╗ ██║██║ ██║
██║ ██║╚██████╔╝ ██║ ╚██████╔╝ ██║ ██╗██║███████╗███████╗
╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝╚══════╝╚══════╝
████████╗███████╗██████╗ ███╗ ███╗██╗███╗ ██╗ █████╗ ██╗
╚══██╔══╝██╔════╝██╔══██╗████╗ ████║██║████╗ ██║██╔══██╗██║
██║ █████╗ ██████╔╝██╔████╔██║██║██╔██╗ ██║███████║██║
██║ ██╔══╝ ██╔══██╗██║╚██╔╝██║██║██║╚██╗██║██╔══██║██║
██║ ███████╗██║ ██║██║ ╚═╝ ██║██║██║ ╚████║██║ ██║███████╗
╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝# Option 1: Clone and copy what you need
git clone https://github.com/nirholas/auto-kill-terminal.git
cp auto-kill-terminal/.github/copilot-instructions.md your-project/.github/
# Option 2: Just copy the 5 bullet points from "The Fix" into your existing instruction fileAgent Terminal
| |
|-- run_in_terminal -----------------> | (isBackground: true)
| <-- terminal_id: a7b3c9d1 |
| |
|-- await_terminal ------------------> | (wait for completion)
| <-- output + exit code |
| |
|-- kill_terminal -------------------> | x_x
| X
|
|-- (clean slate for next command)