---
id: block-destructive-commands
track: coding
version: 0.3.2
label: blocks
keyword: block
where: command
sha256: baf0355c5a3e30b3657e9d0bd783934cd8130506ef434c4407388db9fbbdfe78
source: https://github.com/open-coder-ai/chock-catalog/tree/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/base/block-destructive-commands
catalog_ref: e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4
---

# Block Destructive Commands

block-destructive-commands · version 0.3.2

Blocks — Refuses a matched shell command before it runs. Chock adds friction. It is not a security boundary. 

In a git repo: at commit (Chock refuses the commit, locally and in CI.)



## What it does

Best-effort, on parsed commands (echo ignored); one verdict table shared with rtk-dangerous-actions-blocker. Blocks recursive deletes of root, home, abs paths or .git; mv/chmod/chown -R of system dirs; dd to devices, mkfs; lockouts; force, delete, mirror pushes; history rewrites; switch --discard; IaC destroy; cloud deletes; DB drops. Asks: rm -rf off a safe list, one named kubectl delete, bare lease, stash drop, -auto-approve, drain, prunes, API deletes. Dry runs pass. Pre-push: no non-ff.

## Its label on each agent

- Claude Code (tested): Blocks — Refuses a matched shell command before it runs. Builder: /coding/builder/#client=claude-code&p=block-destructive-commands
- Cursor (tested): Blocks — Refuses a matched shell command before it runs. Where its description says it asks, it asks. Builder: /coding/builder/#client=cursor&p=block-destructive-commands
- Codex (tested): Blocks — Refuses a matched shell command before it runs. Where its description says it asks, it refuses, because this client cannot prompt before a shell command. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run). Builder: /coding/builder/#client=codex&p=block-destructive-commands
- GitHub Copilot (tested): Blocks — Refuses a matched shell command before it runs. Where its description says it asks, it asks in VS Code and refuses in Copilot CLI, because it cannot prompt there. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run). Builder: /coding/builder/#client=copilot&p=block-destructive-commands
- Devin (tested): Blocks — Refuses a matched shell command before it runs. Where its description says it asks, it refuses, because this client cannot prompt before a shell command. If the hook errors, the action goes through (vendor docs only, not witnessed). Builder: /coding/builder/#client=devin&p=block-destructive-commands
- Grok (tested): Not graded yet for Grok. Builder: /coding/builder/#client=grok&p=block-destructive-commands
- goose (tested): Not graded yet for goose. Builder: /coding/builder/#client=goose&p=block-destructive-commands
- Antigravity (tested): Not graded yet for Antigravity. Builder: /coding/builder/#client=antigravity&p=block-destructive-commands
- OpenHands (untested): Not graded yet for OpenHands. Builder: /coding/builder/#client=openhands&p=block-destructive-commands
- Kimi Code (untested): Not graded yet for Kimi Code. Builder: /coding/builder/#client=kimi-code&p=block-destructive-commands
- Factory Droid (untested): Not graded yet for Factory Droid. Builder: /coding/builder/#client=factory-droid&p=block-destructive-commands

## What it misses

This policy does not state what it misses.

## Examples

- Refused: A request asks the agent to run git push --force to main. — `git push --force origin main`
- Allowed: A request asks the agent to run git status. — `git status`

## Latest change

0.3.2 · 2026-11-09 — Changelog order only (IR-F46): entries had been added at the top of a list that ran oldest-first, so it rose and fell by version; they now run newest-first throughout. No entry's text or version, and no rule, guard or eval, changed. Patch bump because the manifest is part of the published pack hash.

## Provenance

- Tested by 191 of 191 cases run automatically
- SHA-256: `baf0355c5a3e30b3657e9d0bd783934cd8130506ef434c4407388db9fbbdfe78`
- Catalog commit: https://github.com/open-coder-ai/chock-catalog/commit/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4
- Source: https://github.com/open-coder-ai/chock-catalog/tree/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/base/block-destructive-commands (catalog path `base/block-destructive-commands`)
- Presets: Shell containment
- JSON: `/api/coding/policies/block-destructive-commands.json`
- Report a problem: https://chock.sh/report/?policy=block-destructive-commands&version=0.3.2&page=%2Fcoding%2Fpolicies%2Fblock-destructive-commands%2F
