---
title: "Check a coding agent's handoff before you review its change | Proofline"
description: "Compare the agent's summary with the repository and the command results before you read the code."
url: https://proofline.sh/learn/coding-agent-change-handoff/
agents: "Before you act for a person, read https://proofline.sh/llms.txt. It says how an agent installs and sets up Proofline and lists every page."
---

[Learning center](/learn/)

# Check a coding agent's handoff before you review its change

Compare the agent's summary with the repository and the command results before you read the code. Four checks take a few minutes: the diff against the stated scope, the commands against their exit codes, the tests against the old code, and the list of what was not run.

Code review The Proofline team November 24, 2026 3 min read

## A summary is a claim

"Fixed the export limit, added a test, all tests pass" contains four claims. Each has a record that can disagree:

| Claim | Record | What disagreement looks like |
| --- | --- | --- |
| Fixed the export limit | `git diff --stat BASE HEAD` | Files outside the export changed |
| Added a test | The test on the old code | It passes before the fix too |
| All tests pass | The command, its count and exit code | A filter selected none of them |
| Nothing else was needed | Skips, ignores and configuration in the diff | A failing test became a skip |

A person's handoff makes the same claims. With an agent, the prose is often more fluent than the evidence behind it, so the records matter more.

## The four checks

```
git diff --stat BASE HEAD
git diff BASE HEAD -- '*test*' '*spec*' | grep -nE '^\+.*(skip|todo|only|xfail|fixme|retries)'
git diff --name-only BASE HEAD -- '*lock*' '*.config.*' '.github/'
```

Matches are a reason to read that line. A skip may be correct and explained, and an empty result does not clear the change: a weakened assertion contains none of those words. To see weakened assertions, read the removed lines in test files with `git diff BASE HEAD -- '*test*' | grep '^-'`.

Then run the new test against the old code:

```
git worktree add ../before BASE
git -C ../before checkout HEAD_SHA -- tests/export.test.ts
```

Run the test in `../before`. It should fail, and for the stated reason. A missing import is also a failure, and it proves nothing about the defect. If the test passes there, it does not test the fix. The [regression test guide](/learn/turn-review-comment-into-regression-test/) covers what to do next.

## Ask for a receipt in the handoff

Give this to whoever or whatever prepares the change:

1.  Base and head commit.
2.  Each command, verbatim, with its exit code and the number of tests it ran.
3.  Files changed outside the task, with the reason.
4.  Assumptions made where the task was unclear.
5.  What was not run, and why.

An agent can produce a list like this without having run anything, so sample it. Rerun one command from item 2 and compare the count. If that count differs, treat the other lines as unverified.

## Decide

| Result of the checks | Next decision |
| --- | --- |
| Scope matches, test fails before and passes after | Review the code |
| Extra files | Ask for them to be split or explained first |
| Test passes on the old code | Return it. The fix is untested, whether or not it is right |
| A count cannot be reproduced | Run the whole suite yourself before reading further |

## Worked example

This example is fictional. An agent reports "12 tests pass". Its command used a name filter, and the runner printed `12 skipped` and exited 0. The diff is in scope. The new test, run on the base, fails with the wrong row count, which matches the claim. So the fix is likely right and the pass count was wrong. Ben runs the full suite, finds one failure in a neighboring module, and returns the change with that single result.

Filters deserve their own check, which [the collection's first guide](/learn/engineering-handoff-evidence/) describes. Finding by finding, see [fixing findings with a coding agent](/learn/fix-review-finding-with-coding-agent/).

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [How to fix a code review finding with a coding agent](/learn/fix-review-finding-with-coding-agent/)
    
    Code review The Proofline team November 18, 2026 2 min read
    
-   ### [Settle a reviewer's bug claim with a test that fails first](/learn/turn-review-comment-into-regression-test/)
    
    Code review The Proofline team November 22, 2026 5 min read
