Rules editor
Create blocklist rules and download a rules.json file for the CLI.
Save the exported file to ~/.destructguard/rules.json for the CLI.
No rules yet
Rules are regex patterns that block destructive shell commands — force pushes, hard resets, recursive deletes, and similar. Start from the built-in template or add your own.
Allowlist patterns
Rules (0)
Add rule
Use in CLI
Save your rules JSON to ~/.destructguard/rules.json so the CLI loads them on guard, doctor, and hook runs.
Rules JSON (from editor)
{
"version": "1",
"allowlist": [],
"rules": []
}Validate after saving
destructguard rules validate ~/.destructguard/rules.json