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 | # Byte-compiled / cache |
| 2 | __pycache__/ |
| 3 | *.py[cod] |
| 4 | *$py.class |
| 5 | *.so |
| 6 | .Python |
| 7 | |
| 8 | # Virtual environments |
| 9 | .venv/ |
| 10 | venv/ |
| 11 | ENV/ |
| 12 | env/ |
| 13 | |
| 14 | # Packaging |
| 15 | build/ |
| 16 | dist/ |
| 17 | *.egg-info/ |
| 18 | *.egg |
| 19 | .eggs/ |
| 20 | |
| 21 | # Test / coverage / type |
| 22 | .pytest_cache/ |
| 23 | .coverage |
| 24 | .coverage.* |
| 25 | htmlcov/ |
| 26 | .mypy_cache/ |
| 27 | .ruff_cache/ |
| 28 | coverage.xml |
| 29 | |
| 30 | # IDE |
| 31 | .idea/ |
| 32 | .vscode/ |
| 33 | *.swp |
| 34 | *~ |
| 35 | |
| 36 | # OS |
| 37 | .DS_Store |
| 38 | Thumbs.db |
| 39 | |
| 40 | # Project local config (generated by init — keep examples/) |
| 41 | .agent-guard.yml |
| 42 | |
| 43 | # Secrets (never commit) |
| 44 | .env |
| 45 | .env.* |
| 46 | !.env.example |
| 47 | credentials.json |
| 48 | *.pem |
| 49 | *.key |
| 50 | id_rsa |
| 51 | id_ed25519 |