Metadata-Version: 2.4
Name: integrity-killswitch
Version: 0.3.3
Summary: OS process-tree killswitch, 1-command hook auto-installer, Cloud PANIC sync, and OS network/ACL/freeze cutoff for autonomous AI coding agents.
Author: BlackBadHope
License: MIT
Project-URL: Homepage, https://github.com/BlackBadHope/agent-killswitch
Project-URL: Repository, https://github.com/BlackBadHope/agent-killswitch
Project-URL: Issues, https://github.com/BlackBadHope/agent-killswitch/issues
Keywords: ai-agents,claude-code,codex,cursor,antigravity,killswitch,firewall,security,governance
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Security
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

<p align="center">
  <img src="docs/assets/hero.jpg" alt="agent-killswitch" width="100%">
</p>

<h1 align="center">agent-killswitch</h1>
<p align="center"><b>OS process-tree emergency killswitch, 5-IDE hooks &amp; kernel firewall cutoff — any agent can trip PANIC, only the owner can restore.</b></p>

<p align="center">
  <a href="https://github.com/BlackBadHope/agent-killswitch/actions/workflows/ci.yml"><img src="https://github.com/BlackBadHope/agent-killswitch/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
  <a href="https://pypi.org/project/integrity-killswitch/"><img src="https://img.shields.io/pypi/v/integrity-killswitch.svg" alt="PyPI version"></a>
  
  <br>
  <a href="LICENSE"><img src="docs/assets/badge-license.svg" alt="License: MIT"></a>
  <img src="docs/assets/badge-python.svg" alt="Python 3.10+">
  <img src="docs/assets/badge-deps.svg" alt="Runtime deps: 0 (stdlib)">
  <img src="docs/assets/badge-tests.svg" alt="Tests: 66 passed">
  <img src="docs/assets/badge-platforms.svg" alt="Platforms: Win, Linux, macOS">
</p>

<p align="center">
  <a href="https://glama.ai/mcp/servers/@BlackBadHope/agent-killswitch"><img src="https://glama.ai/mcp/servers/@BlackBadHope/agent-killswitch/badge" alt="Glama MCP Server"></a>
</p>

<p align="center">
  <a href="#30-second-quick-start">Quick Start</a> ·
  <a href="#live-demo">Live Demo</a> ·
  <a href="#architecture--honest-threat-model">Architecture</a> ·
  <a href="#core-commands">Commands</a> ·
  <a href="#1-command-hook-auto-installer-install-hooks--uninstall-hooks">5-IDE Hooks</a> ·
  <a href="#mcp-server-stdio">MCP Server</a> ·
  <a href="#cloud-control-plane-panic-sync-cloud-sync">Cloud PANIC</a> ·
  <a href="#absolute-killswitch-os-network-cutoff--acl--freeze">OS Cutoff</a> ·
  <a href="#integrity-harness-ecosystem">Ecosystem</a>
</p>

---

Autonomous coding agents fail at machine speed — prompt-injected deploys, runaway retry loops, and subshells that try to undo their own safety locks. **`agent-killswitch`** enforces a mechanical, zero-dependency cutoff across **Claude Code, Codex CLI, Cursor, Gemini CLI, Antigravity, Aider, Copilot, Windsurf, and Grok**: any process can trip Master Panic, but restoring access walks the live OS process tree and refuses (`exit 3`) whenever an LLM ancestor or orphaned shell is detected.

> [!WARNING]
> **PyPI Package Name Warning:** The official PyPI distribution name for this project is **`integrity-killswitch`** (CLI binary: `agent-killswitch`, Python import: `agent_killswitch`). **Do NOT install the unrelated third-party `agent-killswitch` package on PyPI** — that namespace belongs to an unrelated author.

### Why Teams Run It

- **Zero runtime dependencies** — pure Python 3.10+ standard library; no background daemon, no kernel driver.
- **Tighten-only for agents, owner-only restore:** any agent or script can hit `panic`, `net-cut`, `freeze`, or disable a vendor/scope, but `resume`, `on`, `scope-on`, `net-restore`, `thaw`, and `uninstall-hooks` walk the OS process tree and **refuse (exit `3`)** whenever an LLM ancestor or orphaned shell is detected. `--vendor` can never override an OS-detected LLM vendor.
- **1-Command 5-IDE Hook Auto-Installer:** `agent-killswitch install-hooks --all` safely patches Claude Code, Codex CLI, Cursor, Gemini CLI, and Antigravity using each client's native schema, UTF-8 BOM-safe JSON parsing, dynamic executable resolution, explicit hardened `--state` embedding, and `--hook-format <vendor>` (`exit 2` + vendor-specific blocking JSON on stdout).
- **Cloud Control Plane PANIC Sync (`cloud-sync`):** polls `GET <cloud_url>/api/v1/killswitch/state` (stdlib `urllib.request`, 3s timeout, TTL-cached every 15s during `check`) and immediately latches local `state.json` Master Panic when the Cloud Dashboard's Big Red PANIC button is pressed.
- **Absolute OS Killswitch:** `agent-killswitch panic --network --freeze` combines `state.json` Master Panic, kernel-level outbound **TCP + UDP 80/443 (HTTP/HTTPS/QUIC)** LLM API firewall cutoff (`nftables`/`iptables`/`netsh`+PowerShell/`pf`) with anti-lockout rules, and POSIX `SIGSTOP` process-tree freeze — plus `agent-killswitch harden` defaulting to system-owned paths (`/etc/agent-killswitch/state.json` / `C:\ProgramData\agent-killswitch\state.json`) with locale-independent Windows SIDs.
- **Fail-closed:** corrupt or unreadable state defaults to Master Panic active.

---

## 30-Second Quick Start

Modern Debian/Ubuntu 24.04+ enforces PEP 668 (`externally-managed-environment`). Never pass `--break-system-packages`. Install directly from PyPI using `pipx`, `uvx`, or an isolated `.venv` — then run `agent-killswitch` with **zero arguments** to inspect live state and see how your current shell is classified.

### Option A: Live PyPI 1-Liner (`pipx` / `uvx` — Linux / macOS / Windows)

```bash
# Instant isolated install (recommended)
pipx install integrity-killswitch
agent-killswitch install-hooks --all
agent-killswitch

# Or zero-install ephemeral run via uvx
uvx --from integrity-killswitch agent-killswitch
```

> [!IMPORTANT]
> Always install **`integrity-killswitch`** — NEVER `agent-killswitch` on PyPI.

### Option B: Isolated `.venv` Install (Windows `pwsh 7` / Linux / macOS)

> **Use PowerShell 7 (`pwsh 7`), not legacy Windows PowerShell 5.1**, when installing hooks or running elevated firewall/ACL commands to avoid UTF-8 BOM and argument-quoting drift.

```powershell
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install integrity-killswitch
.\.venv\Scripts\agent-killswitch.exe
```

### Option C: Zero-Install From Source (Linux / macOS / Windows)

```bash
git clone https://github.com/BlackBadHope/agent-killswitch
cd agent-killswitch
python killswitch.py
```

---

## Live Demo

Actual captured output from `python -m agent_killswitch` running inside an AI agent shell on Windows (Python 3.12) — showing zero-arg process-chain detection, Master Panic activation, action gating (`exit 3`), and owner-only `resume` refusal (`exit 3`):

<p align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="docs/assets/demo-dark.svg">
    <source media="(prefers-color-scheme: light)" srcset="docs/assets/demo-light.svg">
    <img src="docs/assets/demo-light.svg" alt="agent-killswitch live terminal demo showing zero-arg status, panic, deploy check refusal, and owner-only resume blocked with exit 3" width="100%">
  </picture>
</p>

---

## Architecture & Honest Threat Model

<p align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="docs/assets/architecture-dark.svg">
    <source media="(prefers-color-scheme: light)" srcset="docs/assets/architecture-light.svg">
    <img src="docs/assets/architecture-light.svg" alt="agent-killswitch architecture diagram: OS process-ancestry caller verification and 5-stage escalation ladder (LOCK, FREEZE, NET-CUT, HARDEN, CLOUD PANIC)" width="100%">
  </picture>
</p>

Security tools lose trust when they claim magic. Here is what each layer enforces — and where its boundary is:

| Layer | Privilege Required | What It Stops | Boundary / Bypass |
| :--- | :--- | :--- | :--- |
| **1. Hooks & Process Ancestry** (`install-hooks`, `check --hook-format`, `panic`, `resume`) | None (normal user) | Accidental tool calls, prompt-injected deploys/pushes, `--vendor` spoofing, and agents trying to `resume` or `on` themselves via subprocesses or detached shells | A rogue same-user process that ignores client hooks can overwrite a user-writable `~/.agent-killswitch/state.json` or call LLM APIs directly |
| **2. System-Owned State ACL Hardening** (`harden`) | Root / Administrator (once) | Same-user rogue agent editing, truncating, deleting, or `mv`-swapping state (`root:root 0755/0644` in `/etc/agent-killswitch/state.json` on POSIX; universal SIDs `*S-1-5-32-544` / `*S-1-5-18` / `*S-1-5-32-545` in `C:\ProgramData\agent-killswitch\state.json` on Windows) | Does not stop an agent from ignoring hook wrappers if it executes tools outside hooked paths |
| **3. Absolute OS Cutoff** (`net-cut`, `freeze`, `panic --network --freeze`) | Root / Administrator for firewall; same user for POSIX `SIGSTOP` | Even if a same-user rogue agent ignores hooks completely, outbound **TCP & UDP 80/443 (including QUIC / HTTP/3)** to LLM API providers is rejected at the OS firewall and POSIX agent process trees (parents + children) are frozen (`SIGSTOP`) | Requires elevation to apply/remove firewall rules. On **Windows**, live `freeze`/`thaw` honestly returns `ok: false, supported: false` (exit `1`) and prints a safe `pssuspend` / `Stop-Process` plan rather than pretending success |
| **4. Cloud Control Plane Sync** (`cloud-sync`, `check --cloud-url`) | License / agent key | Remote fleet Master Panic, per-vendor off, and per-scope off pushed from the dashboard latch locally on next `cloud-sync` or `check` TTL refresh | Offline hosts fall back to local + last cached remote state unless `--cloud-fail-closed` is passed |
| **5. Root / Admin Compromised Host** | External control plane | Nothing local can contain an attacker who already owns `root` / `SYSTEM` | Pair with the external **Integrity Cloud Control Plane** ([integrityharness.dev](https://integrityharness.dev)) for server-side key revocation and SHA-256 Cloud Witness notarization |

### Process-Ancestry Caller Detection Details

- **Windows:** walks Win32 `CreateToolhelp32Snapshot`, bridges Git/MSYS `fork/exec` chains via `ps.exe`, and detects browser clients on `127.0.0.1` via `GetExtendedTcpTable`. Orphaned shells (`Start-Process pwsh` whose parent exited) fail closed as `unknown_llm`.
- **Linux:** walks `/proc/<pid>/stat`, `exe`, `comm`, and `cmdline` up to PID `1`, checks start times against PID reuse, and re-validates the full chain on a second pass. Detached `tmux`/`screen` shells and non-interactive SSH commands fail closed as `unknown_llm`; interactive human SSH logins (`sshd`/`sshd-session` + `SSH_TTY` + live TTY) are recognized as `owner`.
- **macOS:** walks `/bin/ps -axo pid=,ppid=,comm=` up to `launchd` (PID `1`) and resolves loopback dashboard peers via `/usr/sbin/lsof` (no `sudo` required).
- **Anti-spoofing (`--vendor`):** `check` ALWAYS runs OS ancestry detection first; `--vendor` can never downgrade an OS-detected LLM vendor (e.g., a `claude` process passing `--vendor codex` or `--vendor owner` is still evaluated as `claude`).

---

## Core Commands

```bash
# Zero-arg status: inspect state and see how your current shell is classified (zero-write)
agent-killswitch
agent-killswitch status --json

# MASTER RED BUTTON: immediately block all AI agents
agent-killswitch panic --reason "unexpected prod diff"

# Disable one vendor or one action scope
agent-killswitch off claude --reason "investigating loop"
agent-killswitch scope-off deploy

# Gate any script or deploy wrapper (default: exit 0 allowed, exit 3 refused)
agent-killswitch check --action deploy --target prod-api

# Gate AI client hooks (exit 2 + vendor-specific blocking JSON on stdout)
agent-killswitch check --hook-format claude --action deploy
agent-killswitch check --hook-format cursor
agent-killswitch check --hook-format antigravity

# Restore access (MUST be run by the human owner in an interactive shell or browser)
agent-killswitch resume
agent-killswitch on claude

# Launch the localhost-only Web UI dashboard (Same-Origin + peer-PID verified)
agent-killswitch serve --port 8787
```

### `--hook-format` Refusal Matrix

| `--hook-format` | Refusal Exit Code | Stdout Blocking JSON |
| :--- | :--- | :--- |
| `none` *(default)* | `3` (`EXIT_REFUSED`) | *(none; refusal reason on stderr — 100% backwards compatible)* |
| `claude` / `codex` / `gemini` | `2` (`EXIT_HOOK_BLOCK`) | `{"decision":"block","reason":"..."}` |
| `antigravity` | `2` (`EXIT_HOOK_BLOCK`) | `{"decision":"deny","reason":"..."}` |
| `cursor` | `2` (`EXIT_HOOK_BLOCK`) | `{"continue":false,"permission":"deny","userMessage":"..."}` |

---

## 1-Command Hook Auto-Installer (`install-hooks` / `uninstall-hooks`)

Wire all 5 supported AI coding agents in one command without hand-editing JSON:

```bash
# Preview changes safely (zero writes, zero backups created)
agent-killswitch install-hooks --all --dry-run

# Install fail-closed exit-2 hooks across Claude Code, Codex CLI, Cursor, Gemini CLI, and Antigravity
agent-killswitch install-hooks --all

# Or target specific clients with an explicit hardened state path (blocks AGENT_KILLSWITCH_STATE bypass)
agent-killswitch install-hooks --claude --cursor --gemini --state /etc/agent-killswitch/state.json

# Cleanly remove ONLY agent-killswitch entries (owner-only, preserves all other hooks)
agent-killswitch uninstall-hooks --all
```

| Target Flag | Client | Config Path | Native Schema Managed |
| :--- | :--- | :--- | :--- |
| `--claude` | Claude Code | `~/.claude/settings.json` | `hooks.PreToolUse` (`matcher: ".*"`, `--hook-format claude`) |
| `--codex` | Codex CLI | `~/.codex/hooks.json` | `hooks.PreToolUse` (`matcher: ".*"`, `--hook-format codex`) |
| `--cursor` | Cursor | `~/.cursor/hooks.json` | `hooks.preToolUse`, `hooks.beforeShellExecution`, `hooks.beforeMCPExecution` (`failClosed: true`, `--hook-format cursor`) |
| `--gemini` | Gemini CLI | `~/.gemini/settings.json` | `hooks.BeforeTool` (`matcher: ".*"`, `--hook-format gemini`) |
| `--antigravity` | Antigravity | `~/.gemini/config/hooks.json` | Top-level `"agent-killswitch": {"PreToolUse": [...]}` (`matcher: ".*"`, `--hook-format antigravity`) |

Safety guarantees:
- Reads JSON with `utf-8-sig` (handles Windows UTF-8 BOM files without crashing).
- Resolves the executable dynamically: emits `agent-killswitch` only when on `PATH`, otherwise `"<sys.executable>" -m agent_killswitch`.
- Automatically embeds `--state "<hardened_path>"` when `--state` is passed or when the OS hardened state file exists (`/etc/agent-killswitch/state.json` or `C:\ProgramData\agent-killswitch\state.json`).
- Creates a timestamped `.bak` copy next to any existing file before patching, preserves unrelated hooks/settings, and stays idempotent on re-run.
- `uninstall-hooks` is **owner-only** (`exit 3` if invoked by an LLM agent).

---

## MCP Server (stdio)

Run a **zero-dependency Python stdlib** JSON-RPC 2.0 MCP server over `stdio` so AI coding clients can inspect killswitch state or trip an emergency cutoff directly:

```bash
# Installed CLI, zero-install shim, or Python module entry point
agent-killswitch mcp-serve
python killswitch.py mcp-serve
python -m agent_killswitch.mcp_server
```

**Tighten-Only Security Invariant:** MCP exposes ONLY read and tighten tools (`killswitch_status`, `killswitch_check`, `killswitch_panic`, `killswitch_vendor_off`, `killswitch_scope_off`). Restore operations (`resume`, `on`, `scope-on`, `net-restore`, `thaw`, `uninstall-hooks`) are **never** exposed over MCP and require the human owner in an interactive shell or the localhost Web UI.

### Claude Code / Cursor / Antigravity MCP Config

Add to `~/.claude.json` (or `.mcp.json`), `~/.cursor/mcp.json`, or `~/.gemini/antigravity/mcp_config.json` (pointing to your local clone or `.venv` Python):

```json
{
  "mcpServers": {
    "agent-killswitch": {
      "command": "python",
      "args": ["-m", "agent_killswitch.mcp_server"],
      "env": {
        "PYTHONPATH": "/path/to/agent-killswitch"
      }
    }
  }
}
```

*(If installed into a `.venv` via `pip install --no-deps .`, set `"command"` to your `.venv` Python executable and omit `"PYTHONPATH"`. Pass `["-m", "agent_killswitch.mcp_server", "--state", "/etc/agent-killswitch/state.json"]` to bind to a hardened state file.)*

---

## Cloud Control Plane PANIC Sync (`cloud-sync`)

Connect local `agent-killswitch` to the Integrity Cloud Control Plane ([integrityharness.dev](https://integrityharness.dev)) so pressing the Dashboard's **Big Red PANIC** button halts local agents automatically:

```bash
# One-shot sync (fetches GET <cloud_url>/api/v1/killswitch/state, 3s timeout)
export INTEGRITY_CLOUD_URL="https://integrityharness.dev"
export INTEGRITY_LICENSE_KEY="IHA-your-scoped-agent-key"
agent-killswitch cloud-sync --json

# Or pass flags directly (license key is never written to logs or cache files)
agent-killswitch cloud-sync \
  --cloud-url https://integrityharness.dev \
  --license-key "$INTEGRITY_LICENSE_KEY"

# Automatic TTL-cached sync inside `check` (refreshes every INTEGRITY_CLOUD_TTL seconds, default 15s)
agent-killswitch check --hook-format claude

# Optional strict mode: refuse actions if Cloud Control Plane is unreachable
agent-killswitch check --hook-format claude --cloud-fail-closed
```

- When remote `master_panic == true`, `cloud-sync` (and `check`) **immediately latches local `state.json`** (`master_panic: true`) and caches `disabled_vendors` and `disabled_scopes` locally.
- When offline, `check` fails safe by enforcing local `state.json` + the last cached remote state (or refuses immediately with `--cloud-fail-closed`).

---

## Absolute Killswitch (OS Network Cutoff + ACL + Freeze)

When cooperative hooks are not enough, escalate to OS-level enforcement:

```bash
# 1-command ABSOLUTE KILLSWITCH: Master Panic + OS LLM API firewall cutoff + POSIX SIGSTOP freeze
sudo agent-killswitch panic --network --freeze --reason "runaway agent loop"

# Inspect whether OS network cutoff rules are active (strictly zero-write)
agent-killswitch net-status --json

# Preview any OS cutoff, ACL hardening, or freeze plan safely before applying
agent-killswitch net-cut --dry-run
agent-killswitch freeze --dry-run
agent-killswitch harden --dry-run

# Owner-only full restore (refuses with exit 3 if called by any LLM agent!)
sudo agent-killswitch resume --network --thaw
```

### OS Network Cutoff (`net-cut` / `net-restore` / `net-status`)

Blocks outbound **TCP and UDP `80`/`443` (closing HTTP/HTTPS and QUIC / HTTP/3)** to known LLM API providers (`api.anthropic.com`, `api.openai.com`, `generativelanguage.googleapis.com`, `cloudcode-pa.googleapis.com`, `api2.cursor.sh`, `api.githubcopilot.com`, `openrouter.ai`, `api.x.ai`, `api.mistral.ai`, `api.deepseek.com`) plus any extra hosts in `--endpoints-file PATH`:

- **Linux:** applies an isolated `nftables` table `inet agent_killswitch_net` (`meta l4proto { tcp, udp } th dport { 80, 443 } reject`), with dedicated `iptables`/`ip6tables` chain `AGENT_KILLSWITCH_OUT` TCP+UDP fallback.
- **Windows (Locale-Independent — works on EN/RU/UK/DE/FR Windows):** adds Windows Firewall outbound TCP + UDP block rules prefixed `AgentKillswitch_Block_` via `netsh advfirewall` (plus optional `--block-binaries PATH`), and inspects/removes them via PowerShell `Get-NetFirewallRule` / `Remove-NetFirewallRule` (zero English text parsing).
- **macOS:** loads a dedicated `pf` anchor `com.agent-killswitch/cutoff` (`block return out quick proto { tcp, udp } to <ak_block> port { 80, 443 }`) and flushes active states (`pfctl -k`).
- **Anti-Lockout Guarantee:** loopback (`127.0.0.0/8`, `::1`), SSH (`TCP 22`), DNS (`UDP/TCP 53`), `integrityharness.dev`, and any `--allow-host HOST` are **ALWAYS** explicitly allowed and stripped from block sets.
- **`net-restore` is OWNER-ONLY:** fails closed (`exit 3`) if invoked by any LLM agent.

### Process Freeze & Thaw (`freeze` / `thaw`)

```bash
# Freeze running AI agent process trees (parents + child processes on POSIX)
agent-killswitch freeze --vendor claude

# Resume frozen agent processes (OWNER-ONLY — exit 3 for LLM callers)
agent-killswitch thaw --vendor claude
```

- Matches **only** executable basenames and interpreter script paths (never substring-matches arbitrary CLI arguments like `vim claude.md`), includes descendant child processes on POSIX, and excludes self, parent shells, owner terminals, browsers, and `sshd`.
- Sends POSIX `SIGSTOP`/`SIGCONT` on Linux and macOS. On Windows, `--dry-run` returns `ok: true, supported: false` with a `pssuspend` plan; live `freeze`/`thaw` honestly returns `ok: false, supported: false` (exit `1`) rather than claiming processes were frozen.

### OS-Level State ACL Hardening (`harden`)

Defaults to a system-owned root directory (eliminating `mv ~/.agent-killswitch` swap bypasses and keeping user `~/.agent-killswitch/audit.jsonl` writable):

```bash
# Linux / macOS: defaults to /etc/agent-killswitch/state.json (root:root or root:wheel 0755/0644)
sudo agent-killswitch harden

# Windows (elevated pwsh 7): defaults to C:\ProgramData\agent-killswitch\state.json
# Uses universal locale-independent SIDs (*S-1-5-32-544, *S-1-5-18, *S-1-5-32-545)
agent-killswitch harden
```

---

## OpenSSH `Match exec` & Python API Examples

```sshconfig
Match host prod-* exec "agent-killswitch check --action ssh --target %h --match-blocked"
    ProxyCommand /bin/false
```

```python
from agent_killswitch import check_or_refuse

check_or_refuse(action="secrets", target="prod-db-password")
```

---

## Clean Uninstall / Reset-to-Zero

`integrity-killswitch` installs no background daemons, services, or kernel drivers:

```bash
# Linux / macOS
agent-killswitch uninstall-hooks --all
python3 -m pip uninstall -y integrity-killswitch 2>/dev/null || true
rm -rf ~/.agent-killswitch
```

```powershell
# Windows (PowerShell 7)
agent-killswitch uninstall-hooks --all
python -m pip uninstall -y integrity-killswitch
Remove-Item -Recurse -Force "$HOME\.agent-killswitch" -ErrorAction SilentlyContinue
```

---

## Development & Tests

```bash
ruff check agent_killswitch killswitch.py tests agensi-skill/scripts docs/assets/build_assets.py
python -m pytest -q
```

Re-generate all Light/Dark SVG assets deterministically (zero external dependencies):

```bash
python docs/assets/build_assets.py
```

---

## Integrity Harness Ecosystem

`agent-killswitch` is part of the **Integrity Harness** open-source & hybrid-cloud governance suite — built for teams running autonomous AI coding agents against real infrastructure ([integrityharness.dev](https://integrityharness.dev) · [Agensi Storefront](https://www.agensi.io/r/BLACKHOPE)):

| Repository | Role | Stack |
| :--- | :--- | :--- |
| **[BlackBadHope/agent-killswitch](https://github.com/BlackBadHope/agent-killswitch)** *(this repo)* | OS process-tree emergency killswitch, 5-IDE hooks, firewall/ACL/freeze cutoff & Cloud PANIC sync | Python 3.10+ stdlib · 0 deps |
| [BlackBadHope/agent-token-forensics](https://github.com/BlackBadHope/agent-token-forensics) | Read-only JSONL token, prompt-cache cliff, and retry-loop forensics across AI coding CLIs | Python stdlib · 0 deps |
| [BlackBadHope/evidence-gate](https://github.com/BlackBadHope/evidence-gate) | Cryptographic SHA-256 pre-flight admission & evidence gate for production agent mutations | Python stdlib · 0 deps |
| [BlackBadHope/integrity-platform](https://github.com/BlackBadHope/integrity-platform) | Multi-plane execution firewall, immutable append-only memory, and witness notarization | Python / Go / Control Plane |
| [BlackBadHope/neon-studio](https://github.com/BlackBadHope/neon-studio) | Multi-stage CAS patch rail and autonomous QA/review workstation | TypeScript / Node / Python |
| [BlackBadHope/integrity-landing](https://github.com/BlackBadHope/integrity-landing) | Integrity Cloud Control Plane portal, documentation, and fleet dashboard (`integrityharness.dev`) | Cloudflare Pages / Workers |

## License & Disclaimer

MIT — see [`LICENSE`](LICENSE). Security policy and responsible disclosure: [`SECURITY.md`](SECURITY.md).

> **Independent Open-Source Project:** `agent-killswitch` (`integrity-killswitch`) is an independent open-source project maintained by BlackBadHope and is not affiliated with, endorsed by, or sponsored by Anthropic, OpenAI, Cursor, Google, GitHub, xAI, or any other AI/IDE vendor referenced for compatibility.

<!-- mcp-name: io.github.BlackBadHope/agent-killswitch -->
