# Kill switch

> Kill switch is an open-source agent skill for finance and payments. Halts a trading desk's agents on danger and flattens open positions safely. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/swcstudiospace/PumpGrok/tree/main/skills/kill-switch
- **Repository:** https://github.com/swcstudiospace/pumpgrok
- **GitHub stars:** 93
- **License:** AGPL-3.0
- **Skill name:** kill-switch
- **Collection:** https://github.com/swcstudiospace/PumpGrok
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-12-04

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/swcstudiospace/PumpGrok/tree/HEAD/skills/kill-switch)
- [License: AGPL-3.0](https://github.com/swcstudiospace/PumpGrok/tree/HEAD/skills/kill-switch)

## Features

- **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

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/kill-switch` to use it in all your projects:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/kill-switch` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/kill-switch` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/swcstudiospace/PumpGrok.git --path skills/kill-switch
```

Or copy the folder to `~/.gemini/skills/kill-switch` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/kill-switch`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/swcstudiospace/PumpGrok.git
```

Then copy `PumpGrok/skills/kill-switch` into your agent's skills folder as `kill-switch`. Agents that support SKILL.md read one folder per skill.

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

## Alternatives

- [Desk monitoring](https://ai-powered.com/skills/desk-monitoring): Desk monitoring is an open-source agent skill for finance and payments.
- [Desk risk limits](https://ai-powered.com/skills/desk-risk-limits): Desk risk limits is an open-source agent skill for finance and payments.
- [Live gate procedure](https://ai-powered.com/skills/live-gate-procedure): Live gate procedure is an open-source agent skill for finance and payments.
- [Desk execution protocol](https://ai-powered.com/skills/desk-execution-protocol): Desk execution protocol is an open-source agent skill for finance and payments.
- [Desk strategy lab](https://ai-powered.com/skills/desk-strategy-lab): Desk strategy lab is an open-source agent skill for finance and payments.
- [Desk doctor](https://ai-powered.com/skills/desk-doctor): Desk doctor is an open-source agent skill for finance and payments.
- [Desk operating model](https://ai-powered.com/skills/desk-operating-model): Desk operating model is an open-source agent skill for finance and payments.
- [Desk trade lifecycle](https://ai-powered.com/skills/desk-trade-lifecycle): Desk trade lifecycle is an open-source agent skill for finance and payments.

---
Source: https://ai-powered.com/skills/kill-switch
