Review a branch by what it does, not the order it was typed in.

topodiff opens your GitLab or GitHub merge request, groups it into concepts, tells you where to start reading, follows every comment to the code that answers it, and on the next push shows you only what's left.

In private beta for macOS, Windows and Linux. Sign in with Google, GitHub or GitLab to get on the list.

1Understand it2Comment3Follow up4Re-review
Webhooks retry a failed deliverywebhook-retry → origin/main · revision 1 · 3e1a9f0 · grouped by claude-cli/sonnet
⑂ webhook-retry → origin/main ↑6 ↓0r1 3e1a9f0 · ↻ 9:12 am!482 Open ✓💬 3Dan ReyesView: Board · Side by side ▾Finish review

Concepts14/96 linesRedo structure
Webhooks retry a failed delivery14/96
made of 4 concepts
Retry with backoff0/53
made of 2 concepts
Schedule the next attempt0/31
Due retries are picked up0/22
Give up after the last attempt0/2
Retries on the delivery page0/27
Deliveries count attempts✓
Schedule the next attempt5 left · 31 lines
CallsFilesList
4Webhook_deliver()
12Retry_schedule()
6Retry_backoff()
3Retry_jitter()
2 testsWebhook_deliver()Retry_schedule()Retry_backoff()Retry_giveUp()Owner_notify() WindowSqueezed
⠿
Webhook_deliver()
worker/Webhook.c:31–35
Reviewed ✓
⠿
Retry_schedule()
retry/Retry.c:12–17
Mark reviewed
12bool Retry_schedule(Delivery *delivery) {
13 uint32_t attempt = delivery->attempts + 1;
14 if (attempt > 10) return Retry_giveUp(delivery);
15 delivery->dueAt = Clock_now() + Retry_backoff(attempt);
16 return Delivery_save(delivery);
17}
⠿
Retry_backoff()
retry/Backoff.c:4–7
↓ 2 below TEST(Retry, backoff_capsAtOneHour)
OutlineCallsBranch×
Webhook_deliver()4/4
Retry_schedule()0/6
Retry_backoff()0/4
Retry_jitter()0/3
1 · Pick the merge request2 · Concepts in order3 · Start at ◆ core4 · Follow the calls5 · Comment → the MR6 · A push: its answer, what's left
1Understand it

Know what the MR does, and where to start reading.

The model groups the change into concepts; each sits above the concepts it needs. Inside a concept, every function is ranked by kind — core, supporting, helper, test — and laid out as a call tree, so you start at what carries the change and follow the calls, not the files.

Today

41 files in alphabetical order.

The entry point is last, a test comes before its code, and nothing tells you which function matters.

retry/Backoff.c
retry/Backoff.test.c test first
retry/Retry.c the core, mid-list
ui/DeliveryPage.c
worker/Webhook.c entry point, last
… 36 more
Concepts

Concepts in the order they need each other.

Each concept sits above what it needs, with how many of its lines you've reviewed. A concept can be made of concepts — open the frame to go in.

Concepts14/96 linesRedo structure
Webhooks retry a failed delivery14/96
made of 4 concepts
Retry with backoff0/53
made of 2 concepts
Schedule the next attempt0/31
Due retries are picked up0/22
Give up after the last attempt0/2
Retries on the delivery page0/27
Deliveries count their attempts✓
Where to start

Every function has a kind.

The model ranks each function in a concept; you can reclassify it. Core stands out the same way in the list, on the map and on the board.

CoreSupportingHelperTest
Schedule the next attempt5 left · 31 lines
CallsFilesList
4Webhook_deliver()Webhook.c
12Retry_schedule()Retry.c
6Retry_backoff()Backoff.c
3Retry_jitter()
✓TEST(Retry, backoff_capsAtOneHour)
6TEST(Webhook, deliver_retriesA503)
The board

Whole functions, by who calls whom.

Each card is one whole function, level with the call that reaches it. The call is underlined in the colour of the card it opens, and the line runs from that call to the card's name. Ctrl-click a call to open what it names.

2Comment

Comment where you read. It goes to the merge request.

Press the line numbers to pick lines, then Comment or Mark reviewed. Each comment gets its own colour on its lines, a tab on the code's edge, and its card beside the block. Comment now, or add it to the review and send everything with Finish review — through your signed-in glab or gh.

Beside the code

The comment sits level with its lines.

Pointing at a comment lights its lines and fades the rest; pointing at its lines lifts the comment. A resolved one folds to a line. Where the screen is narrow, the comment stands over the lower part of the code, still joined to its lines.

⠿
Retry_schedule()
retry/Retry.c:12–19
new code, nothing on the old side0/8 linesMark reviewed
12bool Retry_schedule(Delivery *delivery) {
13 uint32_t attempt = delivery->attempts + 1;✓
14 if (attempt > 10) return Retry_giveUp(delivery);
15 delivery->dueAt = Clock_now() + Retry_backoff(attempt);2
16 Log_info(LOG_RETRY, delivery->id, attempt);
17 Metrics_count(METRIC_RETRIES);
18 return Delivery_save(delivery);
19}
✓line 13✓ ResolvedName the 1 — attempts count from zero?2
2lines 14–15Waiting for maya
dan.reyeson Version 1

Magic number — can max attempts come from settings? Ops wants to tune it per customer.

mayaon Version 1

Good call, I'll read it from settings.

Reply to this inquiry
Close
Writing one

Pick the lines, comment now or hold it.

Held comments go out together when you finish the review.

⠿
Retry_schedule()
retry/Retry.c:12–19
Mark reviewed
13 uint32_t attempt = delivery->attempts + 1;
14 if (attempt > 10) return Retry_giveUp(delivery);
line 14 CommentMark reviewedClear
Commenting on line 14
Magic number — can max attempts come from settings?
Add to reviewComment nowCancel
15 delivery->dueAt = Clock_now() + Retry_backoff(attempt);

Comment now posts it to GitLab !482 on line 14, under your account.

Add to review keeps it beside the code, marked held, until you press Finish review.

Replies made on the merge request come back here on every sync.

3Follow up

See what each comment led to.

When a push comes in, the model matches its edits to the comments they answer. A comment is a concept that holds that code, and its history runs version → comment → version, so you check the answer instead of hunting for it.

Today

“Done, see latest.”

The comment turns Outdated. Which commit fixed it, and where the code went, is for you to find.

The comment's history

Version → comment → version.

“Changes it led to →” opens it: the version the comment was written on, the comment, then each push that changed those lines. On a narrow screen the versions stack.

← Back to the board
CommentYour turnretry/Retry.c, lines 14–15On Retry_schedule()
Max attempts from settings
1 comment on this code · 1 push changed these lines since · Ctrl+click a name to open it here
Showing only Retry_schedule() in 2 of 2 versions, with the comments on itShow every function ×
Written on
Version 13e1a9f0Retry a failed delivery with backoff1 function
⠿
Retry_schedule()
retry/Retry.c:12–19
On the boardReviewed ✓
↑ Show 2 lines above, in this function
13 uint32_t attempt = delivery->attempts + 1;
14 if (attempt > 10) return Retry_giveUp(delivery);
15 delivery->dueAt = Clock_now() + Retry_backoff(attempt);2
16 Log_info(LOG_RETRY, delivery->id, attempt);
↓ Show 3 lines below, in this function
2lines 14–15Your turn
dan.reyeson Version 1

Magic number — can max attempts come from settings?

mayaon Version 2

Reads it from settings now, see Version 2.

Reply to this inquiry
Looks right, close it
Push · Version 2
Version 29c2e1f4Read max attempts from settings1 function · 1 file
⠿
Retry_schedule()
retry/Retry.c:12–19
+1 −1On the boardMark reviewed
↑ Show 2 lines above, in this function
↓ Show 3 lines below, in this function
Every comment

Whose turn it is, for every comment.

The comments part of the status pill groups them by concept and change.

CommentsYour turn 1Waiting 1Resolved 1All 3
Schedule the next attempt2 comments · 1 change
Retry_schedule()r1–r2
2Max attempts from settings
Comments go to the merge request
Comments on code post there under your signed-in account, and replies come back here. Comments on the concept tree stay here.
Check GitLab now
Not answered yet

Nothing slips through.

A comment no push has touched says so, and Finish review lists it before you approve.

3line 33Waiting for maya
priyaon Version 1

Log the status code before retrying?

Reply to this inquiry
Close
4Re-review

On the next push, read only what's left.

Your marks are kept line by line. What's left is everything from what you reviewed to the latest push — deletions included — and it survives rebases and force-pushes. A block you've reviewed opens as Review | New, so you see the change against what you already approved.

Today

Force-pushed. 0 of 41 viewed.

Every “Viewed” box resets, so you read it all again — or skim and hope.

What's left

Amber where it changed since you read it.

Webhooks retry a failed deliveryrevision 3 · b72c4d1
r3 b72c4d1 · New push · Read!482 Open ✓
Delivery is retried2 left · 9 lines
CallsFilesList
5Webhook_deliver()Webhook.c
4Retry_backoff()Backoff.c
✓Retry_schedule()
✓Retry_jitter()
✓TEST(Webhook, deliver_retriesA503)
In context

The change against what you approved — Review | New.

A block with some of it reviewed opens on your review beside the head. Try the controls: switch Old, Review and New on and off, and show them Unified, Separated or Split.

⠿
Webhook_deliver()
worker/Webhook.c:31–37
version 34 lines changed since your review2/7 linesOldReviewNewUnifiedSeparatedSplitMoveMark reviewed
↑ Show 8 lines above, in this function
↓ Show 8 lines below, in this function

Finish review

Every comment by whose turn it is, then Comment, Request changes or Approve.

Checks

Every changed line has one concept, no dependency cycles — checked after every push.

Nothing else changes

An overlay on commits. The author stays in GitLab or GitHub.

Local, any model

Claude CLI, an API or local model, or No model. Runs on 127.0.0.1.

Read it once.

topodiff is in private beta. Join the waitlist with your Google, GitHub or GitLab account; once you’re let in, the download is waiting on your waitlist page.

Join the waitlistOne sign-in. No password, no form.