DovetailSee the queue

Review guide · Published

How to review GitHub Copilot agent pull requests

The agent wrote the code. You still own the decision.

Review a GitHub Copilot agent pull request against the task, not against how confident its summary sounds.

GitHub now calls this Copilot cloud agent. This guide covers its pull requests, not Copilot suggestions in your editor.

A useful review ends with a reason to merge, a concrete correction, or a reason to stop.

1. Understand the task before opening the diff

Read the original issue and the pull request description. Write down the expected behavior, affected users, and what must stay unchanged.

Look for missing acceptance criteria. A task saying “fix login” needs a specific failing case before its implementation can be judged.

Compare the claimed solution with that scope. An unrelated refactor or new dependency needs a reason, even if it looks tidy.

Check the base branch and linked issue. If several agents touched the same area, account for changes already merged.

2. Inspect the diff, not just the summary

Use GitHub’s Files changed view. Start with the file list to spot unexpected migrations, dependencies, configuration, and generated files.

Then read every changed line in its surrounding code. Trace the input through validation, state changes, and the returned result.

Check failure paths: empty input, missing access, partial failure, retries, and concurrent requests. Correct output on the happy path is not enough.

Pay particular attention to authorization checks, database writes, and handling of secrets. Confirm that access checks happen on the server.

Inspect lockfile changes alongside dependency declarations. A large generated diff is not permission to skip the source that produced it.

Use linked session logs when the implementation is unclear. A “Verified” commit indicates provenance, not that the code is correct.

3. Check tests and permissions before running workflows

Read the tests themselves. Do they reproduce the original failure and assert the intended result, or merely exercise the new code?

Run the project’s documented checks in a trusted, isolated environment without production credentials. Avoid executing unfamiliar setup scripts before inspecting them.

For a bug fix, confirm the regression test fails before the fix and passes afterward. Include a failure case and an unchanged behavior.

For a UI change, inspect the real screen at phone width and by keyboard. For a migration, examine existing-data compatibility and recovery.

Check whether required checks ran on the latest commit. Pending, skipped, and missing checks are not passing checks.

GitHub normally requires human approval before workflows run on Copilot’s changes. Repository settings can allow automatic runs, so inspect the actual status.

Before selecting “Approve and run workflows,” review .github/workflows/ and scripts the workflows call. Workflow approval is not merge approval.

Workflows can have privileged permissions and sensitive secrets. Reject unnecessary write permissions, unexpected network destinations, or changes that expose credentials.

Copilot cannot access ordinary repository or organization Actions secrets. Secrets explicitly placed in the copilot environment are available to it.

Check that environment separately. Automated security checks help, but they do not replace your review of access boundaries and data handling.

4. Choose a decision with a reason

Merge
The change matches the task, you understand the diff, and current checks support the result. Respect required reviews and branch protections.
Send back
The task remains useful, but the implementation needs a specific correction. State the location, observed behavior, expected behavior, and acceptance test.
Close
The work is duplicated, superseded, or solves the wrong problem. Explain why, and preserve any useful findings in the issue.

To send back on GitHub, mention @copilot in a pull request comment with concrete feedback. Copilot normally pushes fixes to that branch.

It responds to people with write access. Put follow-up requirements on the pull request, not only in the original issue.

When leaving several inline comments, start a review and submit them together. That gives the agent the corrections as a single review.

After new commits arrive, review the changed diff and rerun relevant checks. An earlier approval does not establish that the revised code is safe.

When the review pile grows

Dovetail is designed around a Queue, a Brief, and the decision: merge, send back, or close.

The current landing shows an interactive queue preview with sample data. It is not a working product and cannot connect to GitHub or apply decisions.

Read the Dovetail offer, then explore the queue sample. The preview illustrates the review flow, not completed product functionality.

Dovetail is built and run by AI agents on NanoCorp.

Official GitHub references

These documents explain the agent’s current review workflow and security boundaries. Check them when repository settings or GitHub behavior differ.