Add LLM review to pull requests and related docs
A team inserted LLM checks into PR review, architecture testing, and documentation, with developers still approving the agent’s suggestions.
- What they did
- The team already had a review process built around explicit pass/fail requirements, code style checks, static checks, test automation, and manual QA and UAT rounds. Roughly two months ago, they expanded the pipeline with LLM-based architecture tests, LLM-generated product documentation, and an LLM reviewer for pull requests. When a change lacked enough context, the agent could search for matching Jira tickets and use them to spot missing requirements, but a developer still had to decide whether to accept the advice.
- How it went
- After the change, merged PRs went up by a factor of three, and problems are trending down. The average time to merge is around one day, although the author does not tie that result to LLM use. A downside is that the reviewer can become overly cautious, such as insisting on locks that no longer fit the business rules.
- Tips
- Use the agent for first-pass review, then have a developer make the final judgment on anything it flags. Expect it to be useful for finding spec gaps, but also to drift into outdated assumptions as product knowledge changes.
Try it yourself with GitHub Copilot
Set up an automated PR reviewer for [repo name]. For every pull request, compare the code changes with the linked item in [Jira/project tracker], look for bugs, missing tests, style problems, and mismatches with the requirements, and then draft a short review comment. If the PR is missing context, search for related tickets and note which ones informed your review. Before any change is committed, merged, deleted, or submitted, pause and show me the proposed workflow, the files you would add or edit, and the review output for approval.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Send blocked jobs to whichever model can handle them
A commenter used a shared policy file and SQL task board to move rejected tasks from a local model to another model.
Re-check implementation against re-derived user goals
Have an agent reconstruct the user’s requirements from all messages, then audit the code and tests against that list before changing anything.
Turn a docs site into Markdown files with an agent
They used a custom crawler so Claude could save a 60-page docs site as Markdown without crowding the chat.
Deploy a project and register a domain from one agent flow
A custom agent can set up a Cloudflare account, buy a domain, and ship an app with only brief approval steps.
Use an agent to inspect and explain COBOL on z/OS
A desktop agent connected to a mainframe to read COBOL, submit jobs, and summarize failures from spool output.
Check upgrade risks before you ship
A ReAct agent reviewed dependency data for a planned cloud upgrade and blocked it when it found an incompatible SDK version.