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.
More from coding & agent
- Dev ships throwaway Postgres for agents: pg19 via pglite on Cloudflare DO over raw TCP — ritakozlov · 2026-11-29
- Product idea: cloud Android VMs and home WiFi proxies to make agents look human — Darpinian · 2026-11-29
- 38 free agent skills distilled from shipping three live AI products — PawelHuryn · 2026-11-29
- Step 5: run evals on synthetic data pre-launch, watch real traces after — PawelHuryn · 2026-11-29
- Break your agent before attackers do: 6 tests mapped to OWASP LLM Top 10 — PawelHuryn · 2026-11-29
- PM shares playbook for shipping 4 customer-facing Claude agents into production — PawelHuryn · 2026-11-29