← Who MergeSafe is for

Reviewing pull requests written by AI agents

Last updated .

How do I review pull requests written by AI coding agents?

Install MergeSafe on the repository, include the agent’s account in the authors it reviews, and every push the agent makes gets a review whose findings come with a prompt you can hand straight back to the agent.

Coding agents such as Claude Code, Cursor and Copilot’s coding agent open more pull requests, and bigger ones, than people do. MergeSafe reviews them the same way it reviews anyone’s, with a few features that matter more when the author is an agent.

What helps with agent-written code

Fix the findings from your editor

Connect your own coding agent to MergeSafe. It reads each finding and its fix prompt, fixes it in your checkout, runs your tests, replies on the thread and asks for a re-review, without leaving Claude Code or Cursor. Your code stays on your machine by default: MergeSafe’s API returns the findings, not your code. Only request_review_with_context, for an organization that has turned it on, sends test excerpts. See Fix findings from your editor.

Keeping a busy agent affordable

Setting it up

  1. Install the GitHub App on the repositories the agent works in.
  2. If an agent opens pull requests under its own bot account, select that account in whose pull requests are reviewed: bots are left out unless you select them.
  3. Make mergesafe-review a required check in branch protection.

Related: How a review works, Replying to a finding.

Next: Startups and small teams →