The gate now runs on a developer's own machine, in front of Claude Code, Codex and OpenClaw, with no server and no key. One command sets it up. The agent cannot switch it off or loosen its own rules. Rules are changed by talking to Claude and applied by the person, outside the conversation.
## Why it matters
A coding agent on a developer's laptop runs shell commands, edits files, pushes code and calls tools, on the
developer's own machine and with their own logins. Until now, putting our gate in front of it meant copying code,
getting a key and editing three settings files by hand. Few people do that.
So we made it one command. The gate now runs on the developer's own machine, in front of Claude Code, Codex and
OpenClaw: no server, no key, no network. Every tool call is checked against the rules before it runs, and it passes
or it does not, with a fixed reason the model reads. The same call on the same rules always gets the same answer.
## What changed
- **One command sets it up.** `splabs-gate init` finds the agents on the machine and wires each one. The rules are
written for that machine: the project can be read and written; the home folder can be read, but not the places
that hold credentials; the gate's own files cannot be touched. It starts by recording only. Blocking is switched on
once the developer has seen a few days of decisions.
- **The agent cannot switch the gate off.** The gate's files and the agents' hook settings are closed to the agent.
Loosening the gate (back to recording only, uninstalling, adding a tool) needs a person to type yes in their own
terminal. A command run by an agent is refused.
- **Rules are changed by talking to Claude, and applied by the person.** Type `/gate don't let agents run
terraform destroy`. Claude writes the rule and checks it. It replays the rule on the decisions already in the
developer's log ("it would have stopped 3 calls that passed"), then hands over a command. Claude cannot apply the
change. A planted instruction in a document can make an agent propose anything, so the change is confirmed
outside the conversation.
- **Ready-made, signed rule packs.** No force push, no push to main, no reading of secret files, no recursive delete
of the disk or the home folder. Every pack is signed: one changed byte and it is refused.
- **A team's rules travel with the repository, and can only tighten.** A repository can come from anyone, so a team
file that tries to open something is ignored for that part.
- **A report of what passed, what was stopped and what was asked of a person**, per agent, as a page on the
machine. Sharing the log with one's own account is off unless the developer turns it on, after reading exactly
what would be sent.
## What it does not do
The gate reads the call an agent asks to make. It does not watch inside the program that runs: it sees `npm test`,
not what the test script does. Since 3 December 2026 it reads every shell line against the same folders as the
file tools (until then its shell rules matched exact text, and a line written another way got through); a line it
cannot read goes to a person. The way out of the gate is still a person at a terminal. Codex does not send its hosted tools, such as web
search, through hooks, so the gate does not see them.
## Technical detail
- **Speed**: about 40 to 60 milliseconds per tool call, most of it Python starting. Inside the gate a call takes
about 14 milliseconds.
- **Several agents at once**: 320 calls from 16 processes at the same time gave 320 decisions in the local log, and
none was lost.
- **How each agent asks a person**: Claude Code shows its own prompt; OpenClaw raises an approval request. Codex
cannot ask a person from a hook, so it is told a person runs that one.
- **Tests**: the installer has 61 tests. The Claude Code check of the gate's local server reads it as connected.
- **Sharing**: tried against our own account; the second send writes nothing twice.
- **Three systems**: the tests and a clean install pass on Linux, macOS and Windows. The Windows run found three
real defects in how paths were compared and how the signed packs were stored, now fixed.
- **Not yet run**: inside a live Codex or OpenClaw.
## Update, 2026-12-03
A test by Kashyap showed that the folder rules held for the file tools and not for the shell: a secrets folder closed
to the Read tool could still be read with `cat`, with a pattern such as `~/.a?s/cred*`, through a variable, or by a
script the agent ran. One change in the gate addresses it; what a script does once it runs is the developer's own sandbox to hold.
- **The gate reads the shell line against the same folders.** The line is read for what it touches, with the same
rules as the file tools, so `cat ~/.aws/credentials` is stopped like a Read of the same file, however it is
written. A line the gate cannot read (a command it does not know, one that runs other code such as `npm test` or
`make`, a variable) goes to a person. The
reader also follows `~`, files written with a here-document and thirty more everyday commands (`rg`, `jq`, `du`,
`git show`, `git blame` and others). Recording only still comes first, so a developer sees how often a line
would be stopped before blocking it.
- **Found on the way**: a name written in other letters (`~/.AWS/credentials`, `CAT`) is the same name to the gate on every system: since engine 3.4.0 the gate compares names and texts in lower case, and a rule can ask for the exact comparison; and a file named inside a git revision (`git diff HEAD:.env ...`) is no longer read as a file of the
project.
- **Numbers**: a shell line now takes about 0.5 milliseconds inside the gate instead of 0.1 (median; about 3
milliseconds for the whole hook in one process, Python's start not counted). The installer's tests went from 61
to 79, and 4 tests cover the new reading of the shell.
## Update, 2026-12-04
The gate is now version 4, and it no longer reads a shell line, a query or a path for its meaning: it compares the values of an action with the lines its owner wrote (equals, starts with, ends with, contains, a pattern with *, a number range, a named list), in order, allow, deny or ask, and everything starts closed. A shell line goes to a person unless a line names it. The readers this post describes are gone, with everything they did. The numbers above were measured on the earlier version and are kept as they were; what version 4 changes is in the changelog.
This update is not available.