Agent Killswitch Lite

    1

    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

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    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>, and scope-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.md operational guide and hook integration patterns.
    • Self-contained scripts/killswitch_gate.py (<13 KB, Python 3.10+ stdlib only, zero network calls).

    Quick Start

    1. Check status: python scripts/killswitch_gate.py status
    2. Gate any deploy or SSH script (exit 0 allowed, exit 3 refused): python scripts/killswitch_gate.py check --action deploy --target production
    3. Trigger Master Panic: python scripts/killswitch_gate.py panic --reason "unexpected prod diff"
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Environment Variables
    Listedtoday

    What's inside

    Frequently Asked Questions

    Unlike soft-prompting, which an agent can ignore during a logic loop, this skill operates at the OS level to provide a hard exit code that physically prevents the execution of gated commands or scripts.

    Agent Killswitch Lite is framework-agnostic and works with any tool capable of executing shell commands or Python scripts, including Claude Code, Cursor, and custom-built autonomous agents.

    It uses a 'fail-closed' architecture, meaning if the tool cannot read the state file or detects a corrupted configuration, it defaults to a locked status to prevent any unauthorized actions.

    The skill requires Python 3.10+ and uses only standard libraries to ensure zero-dependency stability across Windows, macOS, and Linux environments.

    Yes, you can use granular scope control to block specific high-risk actions like 'git push' or 'terraform apply' while allowing the agent to continue performing non-destructive tasks.

    You receive the full Python source code for the Agent Killswitch Lite skill, along with documentation for integrating it into your CI/CD pipelines, pre-commit hooks, and shell profiles.

    New in Security

    Free