agent-merge: Jev-gated self-merge for agent branches
The one sanctioned way an AI may merge its own work: a script that reviews it first and refuses if it didn't show its work.
how it works
Two layers, fail-closed: mechanical checks (agent/* only, clean tree, merges cleanly, CI green, never-stage paths, size cap, opt-out file, due-diligence note with Verification) then seven yes/no TypeSafe Jev classifier questions with thresholds; Claude Code autoMode allow-rule carves out only this exact invocation.
Automation: Something that runs on a schedule by itself.
The code for this one lives in a private repo. This page explains the idea so you can build your own.