What it does
gap-trap is run once in a repository. It reads the code, writes rules that fit that codebase and adds a gate for each rule, a check that fails the commit or CI run when the rule is broken. It aims to keep AI-written code correct without reviewing every line.
Use cases
- 01Block agent code that bypasses a layer boundary
- 02Fail CI when a new test cannot fail
- 03Stop agents from duplicating existing helpers