02Coding agents
Let a coding agent check its own changes
An agent that writes code should not be the one that judges it. A hook that runs opi after each edit hands the agent the findings of the tools the project already uses, the same ones you would see.
- Command
opi --check commit --json- Verdict
ready,gatesandchecks, schema 1- Exit code
- Non-zero when not ready