Coding agents are powerful because they act. A gate is the small decision layer that decides whether the next action should run, wait, or escalate.
Where gates fit
Coding agents fail in predictable places: they edit the wrong file, run a destructive command, or keep going after the task is already complete. A gate turns each of those into a typed question with a small option set.
The entries in this collection cover pre-action approval, intent routing between agents, edit review, and context pruning before the model sees a large repository.
Design the question first
Start with the action you want to control and the options the harness can actually enforce. A gate that returns allow, deny, or escalate is useful only if each branch maps to a real code path.
Keep the state small and specific. Include the command, the target paths, the diff summary, and the policy clause. A vague state produces a confident but unusable answer.
Measure the gate
Track false allows and false denies separately. A gate that blocks too much gets disabled by the team, and a gate that allows too much is worse than no gate. Calibrate the threshold on real agent traces, then keep a review sample.