Skip to content

Build an AI code review bot in 30 minutes with Vercel Eve

How I AI

24m
Transcript

Original podcast

Summary

Written by a model from the transcript; not yet reviewed.

Engineering teams drowning in AI-generated pull requests can safely skip manual human reviews for low-risk changes by implementing an automated risk-scoring and approval bot. Using Vercel Eve and Codex, a custom PR review agent can read code diffs, score risk based on factors like blast radius and data security, auto-approve low-risk contributions, and escalate medium or high-risk changes to Slack for human review.

Drawing inspiration from engineering practices at Intercom, this approach dramatically increases throughput while maintaining quality and compliance frameworks like SOC 2. By automating the grunt work of reviewing routine documentation or minor updates, engineering leaders can redirect their attention to complex code while accelerating merge times and overall productivity.

  • Automate pull request reviews by deploying a Vercel Eve agent that reads code diffs and assigns a risk score. 6:17
  • Establish clear risk thresholds where any score under twenty-four points qualifies as low risk and can be handled quickly. 16:20

Chapters

  1. 0:00
    Episode Intro and Problem Statement

    The host outlines the AI PR overload problem and promises a solution.

  2. 1:05
    Intercom Inspiration and AI Review Success

    The host cites Intercom’s AI‑approved PR strategy and its impact on throughput and quality.

  3. 9:20
    Building the PR Review Bot in Codex

    Step‑by‑step walkthrough of creating the bot’s prompt, skills, and configuration using Codex and browser automation.

  4. 12:25
    Technical Flow and GitHub Integration

    Details of how the GitHub app triggers the Eve agent, runs risk scoring, and posts Slack notifications.

  5. 17:30
    Demo of Merge Mommy Bot in Action

    Live demonstration of the bot reviewing three example PRs and handling approvals and conflicts.

  6. 21:54
    Recap and Call to Action

    The host summarizes key steps and invites listeners to implement and share their experiences.

  7. 23:45
    Closing Remarks and Outro

    Final thanks, social media prompts, and episode sign‑off.

Highlights

Quotes

  • “You don't have to review all your PRs.”
    Unnamed speaker · 0:37
  • “AI-approved PRs are approved faster, actually, five times faster than their human PRs.”
    Unnamed speaker · 4:14
  • “It is literally just writing instructions and skills.”
    Unnamed speaker · 15:37
  • “Now, I just have to say, this is something that I was really intimidated to build.”
    Unnamed speaker · 21:10
  • WorkOS 1:25–2:33

About this episode

AI writes most of my code now, and that created a new problem: a PR queue I couldn’t keep up with. In this episode, I walk through how I built Merge Mommy, a Vercel Eve agent that reads every PR after checks pass, scores it across six risk dimensions, auto-approves the low-risk ones, and pings me in Slack for anything that needs a human. I built the whole thing in one Codex session, it’s SOC 2 compatible, and it’s already cleared my backlog. What you’ll learn: Why AI-generated PRs create a review bottleneck and why the answer isn’t reviewing all of themHow Intercom 5x’d PR approval speed and reduced revert rates by putting AI in the review loopWhy Vercel Eve is the simplest framework I’ve found for deploying AI agents in Slack and GitHubHow I built a full PR review agent in Codex with one prompt and a few steering turnsThe six components I use to score PR risk (blast radius, reversibility, data security, ops impact, verification gap, and change surface)How I used Chrome browser use to handle Slack bot and GitHub app configuration so I never had to click through setup screens manuallyWhy auto-approved PRs can be SOC 2 compliant as long as the process is auditable, queryable, and in your risk policyHow to set up Slack escalation so low-risk PRs become a two-click merge with no manual review— Brought to you by: WorkOS https://workos.com/?utm_source=lennys_howiai&utm_medium=podcast&utm_campaign=q22025—Make your app Enterprise Ready today — In this episode, we cover: (00:00) The PR review backlog problem nobody’s talking about (02:35) Why you don’t have to review every AI-generated PR (05:14) How Intercom built AI-approved PRs (and proved they’re safer) (06:10) How the Eve framework works (directory, skills, channels, connectors) (09:16) The Codex prompt I used to build the entire bot (11:36) What the agent actually does: read, score, approve, or escalate (13:07) Setting up your Eve agent (15:47) The six-component risk scoring model (17:23) Merge Mommy in action: three live PR examples (21:10) Recap and how to build your own version — Tools referenced: • Vercel Eve: https://vercel.com/eve • Vercel AI SDK: https://sdk.vercel.ai/ • Vercel Chat SDK: https://chat-sdk.dev/ • Codex (OpenAI): https://openai.com/codex — Other references: • AI is approving our pull requests: Here’s how we made it safe:https://www.intercom.com/blog/ai-is-approving-our-pull-requests-heres-how-we-made-it-safe/ — Where to find Claire Vo: ChatPRD: https://www.chatprd.ai/ Website: https://clairevo.com/ LinkedIn: https://www.linkedin.com/in/clairevo/ X: https://x.com/clairevo — Production and marketing by https://penname.co/. For inquiries about sponsoring the podcast, email [email protected].

Transcript

0:00
24:13

4,257 words · 1 speaker

Topics

  • AI
  • Slack
  • Eve
  • GitHub
  • PR
  • Merge Mommy
  • Vercel
  • Codex
  • Intercom
  • Chat P R D

Page updated · transcript and summary are machine-generated