Generator-critic pre-push hook: a second AI model must sign off before code lands

curious_vii · x · 2026-10-13

The author shares a workflow for client-facing repos: a pre-push hook ensures no code lands until a second AI model signs off. The reviewer takes an adversarial look at each change. Two ways to run it: (1) same model, same session — "oh, and double-check it all"; (2) a generator-critic loop where the reviewer has none of the builder's context. Token intensive, but works well, per the author.

Original post →

More from coding & agent

coding & agent channel →