Watch on YouTubePlayPlays from YouTube. Google's privacy policy (opens in a new tab) applies.
Adam explains who reviews your PR once you work with a team, and why an AI review bot that mixes models from other providers catches what a second Claude session misses. He then describes how he has Claude check each bot finding before acting on it, and how review rounds lead to a merge.
What you'll learn
- After you open a PR, a human reviewer or an AI review bot comments on it, depending on the team.
- Common review bots: CodeRabbit, Graphite, Greptile, Cubic.
- Why a reviewer with a different model catches different things than Claude reviewing Claude's code.
- Don't take AI review findings at face value; have Claude check each one against the code first.
- A skill can triage bot findings with one sub-agent per finding and explain each in plain terms.
- Review is a loop: fix, commit, push, reply in the thread, ask for a re-review; two or three rounds are normal.
- Some bots give a merge-safety rating, and teams may set a threshold.
- Tell the team when the PR is ready, and get it merged quickly to avoid merge conflicts.
Chapters
- 00:00Who reviews your PR
- 01:29Why a different model helps
- 02:56Always check AI review findings
- 04:31A skill to triage findings
- 05:42Review rounds and merge ratings
- 07:41Getting merged before conflicts
- 00:00PR is raised. Um so what's next?
- 00:03Well, you might remember from module two that the next step on the PR life cycle is doing a code review.
- 00:11Now, doing a code review in a solo developer project versus doing a code review when you work with other engineers, especially when you come in as a designer, that
- 00:20might [snorts] be a totally different story.
- 00:22So let's see how this might be different this time around.
- 00:25So in module two, we talked about running that code review skill um directly within Claude Code.
- 00:32That is still totally an option and that is still totally something that you can do even before you merge or before you raise your first PR.
- 00:41Uh that would be a very nice touch.
- 00:43Um however, when the PR is raised, um depending on your uh depending on your team's rituals and processes and what you agree on, chances are you will either need
- 00:55to um attach over here a different GitHub user, just a different engineer as a reviewer, um and that person will just go through this PR, read or skim through
- 01:05the code and come back with findings to fix.
- 01:08Or, and I believe this is a bit more likely these days, you're going to see very shortly a new comment from an external bot, AI reviewing bot.
- 01:18And these bots can be tools such as CodeRabbit or Graphite or Cryptile or this one, which we as Tonik also helped uh contribute to uh Cubic.
- 01:29Now, the reason these AI code reviewer uh reviewing bots are perhaps a little bit better option than reviewing the code in a new session of Claude Code, especially when
- 01:40you created or when you wrote this code with the help of um Anthropic's models, is because all of these tools tend to use a combination of different AI models
- 01:52to review work. And the reason this is so nice and so important is because um you know, when you have the same model the work written by that same
- 02:02model, you know, they are going to be sharing the same blind spots.
- 02:06Uh, it's exactly as if you try to read or evaluate your own work.
- 02:11Even when you spawn a sub session or a totally new session of in Claude to review your PR written with Claude models as well, it would be more like
- 02:19you waking up the next day.
- 02:21Perhaps you are a little bit more rested and you are going to have a bit of a fresh perspective on the work you did the previous day, but it's
- 02:28not that your your knowledge is going to change dramatically.
- 02:31You're still going to be you're still very likely to be making the same mistakes.
- 02:37So when these external integrations shine is because they often time bring in models from providers such as OpenAI or Google or you know, Grok for example.
- 02:49Um, and you know, these models can genuinely bring in a totally new way of looking at the code to the table.
- 02:57And so when you inevitably receive code review in this PR from either these AI bots, the AIJ agents or a human reviewer, well, what you can do as a
- 03:09designer is can go back to Claude to first of all, before you act on anything, evaluate these code review findings.
- 03:16Especially when you work with AI bots, it's not that everything they are going to list here should be, you know, should be taken at a face value.
- 03:25Always validate all of the findings, especially when they are coming from these AI reviewers.
- 03:31Um, in one of the previous projects that I've been working on, um, the AI bot reviewer that was installed over there was Graptile.
- 03:40And Graptile were Graptile was really given us really fresh and interesting findings.
- 03:46I couldn't, of course, me myself being a designer truly evaluate whether they are true or false.
- 03:52Um, and so what I ended up doing after a while when I had these comments, you know, because like initially I was just coming back to my, you know,
- 03:59main session in which I opened up this PR assuming that I still had some context window left.
- 04:05And I would just ask it to pull up comments from from GitHub and know Claude can do this because you have that GitHub integration now installed.
- 04:13Uh so I would ask it to pull up these comments and uh basically reflect on them and see if there like there are false positives or whether there is
- 04:23anything like genuinely um worth acting on.
- 04:27But then with the time you know comments made by these AI bots started growing and you know they started finding these more serious items.
- 04:35So what I ended up doing is I ended up writing a skill um like that we use internally.
- 04:40The skill that basically uh worked like this um for each finding that uh Greptile or any other AI reviewer would post spawn a sub agent that was an instruction
- 04:52to the um to Claude.
- 04:53So spawn a sub agent uh one per each finding to evaluate it like see if it if it can be backed up from uh from the current state of
- 05:02code and uh whether we should fix it.
- 05:05And so what I would uh what I would see in the um in response after a couple of minutes was just a simple review.
- 05:13Okay finding number one this is a false positive finding number two false positive as well but the not finding number three is something that's genuinely worth acting on.
- 05:22What I also had in that skill was an ask to basically summarize each finding to me and lay it down in plain simple terms so that I as a
- 05:31designer can can follow it.
- 05:33And that really helped me become more aware of the types of mistakes that some of my AI Claude AI coding agents uh were prone to making more often.
- 05:43Um and so that would be the process that I would really recommend uh you try to adopt unless unless there is a different path or there is a different
- 05:52recommendation coming directly from the team you are working with.
- 05:56So you get a code review from a human reviewer or from a Greptile agent.
- 06:01You go and find these fixes and you post a response on here like in here in that grep-tile I'm sorry in that PR thread and of course for each
- 06:11finding or each bug that you fix you commit and you push these changes back to this PR.
- 06:17When you are done with round one you would often times either reach back to this code to this human code reviewer and ask it for another pass or in
- 06:27the case of these AI coding tools there is often times command that you can initialize that you can type over here in the thread.
- 06:35So in the grep-tile that would be I believe grep-tile bots or something along these lines and that would basically let grep-tile know that the code is ready to be
- 06:45re-reviewed. And you know depending on how large your PR is sometimes you can get everything everything right from the like right on the first try.
- 06:57Sometimes it can take two maybe three rounds before your PR is genuinely safe to be merged.
- 07:03Most of these AI coding reviewers will often time come with a rating on a scale.
- 07:09Grep-tile does the five scale rating which is really nice and easy to read.
- 07:13You basically learn whether like how safe your PR is to be merged on a scale from from zero to five and depending on your team your your like on
- 07:24what you agree on within your teams you might have for example a rule that says we don't merge unless we have a rating of four out of five from
- 07:34grep-tile or five five out of five.
- 07:37So you so you wait for this AI code reviewer to come back with the findings to deal with those and when this PR is safe to be merged what
- 07:49you do next is you basically have to let someone know that this PR is good to be merged.
- 07:55Again this is assuming you're working with AI code reviewers.
- 07:58And there might be a Slack channel there might be a different way to notify someone that this PR has been raised has been reviewed has been fixed and it's
- 08:07be ready it's now ready be And you want to make sure that this happens as fast as possible because especially in fast-moving teams, you might be looking at many
- 08:19many PRs raised every single day.
- 08:21With each new PR raised by your other, you know, engineering colleagues, uh your PR might start accumulating these merge conflicts, which we also saw in one of the previous
- 08:32videos, uh which is not the end of the world, but it is a little bit annoying to keep coming back to Claude asking it to um deal with these
- 08:40uh conflicts, especially because each conflict that we fix comes with a risk of there like being a new uh error that we would have to um we would have
- 08:50to later go and address.
- 08:52So you go and fix these findings, you let someone know, and you hope your PR is merged as quickly as possible without you doing it manually, but instead relying
- 09:03on your other colleagues.
- 09:05Now over here, we are alone.
- 09:08So what we are going to do is we are going to basically repeat the same process we did in module two.
- 09:13We are going to go back to Claude, and in the next video, we are going to handle the code review part ourselves.
- 09:19So I'll see you there.