Vibe coding: how I raise the quality of the output
I changed my setup for building with AI agents to get better results: a planner, a builder, a checker, plus mutation testing and a guard. Here's how it works.

I build software with AI agents. My website, internal tools, small apps, for work and in my spare time. And I want to get better at it. 🤓
So last weekend I spent a few extra hours on YouTube (my source of choice 😃). And of course Claude itself dug through new articles for me, including some from Anthropic's engineering blog.
That's when I realised: my setup is no longer state of the art.
My old setup: one agent does everything
One agent planned, built and, at the end, checked its own work. That works surprisingly often, but if you grade your own homework, you're usually lenient with yourself.
In practice, it looked like this:
- The bar can be moved at will. If something doesn't work, the goal gets adjusted rather than the code.
- All green, but something was still broken. Bugs in the UI and the like went unnoticed, even though every test was green.
- "Shall I continue?" A question after every step, because no clear goal was defined, so the agent didn't know whether to stop or keep going.
So maybe not quiiite optimal. 😅
My setup today: three roles, separate rights
The idea is ancient in software development: whoever builds doesn't sign off their own work.
- Planner: Before anything gets built, it writes down testable acceptance criteria. For example: "When I switch the language on a blog post, I land on the same post in the other language." Once I approve the criteria, they are frozen.
- Builder: Writes code and tests. It can't change the criteria or put anything live, and I mean technically can't. A "please don't" in the prompt isn't enough.
- Checker: Gets the original criteria, not the builder's summary, and checks against them, including in the running app. It can't change anything itself. If it finds a real bug, the work goes back to the builder.
On top of that, I added:
Mutation testing ("green, red, green"). I hadn't heard the term before. The checker deliberately plants small bugs in the code, say a "greater than" instead of "greater than or equal". Then the tests run. If they turn red, all good, because they caught the bug. If they stay green, they're worthless. Then the bug comes out again and everything has to be green again. A bit like testing a smoke detector: you hold smoke up to it and see if it beeps.
A guard. Every bigger task starts with a checklist. As long as something on it is open, the guard won't let the session end. No more "Shall I continue with xyz now?" when xyz was part of the job all along.

Benefits & costs
- Bugs show up before I have to find them live. Before anything goes online, a second agent has checked it against the criteria.
- I can hand off bigger packages without constantly sitting next to it.
To be honest, it also costs a bit more time and more tokens. So after the first few days I already tightened things up:
- A typo doesn't get three agents. Small, clear tasks I still do directly with just one agent.
- Real bugs go back to the builder, small remarks are passed along as notes.
- The full test run happens in the automatic checks on GitHub before anything goes live, not in every single review round.
The next step: dark factory 😈🖤
Being able to hand off bigger packages matters a lot to me. A factory, meaning a dedicated setup, makes that possible. "Dark" because you partly lose full sight of what's going on, since most of it is handled by agents.
What I want you to take away
- Give clear DoDs (definitions of done). That helps Claude understand where you want to go and when the task is really finished.
- You don't have to reinvent the wheel. My setup builds on the Superpowers plugin for Claude Code. Highly recommended if you're not using it yet.
- Make it clear to Claude that it should only use this for vibe coding tasks, not all the time. Otherwise the tiniest tasks suddenly turn into 10-minute projects.
Thanks for reading, and have fun putting it into practice ✌️
PS: Just copy the URL of this blog post and send it to Claude, asking it to build you a setup like this. That way you don't have to explain a thing.