DEV Community

Cover image for I Built a GitHub Action That Reviews Pull Requests Using Two AI Models
LearnCodeGuide
LearnCodeGuide

Posted on

I Built a GitHub Action That Reviews Pull Requests Using Two AI Models

Most AI code review tools stop after producing findings.

The problem is that AI can generate convincing but incorrect suggestions.
I wanted a safer workflow.
So I built LearnCodeGuide PR Review.
How it works:

  • Collect changed files from the pull request
  • First AI performs review and proposes fixes
  • Second AI validates findings
  • Generate a single structured GitHub review comment

Output includes:

  • Health Score
  • Executive Summary
  • Per-file findings
  • Suggested fixes

If a CRITICAL issue is detected, the action can fail the job before merge.
The goal isn't replacing developers.
The goal is adding a second layer of review before code reaches production.

Top comments (0)