16:50Most of our work in Prisma is completed by a frontier model and is reviewed by a much cheaper open weight model. Yet, 61% of our PRs produce comments from our review agents, and four out of five of those comments result in an actionable code change. Even though the code was written by a state-of-the-art model and the review agent is one of these cheap open weight models, it's still finding actionable stuff to push back on the frontier model with. So, this shows to me just how valuable this adversarial review still is.
17:23Maybe one day we get to a point where it's not really needed because the agents are so good, but I find that right now the agents can get so tunnel visioned on the task that they're set out to achieve and the reasoning they used to get there that they can miss certain other aspects that we'd want a review agent to really help them steer back on the right direction for.
17:41So, a good review agent will check not just for the correctness in implementation, but also that the code is understandable and doesn't have unnecessary complexity associated. Maybe it helps you find opportunities where some of this code already existed and could have just been uh cleaned up to reuse.
17:58It should, controversially here, have no bias from the original thread. I think that in having or spinning up a review agent from the same thread that did the implementation, it has all this thought process into the reasoning and as a result it starts biasing towards the same solution.
18:14But if you spin up a review agent in a brand new empty thread and you give it just the context of the PR of the change and the task that it's set out to resolve and the task is well defined in terms of the outcomes that it's set to achieve, then the review agent performs so much better. It starts looking for opportunities uh to achieve that outcome in a more efficient way.
18:37And it needs to review in the context of the whole repository. You can't just give the review agent the exact files that were changed of in the diff from Git and expect it to do as good of a job. What we do is we spin it up in a sandbox, we give it uh constrained access to navigate the code in that sandbox, and then we give it the context of the diff to steer it in the right direction. But in doing so, it can look for things like coherence, consistency, and alignment across the whole code base. I often find our review agents catching things like a missed docs update or even a place where the bug exist same bug that was fixed exists in another area of the code. And it can only do that because it can see
19:14all of the code, not just this particular change that came in. And it needs to leave actionable feedback that includes the intent of the suggestion, not just a change this, you know, from this code to this code, but rather why. And that helps these agents have a dialogue between what the right solution is.
19:32And importantly, it needs to be able to concede when it's proven wrong. Agents can fight each other very aggressively if you just tell them to find every flaw in a PR branch. It will look for every little picky detail it can, but when you align these agents, the implementer and the review agent towards the goal of shipping high-quality software, then the goal is now shipping, not finding problems. But quality comes from pointing out the things that are actually going to be a problem in reality.
20:03So, what I found in doing this, and also instructing our implementer agent that it is the subject matter expert and has the authority to push back because it also doesn't want to just take every single action that the review agent produces. It has its full reasoning about why it solved the problem the way it did. So, when you give them these roles on the team and let them uh debate through that lens, I found that they produce extremely high-quality results.
20:26Like I said earlier, four out of five of our PR comments produce actionable feedback, and that means one out of five actually gets a pushback from the implementer that that was not valid or in scope for the problem it's trying to solve. Um that balance is pretty phenomenal to me.
20:42And that all that feedback comes back to the coding agent, which then iterates until the review agent finally approves it. Then it comes to you. You get to review once at the end, after all of that is done, all the picky details have been ironed out, all the edge cases that they could find have been covered, and it's up to you to decide how much of this do you need to look at, how much do you feel confident in merging, and everything that happened before that was the agent's job, including verification.
21:09And that moves into what your new role is, curation.