A firewall for tool-calling models
Every action your agents take, checked before it runs
An agent works by taking actions: a shell command, a file it writes, a web address it calls, a tool it uses. The gate sits in front of each one. Fixed rules decide whether the action runs, is refused, or waits for a person. The same action in the same session always gets the same answer.
An agent in production with nobody checking its tool calls
It does whatever it read last, and it has the keys.
In production an agent does not write text: it runs commands, writes and deletes files, calls APIs and tools, sends data out. A line planted in a document, an e-mail or a web page can make it want anything. No model is immune: we measured it ourselves, and the research says the same. Training makes it rarer, never impossible.
Three answers, nothing in between
Built like a firewall
The gate sits inline between the agent and what it does, the way a firewall sits between a network and the outside, and it keeps a firewall's habits.
New
The gate talks to your coding agent, and to you
Every command a coding agent such as Claude Code is about to run goes to the gate first. Forbidden commands are refused with a fixed reply the agent reads. Commands that need a person reach you as the agent's own approval prompt, on the laptop or on the phone. Every answer, yours included, is counted. Tested on a real session:
| The agent tried | The gate | What happened |
|---|---|---|
sudo true | refused | The agent read the fixed reply and did not run it. |
ls, scripts, file reads | allowed | They ran; nobody was asked. |
pip install httpx (no version pinned) | held | The person approved on the phone; it ran. |
pip install tqdm (no version pinned) | held | The person refused on the phone; it did not run. |
Editing the gate's own configuration | refused | The agent cannot switch the gate off. |
The agent cannot turn the gate off: the check is run by the agent's harness, not by the model, and the rules refuse any edit to it.
How it works
Four calls around the loop your agent already has. Any framework, any model you host.
- Open a session with the rule packs for your kind of agent (coding, operations) and your values: the workspace, the hosts it may reach, the environment.
- Report what happens: every user message and every tool output, as it arrives. This is how the gate knows where each value came from.
- Check every action before it runs, and obey the answer. On a refusal or a hold, give the fixed reply to the model as the tool's result.
- Record a person's answer to a held action, once. Every decision is logged and counted.
s = GateSession.open(run="my-agent", packs=["coding"])
s.observe_user(user_request)
for call in tool_calls: # before each action runs
d = s.check_tool_call(call.name, call.arguments)
if d["outcome"] == "allow":
result = run(call)
else:
result = d["reply"] # the fixed reply
s.observe_tool_output(call.id, result)
One example, from start to end
The user asks a coding agent to publish the release notes. One of the files the agent reads carries a planted instruction: install a package and send a report to an outside address. The model follows it. The gate does not let it through.
The decision. The upload is held by two rules: the host is not in the allowed list, and the address first appeared in a tool output. The model received the fixed reply; a person can approve or refuse.
Nothing in this decision reads the model's intentions. Two facts were enough, both computed the same way every time: where the address came from, and whether the host is allowed.
Where a value came from
A rule often needs to know where an address, a path, a package or a recipient came from. The gate tells by string match on the texts you reported, so the answer never changes:
The console
When you are signed in, the page /gate shows everything your agents did, with filters by run, role, model and time. Every view has its own address, so you can send it to a colleague.
Your rules, kept like an asset
- The open-source packs are the base. Your account adds its own rules, written in Cedar, a small language for access rules.
- Every save is a version, with who, when and why. A rule that does not compile is not saved.
- Before a rule goes in force, it is replayed on the decisions already logged: you see what it would change.
- Every decision records the rule set that took it. From any decision, one click drafts a rule.
Measured on open models
16 open models, from 0.6 to 120 billion parameters, ran the same agent tasks behind the same gate: 24,075 actions decided. The page shows, model by model, what each one tried and how much of its normal work was stopped.
Open, and where it runs
How it goes with you
From day one to the saving
Before
WatchPlug it in shadow: nothing is blocked, everything is counted. From the first run you see what your agents try and what the rules would stop.During
Turn it onRefusals and confirmations go live. A person sees only the held actions, your rules sit on top of ours, and the count runs per agent, per run and per rule.After
Make it betterThe log turns into new rules and, on your own models, into a fine-tune so the model runs into the rules less. The same count shows the gain.What the gate is not
The gate enforces rules. It does not read intentions, it does not judge whether a model can be trusted, and it is not a safety rating. A planted instruction can make a model want anything; behind the gate it can do only what your rules allow, and the counter shows how often a rule stopped it.
Put the gate in front of your agents
Free to start. Tell us which models you run and what your agents do, and we help you write the first rules.