
Kill switch
Halts a trading desk's agents on danger and flattens open positions safely
Kill switch is an open-source agent skill for finance and payments. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 93
- Last commit
- License
- AGPL-3.0
- Listing updated
Similar skills
About Kill switch
This skill tells an agent how to stop a trading desk when a risk threat appears. It covers setting the halt with the risk kill-switch tool, using a flatten request so open positions are closed with the kill reason rather than abandoned, and reading the current halt state before acting. The halt can also be tripped by a file, an environment flag, or an alert from an allowlisted chat, and all of these stop new tickets before the first one is placed.
The workflow is ordered: read state first, set the switch on a confirmed threat such as a suspected rug, daily-loss breach or integrity failure, and flatten when positions are exposed. Orders in flight at the time of a halt are rejected rather than filled. The skill also lists common failure modes, such as a seat bypassing the halt read or positions remaining open after a flatten, with the response for each.
Clearing the switch is deliberately restricted to a human running the desk's CLI with a named operator and a reason. The skill says agent seats must never clear it. It expects the desk's risk tooling and CLI to be installed, and it references companion skills for live-gate preconditions and incident response.
When your agent uses it
Halt the desk through risk.kill_switch set or flatten_request, read state through risk.halt_status, and clear only through the human CLI path.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (3 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/kill-switch to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/swcstudiospace/PumpGrok.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/kill-switch &&
cp -R "$tmp/skills/kill-switch" ~/.claude/skills/kill-switch &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/kill-switch inside it instead.
Copy the skill folder to ~/.agents/skills/kill-switch to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/swcstudiospace/PumpGrok.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/kill-switch &&
cp -R "$tmp/skills/kill-switch" ~/.agents/skills/kill-switch &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/kill-switch inside it instead.
Copy the skill folder to ~/.cursor/skills/kill-switch to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/swcstudiospace/PumpGrok.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/kill-switch &&
cp -R "$tmp/skills/kill-switch" ~/.cursor/skills/kill-switch &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/kill-switch inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/swcstudiospace/PumpGrok.git --path skills/kill-switchOr copy the folder to ~/.gemini/skills/kill-switch yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/kill-switch:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/swcstudiospace/PumpGrok.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/kill-switch &&
cp -R "$tmp/skills/kill-switch" ~/.copilot/skills/kill-switch &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/kill-switch inside it instead.
Get the folder:
git clone --depth 1 https://github.com/swcstudiospace/PumpGrok.gitThen copy PumpGrok/skills/kill-switch into your agent's skills folder as kill-switch. Agents that support SKILL.md read one folder per skill.
What it does
- Set desk halt
- Sets the kill switch to stop new tickets when a confirmed threat is detected.
- Flatten open positions
- Requests a flatten so every open position closes with the kill reason.
- Read halt status
- Checks whether the desk is halted and which source tripped the switch.
- Honor every trip source
- Treats a file, environment flag or allowlisted alert as a halt before trading starts.
- Human-only clearing
- Restricts clearing the switch to a named human using the CLI with a reason.
- Failure mode guidance
- Lists common halt failures such as bypassed reads and stuck orders, with responses.
Good for
- Halt all new trades after a suspected rug pull in inventory
- Flatten open positions when a daily loss limit is breached
- Check whether the trading desk is currently halted and why
- Escalate a flatten that left positions open after an adapter failure
- Explain who is allowed to clear a kill switch and how
Kill switch FAQ
What does Kill switch need to run?
It calls the risk.kill_switch and risk.halt_status tools, and the human clear step uses the pumpgrok killswitch CLI. It declares no scripts and no allowed tools list.
Can an agent clear the kill switch?
No. The skill says clearing is CLI-only with a human-signed record, and seats such as CHIEF request the clear while the human performs it.
What happens to orders in flight when the switch trips?
The skill says in-flight orders in the ACCEPTED state are rejected at CONFIRMING with reason kill_switch rather than filled into a halt.
What sources can halt the desk?
A var/desk/KILLSWITCH file present at start, an environment flag, a KILL alert from an allowlisted Telegram chat, or a tool-set switch.
How do I install Kill switch in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/kill-switch to use it in all your projects, or to .claude/skills/kill-switch in one project.
Does Kill switch run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Kill switch?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Kill switch?
The closest alternatives to Kill switch are Desk monitoring, Desk risk limits, Live gate procedure, Desk execution protocol and Desk strategy lab.
Where this comes from
- Description: from the skill's own SKILL.md.
More from swcstudiospace/PumpGrok

Guides an agent through safe browsing, human hand-off for CAPTCHAs and logins, and session
- Open source
- 93 GitHub stars
- Browser automation

Renders scheduled daily and weekly desk reports from a ledger and delivers them
- Open source
- 93 GitHub stars
- Finance and payments

Checks a trading desk's operator inputs, seat grants and prompt drift before work starts
- Open source
- 93 GitHub stars
- Finance and payments

Enforces a strict single-send checklist for trading bots placing approved paper orders
- Open source
- 93 GitHub stars
- Finance and payments

Standard folder layout and append-only journal rules for PumpGrok bots
- Open source
- 93 GitHub stars
- Developer tools

Fail-closed playbooks that halt, freeze or escalate when a PumpGrok desk fails
- Open source
- 93 GitHub stars
- Developer tools


