AI coding agents can edit files, run shell commands, and touch infrastructure. One bad rm -rf, force-push, or docker compose down -v can wipe hours of work or production data.
| 1 | version: 1 |
| 2 | |
| 3 | project_root: . |
| 4 | |
| 5 | mode: default |
| 6 | |
| 7 | protected_paths: |
| 8 | - .env |
| 9 | - .env.* |
| 10 | - .git/ |
| 11 | - .git/** |
| 12 | - ~/.ssh/ |
| 13 | - ~/.aws/ |
| 14 | - credentials.json |
| 15 | - service-account.json |
| 16 | - "*.pem" |
| 17 | - "*.key" |
| 18 | - secrets/** |
| 19 | |
| 20 | writable_paths: |
| 21 | - src/ |
| 22 | - tests/ |
| 23 | - docs/ |
| 24 | |
| 25 | protected_branches: |
| 26 | - main |
| 27 | - master |
| 28 | - production |
| 29 | - prod |
| 30 | |
| 31 | network: |
| 32 | protected_hosts: |
| 33 | - production.example.com |
| 34 | - api.production.example.com |
| 35 | |
| 36 | rules: |
| 37 | destructive_filesystem: block |
| 38 | destructive_git: warn |
| 39 | protected_branch_force_push: block |
| 40 | secret_access: block |
| 41 | docker_volume_delete: block |
| 42 | production_network: block |
| 43 | database_destructive: block |
| 44 | shell_chain_destructive: warn |