self-terminate
CommunityGracefully end Claude Code sessions
Authornsheaps
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provides a safe, repeatable way to terminate a running Claude Code session by sending a SIGINT to the Claude process so the agent can perform a graceful shutdown instead of abrupt termination.
Core Features & Use Cases
- Graceful shutdown: Sends SIGINT (or SIGTERM as an alternative) to the parent Claude process to allow cleanup and orderly exit.
- Pre-shutdown validation: Runs automatic git state checks to block termination if there are uncommitted changes, unpushed commits, or untracked files.
- Multi-environment support: Works for local CLI sessions and remote Claude Code Web sessions with environment detection and stop-hook integration.
Quick Start
Run the plugin's self-terminate script to send SIGINT to the Claude process and gracefully end the session.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: self-terminate Download link: https://github.com/nsheaps/ai-mktpl/archive/main.zip#self-terminate Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.