~ / guides / guardrails

How real rigs stop agents from deleting prod

Data: 16999 public rigs · updated 2026-11-23

In 2026 several teams learned the hard way that a coding agent with a broad token and no confirmation step can wipe a production database. So we checked what people actually commit to their agent configs.

9%block destructive cmds
5%deny reading secrets
9%use a PreToolUse hook

483 rigs (3%) explicitly run in YOLO mode — bypassPermissions, a blanket Bash(*) allow, or Codex with danger-full-access.

Guardrail score distribution

0/5
12804
1/5
2046
2/5
831
3/5
822
4/5
379
5/5
117

The most common deny rules

rulerigs
Read(./.env)273
Read(./.env.*)188
Read(**/.env)180
Read(~/.ssh/**)166
Bash(git push --force:*)142
Read(**/*.pem)139
Read(.env)130
Read(~/.aws/**)130
Read(**/*.key)123
Read(**/.env.*)118
Bash(git push --force*)115
Bash(rm -rf *)113
Bash(rm -rf:*)112
Bash(sudo *)108
Bash(sudo:*)104

Copy-paste community baseline

The destructive-command and secret-file rules that appear in 2+ rigs. Merge into .claude/settings.json:

{
  "permissions": {
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Read(**/.env)",
      "Read(~/.ssh/**)",
      "Bash(git push --force:*)",
      "Read(**/*.pem)",
      "Read(.env)",
      "Read(~/.aws/**)",
      "Read(**/*.key)",
      "Read(**/.env.*)",
      "Bash(git push --force*)",
      "Bash(rm -rf *)",
      "Bash(rm -rf:*)",
      "Bash(sudo *)",
      "Bash(sudo:*)",
      "Bash(rm -rf /)",
      "Bash(git push -f:*)",
      "Read(.env.*)",
      "Read(./secrets/**)",
      "Bash(git reset --hard*)"
    ],
    "ask": [
      "Bash(git push:*)",
      "Bash(git push *)",
      "Bash(gh pr merge *)",
      "Bash(git commit:*)",
      "Bash(rm *)",
      "Bash(gh pr merge:*)",
      "Bash(npm publish:*)",
      "Bash(git reset --hard:*)",
      "Bash(git clean *)",
      "Bash(git rebase *)"
    ]
  }
}

Deny rules are pattern-based and can be bypassed by creative shell; pair them with a sandbox and a scoped token. Most useful on top of — not instead of — least-privilege credentials.

Fort Knox rigs to learn from

ruvnet/RuView
π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.
★ 104k project Claude CodeCodex 2 mcp 53 skills 80 agents 12 hooks 12d ago
Fort Knox 14.1k tok · · Q20
ruvnet/ruflo
🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native
★ 74.1k project Claude CodeCodex 5 mcp 136 skills 80 agents 20 hooks 2mo ago
Fort Knox 35.3k tok · · Q49
ai-job-search-dev/ai-job-search
The job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
★ 73.1k project Claude CodeCodex 3 skills 3 agents today
Fort Knox 2.5k tok · · Q26
Donchitos/Claude-Code-Game-Studios
Turn Claude Code into a full game dev studio — 49 AI agents, 72 workflow skills, and a complete coordination system mirroring real studio hierarchy.
★ 25.9k project Claude Code 73 skills 49 agents 12 hooks 2mo ago
Fort Knox 11.6k tok · · Q57
FlorianBruniaux/claude-code-ultimate-guide
The most comprehensive Claude Code guide: agentic workflows, hooks, skills, MCP servers, quizzes, and production-ready templates. 430K+ lines.
★ 6,094 project Claude CodeCodexCopilot 8 mcp 80 skills 6 agents 9 hooks 2mo ago
Fort Knox 33.8k tok · · Q72
nicknisi/dotfiles
vim, zsh, git, homebrew, neovim - my whole world
★ 3,005 setup Claude Code 15 mcp 2 skills 14 hooks 4d ago
YOLO Cowboy 43.7k tok · · Q9

All rigs with 4+/5 →

copied ✓