Lanes
Path-partitioned queues merge and test in parallel (queue --parallel N); only a short publish step is serialized.
Many parallel agent sessions go in; a small number of tested, risk-tiered, provenance-tagged commits come out.
Agents never open pull requests.
From the README’s “Quick start” section. Full options, requirements and troubleshooting are there too.
Open the README$ pip install git+https://github.com/juw12/gate
$ cd your-repo
$ gate init # writes gate.toml, detects your test command
$ gate spawn fix-1234
$ gate submit fix-1234 --model <model-id> --tool <agent-tool>
$ gate queue --drain --parallel 8
$ gate verify
gate spawn gives an agent its own branch and worktree (or --no-worktree for remote sandboxes that push agent/<id>).
gate submit checks policy: secrets, size and risk tier.
gate queue --drain merges batches with merge-tree, runs the relevant suites and publishes green results.
gate verify runs on a timer; a red target is bisected and the culprit reverted automatically.
Path-partitioned queues merge and test in parallel (queue --parallel N); only a short publish step is serialized.
Server-style merges with git merge-tree, batched, then published with compare-and-swap: update-ref locally or --force-with-lease to a remote.
Suites run only when their paths change, in parallel, and pass results are cached by tree. Failing batches are bisected.
Auth, infra, CI, migrations and the policy file wait for gate approve --by NAME. Changes over max_changed_lines bounce back to the agent.
Added lines are scanned at submit time; a hit blocks the merge without echoing the value. Traces and archived diffs are redacted.
gate verify tests the target; if it is red it bisects back to the last green point, finds the breaking agent commit and publishes a revert.
Agent-Session, Agent-Model, Agent-Tool, Spec, Risk-Tier, Approved-By and more as trailers; author is the agent, committer is gate.
Heartbeat locks and atomic writes: a gate killed mid-publish leaves no lost or duplicated work, and the next run recovers.
gate audit: one report of every agent merge, approval, refusal and bypass, for your auditorStraight from the README, so you know what you're getting before you try it.
15 files in the repo · last updated 7 Nov 2026.
Browse the codeCLI, Python.
The commands in the “Quick start” box above come straight from the README. Paste them into a terminal; the README covers options and troubleshooting.
There is no browser version.
Semantic conflicts are caught after the fact by gate verify, not prevented. Secret redaction is best-effort; plug in gitleaks or trufflehog via secret_scan_command for fail-closed coverage.
Not yet: it's marked “live” and still changing. The README always has the current state.
The source is public on GitHub under the MIT licence.
Juwen Lie, an R&D mechanical engineer in Batam, Indonesia, as an independent personal project.
A merge gate for AI-agent code