Devin, an on‑prem AI coding assistant, has become the go‑to tool for automatically generating snippets, fixing bugs, and even scaffolding entire services. The team granted Devin a service‑account token that can read every production database, push container images, and execute commands inside every Kubernetes pod. Because the token is static and broadly scoped, any stray request, whether a malformed prompt, a malicious prompt injection, or a careless developer, can cause Devin to exfiltrate credentials, overwrite configuration, or run destructive commands. The organization added OIDC‑based identity verification, but without guardrails the request still lands directly on the target systems. No command is inspected, no response is filtered, and no record exists of what Devin actually did.
Because the token is static and broadly scoped, any stray request, whether a malformed prompt, a malicious prompt injection, or a careless developer, can cause Devin to exfiltrate credentials, overwrite configuration, or run destructive commands. The organization added OIDC‑based identity verification, but without guardrails the request still lands directly on the target systems. No command is inspected, no response is filtered, and no record exists of what Devin actually did.
Why guardrails are essential for AI coding agents
Guardrails are the set of runtime controls that turn a powerful, unrestricted AI assistant into a safe, auditable collaborator. They address three core gaps:
- Intent verification: ensuring that a request to modify infrastructure or read sensitive data is explicitly approved.
- Data protection: preventing accidental leakage of secrets, passwords, or personally identifiable information in AI‑generated output.
- Accountability: creating a tamper‑proof trail that shows who asked what, what the agent responded with, and which commands were actually executed.
Without a dedicated enforcement point, these guarantees cannot be reliably delivered. The identity layer can tell you who started Devin, but it cannot block a dangerous command once the request reaches the database or the cluster.
Placing the enforcement point in the data path
The only place to enforce guardrails is on the actual traffic between the AI agent and the infrastructure it talks to. By inserting a Layer 7 gateway that proxies every protocol, PostgreSQL, MySQL, Kubernetes exec, SSH, HTTP APIs, policy can be applied in real time, regardless of the underlying service.
hoop.dev serves exactly this role. It sits between the identity system and the target resource, acting as an identity‑aware proxy that can inspect, transform, and record each request. Because the gateway is the sole conduit, it can:
- Require just‑in‑time approval for any operation that touches privileged objects.
- Mask or redact sensitive fields in query results before they reach Devin.
- Block commands that match a deny list, such as destructive DDL statements or container deletions.
- Record the full session, including the prompt, the AI‑generated response, and the resulting command execution, for replay and audit.
All of these outcomes are enforced by hoop.dev, not by the token, the OIDC provider, or the target system. If hoop.dev were removed, the guardrails would disappear, leaving the original unrestricted access model.
How the guardrail workflow looks for Devin
1. Identity verification. A developer authenticates with the organization’s OIDC provider. hoop.dev validates the token, extracts group membership, and maps the user to a scoped policy.
