A founder spent around eight weeks of his spare time adding 349,000 AI-generated lines to a community platform we had built. Our brief was to make it production-ready and ship it. On the surface it worked. Underneath, anyone signed in could read strangers' private chats, and the tests that came with it passed. Three of us could not review our way through it. At that volume, reading harder stops being a strategy.
He kept building while we refactored. We had two jobs at once: rein in what was already there, and stop it happening again.
This is not a prompt-engineering workshop or a tool demo.
Agents generate faster than any team reviews. What piles up in that gap is cognitive debt, verification debt and architectural debt, and none of it shows up in a diff. The harness is the scaffolding in your repository that an agent works inside, so every session inherits your standards. You will build one. Five layers.
Repository instructions every agent session picks up, whichever tool it runs in.
Deterministic enforcement (custom analyzers and lint rules, strict type checking, post-edit and pre-commit hooks, CI that blocks the merge) so your rules live in machinery the model cannot argue with.
A task ledger that governs context as much as work: one agent implements, another reviews, consequential changes wait for your approval, and each agent gets enough context to do its job and not so much that it starts making tests pass around its own gaps.
Model routing that sends each task to the cheapest model that can do it, which is a cost decision as much as a quality one.
Verification the model doesn't grade: tests written from the spec by a session that never saw the code, a call to every endpoint as every kind of user, and checks that every balance matches its transactions.
You spend the day deciding where the model may go, then letting it go there fast.
You will wrap a deliberately vibe-coded codebase in these controls, layer by layer, and watch each one surface a defect the last one missed. The defects are the ones we hit on that project, generalised so they land in any stack. The last hour is your own repository.
Every merge faces one test. Your phone wakes you at three in the morning, production is broken, your AI provider is overloaded. Can you debug it half asleep? If not, it does not merge.