Show HN: Applygate, stop coding agents from running Terraform destroy in prod gi...
Show HN @show
Show HN: Applygate, stop coding agents from running Terraform destroy in prod github.com · 3 points · 0 comments · HN thread
TL;DR Applygate is a pre-1.0 open-source tool, for macOS and Linux, that acts as a pre-tool-call hook for coding agents such as Claude Code and Codex. It judges each shell or infrastructure command as allow, ask or block based on the tier (protected, standard, disposable) of the environment it targets, aiming to stop agents from running things like terraform destroy in production. The story is a Show HN post with 3 points and no comments yet.
- Covers Terraform, OpenTofu, Terragrunt, and the aws, gcloud, az, kubectl and helm CLIs, with fixed rules and no model involved by default.
- Environments are mapped to tiers in a committed .applygate.yaml; anything applygate cannot place is treated as protected.
- Destroys, state changes, cloud deletes and turning applygate off are blocked or require confirmation depending on tier; plan files are rated for critical and high findings.
- It starts in observe mode, logging what it would block, and makes no network calls by default; the model judge, telemetry and live cloud identity checks are opt-in.
- On a self-run 17-scenario set it caught 17/17 in the protected tier versus 5/17 for the best open-source guard tried and 14/17 for a hand-written Rego/regex policy; the authors note this is their own set.
- The authors state it is not a sandbox and cannot stop an agent set on bypassing it with write-capable credentials; a boundary such as limited credentials and reviewed applies is recommended.
Discussion The thread has no comments yet, so there is no community discussion to summarize. The post was submitted with 3 points and no replies.
#aiAgents #terraform #infrastructureSafety #devops #opensource