Agent pull requests checked before a human merges: a Claude + GitHub Copilot stack
The struggle: Coding agents open pull requests faster than your team can review them, and you fear merging code nobody really understood.
What you end up with: Every agent pull request gets a risk-sorted review note, and a human approves or rejects it.
Compare the pull request to the task the agent was given, let Copilot do a first review on the PR, and have Claude Code explain what the diff really changes. A human still reads and merges.
Tools: Claude, GitHub Copilot. Level: Pro. Time: 20 min per pull request.
Use it if
- Agents or teammates open pull requests you are asked to approve
- You keep missing what the agent changed outside the task
- You want a repeatable checklist, not a gut feeling
Skip it if
- You need a security audit; this is a first pass, not an audit
- You plan to merge without a human approval
The method
Compare the task to the claim (Claude: Chat)
Paste the original issue or task text and the pull request description. Ask Claude what the task required and what the PR says it did. Do not paste secrets.
Prompt to copy:
Below are the task the agent was given and its pull request description. List: 1) what the task required, 2) what the PR claims to do, 3) anything claimed that the task did not ask for, 4) anything asked but not mentioned. Quote both texts for each point. If something is unclear, say so. Task: [paste] PR description: [paste]
You get: A short list of what was asked, what is claimed, and what is missing or extra.
Tip: Agents often add work nobody asked for. Scope drift is the first thing to catch.
Get a first review on the pull request (GitHub Copilot: Code review)
On github.com open the pull request, and in the right sidebar under Reviewers click Request next to Copilot. Read its comments, which carry a severity of High, Medium or Low.
You get: Inline comments you can sort by severity.
Tip: Copilot leaves a Comment review that does not count toward required approvals, so it never replaces a human.
Explain the diff and the risky paths (Claude: Claude Code)
In a clone, check out the PR branch and run claude --permission-mode plan. Ask it to explain the diff, then trace each changed path that touches data, auth or money.
Prompt to copy:
Compare this branch with main. Explain what changed in plain words, file by file. Then list changes that touch authentication, permissions, data deletion, payments or external calls, with the file and why each is risky. List tests that exist for them and tests that are missing.
You get: A plain-words explanation and a list of risky paths with file names.
Tip: Plan mode makes no edits, so you can ask hard questions safely.
Run the tests and read the results yourself (Claude: Claude Code)
Run the project's test command yourself, in a clean clone or sandbox with no real credentials. Then ask Claude Code which changed behaviours no test covers, and note them as review comments.
Prompt to copy:
Which behaviours changed in this diff that no existing test would fail on if they broke? List them with file names. Do not edit anything.
You get: Test results you saw yourself plus a short list of untested changes.
Tip: Do not accept the agent's claim that tests pass. Run them.
Write the review note a human signs (Claude: Chat)
Paste your findings and ask Claude for one note: approve, request changes, or ask the author for more. You post it and click the decision yourself.
Prompt to copy:
Turn these findings into a pull request review. Put blockers first, then questions, then optional suggestions. Be specific and polite. Do not claim anything I did not verify. Findings: [paste]
You get: A review note with blockers separated from nice-to-haves.
Tip: If you cannot explain a changed file, that is a blocker, not a nit.
Where this goes wrong
- The Copilot docs do not say whether code review runs on pull requests opened by agents. If Request is missing on that PR, skip that step.
- AI review misses things, and Copilot may repeat comments on a re-review. Treat comments as leads to check.
- A human approves every merge, and the tests must pass first.
- Agent code is unreviewed code, so run it only in a clean clone or sandbox. Never paste secrets or production data into any step.
Swap a tool
- ChatGPT instead of Claude: Use it for the task-versus-claim comparison if Claude is not available to you.
Sources
- GitHub Docs: Using Copilot code review
- GitHub Docs: Copilot plans
- Claude Code docs: Common workflows
- Claude pricing (Claude Code from Pro)
More like this
- Fix a broken app without breaking more
- Short videos that open with a real hook
- Check if anyone pays before you build
Updated . Written with AI help and checked by an independent review step, as described in our editorial standards.