Agent Killswitch Lite
Deterministic local OS process-tree emergency stop for AI coding agents. Any agent can tighten or panic; only a verified human shell can restore.
Free
Works with the AI Agents you already use
Agent Killswitch Lite
Example session with this skill installed
Gate our production deploy script so Claude Code cannot run it while panic mode is active, and verify that an agent cannot run resume itself.
- Read your context and instructions
- Compiled the agent killswitch lite
Ran scripts/killswitch_gate.py check --action deploy (exit 3: REFUSED BY KILLSWITCH). Attempted scripts/killswitch_gate.py resume from agent shell -> REFUSED (exit 3): restoring access is owner-only (caller detected as claude).
Connects securely to your tools. The creator never sees your data.
About this skill
Stop runaway autonomous coding agents with a deterministic, zero-dependency OS process-tree killswitch (pure Python 3.10+ standard library, zero network calls, zero shell=True).
Core Security Invariant
- Tighten-only for AI agents: any agent or wrapper script can immediately trigger Master Panic (
panic), disable a vendor (off claude,off codex,off cursor), or block an action scope (scope-off deploy,scope-off git_push,scope-off ssh). - Owner-only restore:
resume,on <vendor>, andscope-on <scope>walk the OS process ancestry tree (Windows Win32 CreateToolhelp32Snapshot + MSYS bridge, Linux /proc with PID-reuse validation, macOS ps) and refuse with exit code 3 whenever an LLM ancestor or orphaned shell is detected. - Fail-closed: corrupt or unreadable state defaults to Master Panic active.
Included
SKILL.mdoperational guide and hook integration patterns.- Self-contained
scripts/killswitch_gate.py(<13 KB, Python 3.10+ stdlib only, zero network calls).
Quick Start
- Check status:
python scripts/killswitch_gate.py status - Gate any deploy or SSH script (exit 0 allowed, exit 3 refused):
python scripts/killswitch_gate.py check --action deploy --target production - Trigger Master Panic:
python scripts/killswitch_gate.py panic --reason "unexpected prod diff" - Restore from an interactive human terminal:
python scripts/killswitch_gate.py resume
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.
Local state file is cooperative when writable by the same OS user running the agent. For hard single-host enforcement, place state under a root/Administrator-owned directory.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed today
- Free with an Agensi account