The bugs my agents didn't see
My learning management system (LMS) project had been in the works for months. It finally reached stage, the point where the MVP goes to production. I sent it to someone else for UAT.
When the feedback came back, I was surprised. They had found logic bugs in many areas.
I started investigating the bugs with my agents. The first thing I noticed was uncomfortable: the agents claimed they had done the work correctly. But when I asked them to review the code again, they agreed with me and quietly started changing it.
Same code, same agent, two different answers.
Two possible reasons
By the end of the process, one thing was clear: we had failed to catch these functional and requirement-level problems. I saw two possible reasons.
I hadn't managed the agent well.
I didn't know enough about testing agent-written code, or I didn't have the right tool.
The real question
That led me to a more basic question: how do you test code written by agents? It goes beyond the code. How do you keep an agent on track during the build, and how do you make sure it actually built what you wanted? There's a second problem here too: scale. In a high-throughput setup, a human can't decide whether hundreds of PRs a day are correct. Human nature doesn't work that way. So human attention has to shift to the high-stakes decisions. But how?
Three approaches and their limits
I started looking into the in-between process, the methodologies and the methods.
1. Hooks
Some engineers used hooks. This approach runs tests or lint automatically, without leaving it to the agent's judgment.
But at the end of the day, a more basic problem shows up here: who wrote those tests? Running a test the agent wrote through a hook may look deterministic from the outside, but if the author didn't write the right test, you only think you've verified the code deterministically. In reality, that's nothing but an illusion.
In fact, this problem is so big that even if your methodology is TDD or anything else, it can keep you from telling a right result from a wrong one.
2. Deterministic skills
Other engineers took the general testing decisions, made them deterministic and turned them into a skill. They draw clear boundaries, like "the agent does this, doesn't do that, does this", and try to test the code through that skill.
But at the end of the day, even the deterministic sentences you give can't fully cover the work being done at that moment.
On top of that, the model you test the code with shouldn't be less capable than the model that wrote it. If you apply deterministic rules with a weaker agent, its statistical, probabilistic reasoning may keep you from getting the right result.
The real weak point is this: a deterministic skill can only hold a certain set of decisions. You need a separate skill for each project, and that isn't sustainable. On top of that, you can't guarantee that the skill you wrote always covers the full scope.
3. Sub-agents
Some engineers moved the check into sub-agents. They give the skills they built to sub-agents and keep the context of the agent that wrote the code separate from the sub-agent's context. They say this makes the process testable.
The weak part is that it still requires writing a skill for every project. It also needs the review to be done by an LLM that is more capable than the agent that wrote the code.
These three perspectives, hooks, skills, and even calling deterministic branches through sub-agents, convinced me that there has to be a pipeline that brings them together.
In other words, the code should be tested through these different steps, starting from the very beginning of the process, with the requirements.
The expensive part is no longer writing code. It's verifying it.
What Kun's no-mistakes does differently
While researching, I came across Kun's no-mistakes repo. It's written in Go and MIT-licensed.
The core idea is simple. Instead of git push, you run git push no-mistakes. The tool runs your change through a series of AI steps in a temporary worktree. If everything is green, it pushes and opens the PR for you.

Its philosophy matched what I had seen. Their thesis: the bottleneck has moved. Agents now write code faster than teams can verify it.
Their answer rests on three ideas:
Author and verifier are separate. Verification happens in a clean session, not in the session of the agent that wrote the code.
"Tests passed" isn't enough. An evidence agent spins up the real product and runs user scenarios end to end. Any claim it can't prove is marked untested.
Anything unclear goes to a human. Findings fall into three classes:
auto-fix,ask-userandno-op. Anything that can't be classified becomesask-user.
My favorite detail is the reviewed_paths check. The reviewer lists the files it actually read. If the list doesn't cover every changed file, there's no approval. Simple, but valuable.
Where it falls short
It has weak spots too.
The review is still probabilistic. The docs themselves say it isn't a certificate.
The agent is told not to touch files outside its temporary copy, but nothing technically stops it. For real safety, run it in an isolated environment, like a container or a separate CI runner.
Every push means several agent runs, so cost and latency go up. Not all nine steps call an LLM, but Review and Test are the expensive ones. When review finds something, a review, fix and re-review loop starts, and the reviewer reads the context from scratch each time.
If intent is inferred from conversation logs, every check can end up aimed at the wrong target.
What I'm doing now
Still, I made my decision. I've started using no-mistakes as a real quality agent on top of my CI/CD pipelines, both locally and on the remote side of my repos.
If you want to start somewhere tomorrow:
Don't let the agent that wrote the code also write its tests.
Run the review in a separate session from the one that wrote the code.
Ask for evidence, not "tests passed".
I'll share what I learn as I use it in future posts. For now, I can say one thing: don't trust the agent. Ask for evidence.


separating the author from the verifier is the part i'd underline. a green run from tests the same agent wrote tells you the code matches its own idea of the task, not yours. checking against the requirements is the step that's easy to skip.
Your point that passing agent-written tests can create a false sense of determinism resonates—separating the author from the verifier helps, but checking against the original requirements is what catches omissions. In AiEnsured agentest, an Agentic AI Testing platform, one contract-review run rated terms allowing fees to change without notice and imposing unlimited liability as medium risk rather than high; that kind of plausible, confident miss is why I value independent evidence and requirement-level checks over a green test suite.