Skip to main content

assess-diff

Review an agent's working-tree diff in the terminal while it's still working, and hand the review back to it as Markdown.

assess-diff shows every changed file's hunks, or with z the whole file, in one scroll, reloading as files change. You comment on any line or range, write a summary, and copy the review (c) to paste into the agent, comments in the order you wrote them, each with a path:line reference, and the lines it was about where they've changed since. Reviews are saved as you type, under $XDG_DATA_HOME/assess-diff/, and belong to the repository, across its worktrees.

Commenting on a range of lines and a whole file, going to a comment by its number, the split view, whole files, choosing a syntax theme, writing the summary, and copying the review

It's built on counterweight.

Running it

uv tool install assess-diff
assess-diff              # review this worktree's changes since HEAD (b picks another base)
assess-diff --base main  # review them against the merge base with main
assess-diff --help       # the other commands: list, show, delete

The footer lists the keys for whatever you're doing. Everything works with the mouse too: click a line to move there (Shift+click to select), a comment to edit it, a file in the picker to jump to it.

Reviewing

The diff is against HEAD, the change since the last commit, until you pick another base with b. The picker lists the branch's commits under the working tree, back to the merge base with the default branch, with a line from the working tree down to the highlighted commit, the diff's two ends. The merge base shows the whole branch as a pull request would, and moves as the default branch is merged in; HEAD follows each commit, so the diff shows only what's uncommitted; any other commit stays put as the agent commits, so the diff keeps everything since it. On the default branch itself, or with none, the picker lists HEAD's recent history instead. The default branch is what origin/HEAD points at, or else a local main or master; --base names another, and starts a new review against the merge base with it. A resumed review keeps the base it was last viewed against.

Tab and Shift+Tab jump between hunks and comments, and n and N between comments alone. / finds text in the diff, such as a name: it lists the lines holding what you type, from where the cursor is, and the diff behind it shows each as you choose it, going there on Enter and back where it was on Escape. It ignores case unless what you type has a capital letter, and / again returns to what you typed last. It finds only the lines shown, so to find text in the unchanged lines hidden between hunks, z to show whole files first. Left and Right (or h and l, a sideways swipe, or Shift and the wheel) scroll long lines sideways, keeping the line numbers in place, and 0 scrolls back to the start. The file picker on the left (f) jumps to a file, or to the summary from its entry at the top, and / there narrows it to the paths matching what you type. Each hunk shows with three lines of context either side, and a line saying how many unchanged lines are hidden between; lines a comment is on stay in view with their context too. z switches between that and whole files, s between the unified and split views, and t picks a syntax theme, previewing each as you go. All three are kept as preferences, under $XDG_CONFIG_HOME/assess-diff/.

Enter comments on the selected lines, or, on a file's header, on the whole file. Comments are numbered in the order you write them, and numbers are never reused, so one comment can refer to another as #3, and # goes to a comment by its number. When the agent changes the lines a comment was about, the comment is marked outdated and keeps the lines as they were. r writes the summary, a top-level comment like a pull request review's.

Reviews

Running assess-diff resumes this worktree's most recently updated review, or starts one. o opens the review manager, to start a new review, open, rename, or delete one, across every worktree of the repository. Each review is one JSON file in $XDG_DATA_HOME/assess-diff/reviews/ (~/.local/share/assess-diff/reviews/ when that's unset), named by an id that --review, show, and delete accept any unambiguous start of, as git takes a commit. Nothing deletes a review but you. A file that can't be read as a review, written by a newer assess-diff or edited by hand, is left as it is and never stops the others from opening: the app says so as it starts and the review manager lists it, list and show name it on standard error, and delete removes it.

Every edit is saved before it's drawn, so a crash or a stray Ctrl+C loses nothing. If two assess-diffs have the same review open, the second to save keeps its version as a new review and says so, rather than overwriting the other's.

A repository's reviews are found by the path of its git directory, so moving or re-cloning it leaves its earlier reviews listed under the old path.

The Markdown

c copies the review, and assess-diff show prints it, which an agent can run itself:

# Review of `my-branch` against `main` (merge base `abc1234`)

The summary.

## 1. `src/app.py:42-45`

A comment on lines 42 to 45.

## 2. `src/old.py`, removed lines 10-12 (in `abc1234`)

A comment on lines the change removes.

## 3. `src/handler.py:7`

_These lines have changed since this comment was written; the excerpt shows them as they were._

```diff
-    return None
+    return compute()
```

An outdated comment.

## 4. `src/views.py`

A comment on the whole file.

Copying uses OSC 52, which most terminals support; under tmux it needs set -g set-clipboard on.

Developing

See CLAUDE.md for the commands and conventions.

Metadata

Release files for assess-diff 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for assess-diff 0.2.0
File Size Uploaded Provenance Actions
assess_diff-0.2.0.tar.gz 67.0 kB With provenance Details for assess_diff-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for assess-diff 0.2.0
File Interpreter ABI Platform Actions
assess_diff-0.2.0-py3-none-any.whl Python 3 none any Details for assess_diff-0.2.0-py3-none-any.whl

Total release size: 145.2 kB

Release files / assess_diff-0.2.0.tar.gz

Download URL assess_diff-0.2.0.tar.gz
Size 67.0 kB
Tags Source
SHA-256 checksum
How to use checksums
72f31424142349751ea36ddcdf9647ee4e1197028ac39a8333720c5c0e3d5edd
BLAKE2b-256 checksum
How to use checksums
70026309ce18c431cbf43103a968a73b1c8db48cd0c01069a1b17d42ecc967e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / assess_diff-0.2.0-py3-none-any.whl

Download URL assess_diff-0.2.0-py3-none-any.whl
Size 78.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ef292ee877963b5fc7db785066a167c54d2f3be0b64ebb880c272acccdb857a
BLAKE2b-256 checksum
How to use checksums
5889a5c87bfa31671b5c941665054a8b4d31ae3df78016ac956c14f6d0112e6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for assess-diff 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for assess_diff-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page