Super Diff
Read a long diff one concern at a time, with each group explained and notes under the lines a reviewer might misread. Click Generate Super Diff in the Diff tab, and the thread's agent groups the changed files into concerns in place of bb's file list, with a line on what each file's change does. Hover any other line, removed ones included, and click Explain this line for a note written on request. Each file keeps bb's Viewed checkbox, each concern counts its viewed files, and the list offers Regenerate when files change after it was written. Requires bb 0.47 or later; generating sends one message to the thread's agent.
Overview
View sourceWhat you get
- A Generate Super Diff button that asks the thread's agent to sort the changed files into concerns. The grouped list takes the place of bb's file list, and Super Diff | Original switches back.
- A line under each concern for every file, saying what its change does, and bb's Viewed checkbox on each file, with a count of viewed files per concern.
- Notes in the diff under the lines a reviewer might misread, removed lines included, and an Explain this line button on any other line for a note written on request.
- An amber Out of date warning with Regenerate when files are added or edited after the Super Diff was written.
How it works
The agent reads the diff with bb super-diff read and stores its grouping with bb super-diff submit, which checks that every file is placed exactly once. Super Diff keeps one per thread and diff on this machine and calls no outside service. Explain this line asks a hidden side chat of the thread, so the thread's agent is not interrupted.
For agents
The super-diff skill tells an agent to run bb super-diff read and follow the guide it prints. An agent can write a Super Diff at the end of its own work without anyone pressing Generate.
Requirements
A thread with a git environment, and bb 0.47 or later for the Viewed checkboxes. Nothing to configure.
More from Daniel Bachhuber
More in Code & Reviews 48
Work with repositories, builds, changes, pull requests, issues, and reviews.


