Skip to content
Agentic Control Plane

What Is an Agent Firewall?

An agent firewall checks an AI agent’s actions before they run. Those actions are tool calls, shell commands, file writes and network requests. The check sits in the execution path and applies policy. A given action, from a given identity, under a given policy, gets the same verdict every time: allow it, block it, or hold it for a human.

It governs what the agent does, not what the model says.

A network firewall filters packets. Content guardrails filter text. An agent firewall filters actions: rm -rf, git push --force, a POST to an unknown domain, a write to a credentials file. It acts at the moment of execution, the only moment an action can still be stopped.

Why the term is emerging now

For most of the LLM era, safety work meant governing model output: system prompts, content filters, classifier guardrails. Those are probabilistic controls on text. Agents changed the risk. An agent runs commands, edits files, calls APIs and spends money. A prompt-level guardrail can be argued with, injected around, or wrong some fraction of the time. An action that has run cannot be un-run.

Three groups are moving to execution-path enforcement independently.

  • Products. Coder ships an “Agent Firewall”. It runs terminal agents inside an isolated jail, sends their traffic through a proxy, enforces a domain and method allowlist, and streams every allow or deny decision to a control plane as an audit log. Pipelock is an open-source “AI agent firewall” between the agent and the network. It scans HTTP, WebSocket and MCP traffic for exfiltration and injection, and emits signed action receipts from outside the agent’s trust boundary.
  • Research. Progent (Shi et al.) treats agent security as privilege control. Policies are “symbolic rules over tool names and arguments,” and every tool call is validated “through a deterministic procedure, enforcing the principle of least privilege.” ActPlane (Zheng et al.), titled in part “Policy Enforcement for Agent Harnesses,” pushes enforcement into the OS kernel with eBPF so policies cover every execution path.
  • Practice. Teams running coding agents in full-auto found that the harness’s own guardrails don’t hold. We read the guardrails of eleven agent harnesses. In each one’s permissive mode, almost nothing the vendor ships still stops a catastrophic command. If you want a floor, install one that the harness’s permissive mode doesn’t remove.

Different builders, different layers, same conclusion: the place to enforce is the action.

What an agent firewall is not

Not a network firewall. A network firewall reasons about IPs, ports and protocols. It has no concept of “the agent is about to force-push to main,” and that action may never touch the network. An agent firewall reasons about the action and its arguments: which tool, which command, which file, which repo, which identity.

Not LLM guardrails. Guardrails are probabilistic and work on text, with some error rate, before or after generation. An agent firewall is deterministic and works on a concrete tool call. The two compose. Guardrails shape what the model proposes, and the firewall decides what the harness executes. Progent makes the same point: validation of each call is deterministic, even when a model helps write the policy.

Not an LLM gateway. A gateway sits on the wire between the agent and the model provider. That is useful for spend limits, routing and redaction. But it cannot see actions the harness runs locally. When a coding agent runs a shell command, no model-provider traffic carries the action. The gateway sees the conversation about it, after it ran. More on this boundary: an LLM gateway governs what the model says; your risk is what the agent does.

Not a sandbox. A sandbox is containment. It bounds what an agent can reach: filesystem, network, syscalls. A firewall is policy. It decides what the agent may do, action by action, and can say “ask a human,” which a sandbox cannot express. Containment without policy blocks whole categories or nothing. Policy without containment trusts the interception point. You want both.

Researchers still disagree on where interception belongs. ActPlane argues tool-call checks can miss indirect execution paths, so it enforces in the kernel. Progent shows tool-call-level privilege control cutting attack success on agent-security benchmarks. Treat that as a reason to layer, not to pick a winner.

Anatomy of an agent firewall

Whatever the vendor calls it, the parts are the same.

  1. An interception point in the execution path. Harness hooks that fire before a tool call, a proxy the agent’s traffic must cross, or a kernel monitor. The action must pass the check before it runs, not be reported after.
  2. A policy engine with three verdicts. Allow, deny and ask. Ask holds the action and shows a human the full arguments. Policies match the action and its arguments, as in Progent’s “symbolic rules over tool names and arguments.” The floor also has to survive the harness’s permissive mode. A policy the agent’s own yolo flag can disable is not a floor.
  3. Identity attribution. Every verdict is tied to which agent, which run and which human it was working for. Without identity, an audit row is trivia. With it, you have accountability, and per-identity policy becomes possible.
  4. An audit trail outside the agent. Coder streams decisions to its control plane. Pipelock signs receipts from outside the agent’s trust boundary. Evidence about the agent shouldn’t depend on the agent reporting on itself.
  5. Budgets. Money is an action too. A runaway loop is spend with no review, and per-identity caps are the rule for it. See agent cost monitoring.

FAQ

Is an agent firewall a silver bullet? No. It is one layer and inherits the limits of its interception point. A hooks-based firewall governs what flows through hooks. A network-based one governs egress. ActPlane exists because both can be sidestepped by paths they don’t cover. Pair it with sandboxes for containment, code review for what the agent writes, and least-privilege credentials for what the agent holds.

Do I need one if my agent asks for approval by default? Default modes aren’t the operating mode. Teams flip the permissive switch because approval fatigue is real, and in that mode the built-in checks largely vanish. The firewall is the part that stays.

What happens if the firewall can’t be reached? For ACP, the Claude Code plugin fails open for interactive sessions, with a loud UNGOVERNED banner. Subagent, background and API sessions fail closed. The hook shared by other harnesses fails open unless you set ACP_FAIL_MODE=closed or ~/.acp/failmode on that machine. In the Claude Code plugin, the hardline and destructive-floor checks still run offline when the gateway is down. Only the policy lookup is skipped.

Does it slow the agent down? Interception adds one check per action. ActPlane reports 1.9 to 8.4% overhead for kernel-level enforcement in its evaluation. A policy decision is cheap next to a model call.

Isn’t “deny” enough? Why “ask”? Deny-only forces policies to be either loose or paralyzing. “Ask” sends the risky-but-sometimes-right actions to a human, and each approval can become a standing rule.

Where it fits

An agent firewall is the enforcement half of a control plane. The control plane adds what enforcement alone doesn’t give you: identity across agents, cost metering, and one audit trail across every harness you run.

ACP ships that. It does allow, ask and deny on tool calls through harness hooks (Claude Code, Cursor, Codex, Qwen Code, GitHub Copilot, opencode, OpenClaw, Hermes, DeepSeek Harness, pi, Prime Agent, Muse Code, Grok Build, Antigravity), plus a model-call proxy for spend and one log.

Coverage differs by harness. Ask renders inline in Claude Code. In the others, an ask is a block you approve in the console or by email, then retry. Codex has no ask, so it blocks. Enforcement strength varies, so see /controls for the per-harness detail.

The hook runs on the developer’s machine, so a harness setting that disables all hooks (Claude Code disableAllHooks, Antigravity yolo mode) turns it off. It holds through the permissive modes we tested.

The default is audit mode: every call is recorded, and a small safety floor holds the worst commands. If you want the firewall in place today, start here.