Reviewlution is an open-source review toolbar for web apps. Feedback goes on the element as a pin, not into a chat as a sentence, and a coding agent reads the pins, fixes what they flag and closes them. This post covers what it is, how an agent works through it, how to add it to an app, and where pinning stops working. The short version: put the feedback on the element, not in the chat.
Describing is lossy
Design feedback typed into a chat loses detail. A sentence like “the card on the dashboard feels cramped on mobile” leaves the agent to guess: which card, which page, which phone, which width, cramped how? Every guess is a chance to fix the right thing in the wrong place, and every wrong guess costs another look at the phone.
Call it feedback distance: how far feedback travels from the thing it’s about before an agent acts on it. A sentence in chat is a long way from the pixel, and every hop drops something: the exact element, the screen size, the state the page was in.
What the agent gets
A sentence in chat
“The card feels cramped”
Which card, on which page?
Which phone, which width?
Cramped how?
A pin
The element you tapped
The page, viewport and device
A screenshot of what you saw
Your comment, word for word
What is Reviewlution?
Reviewlution is a toolbar that sits on top of a web app, plus a small JSON API that agents read from. A reviewer switches on annotate mode, taps an element and types. The comment becomes a numbered pin attached to that element, and it carries three things the agent would otherwise have to guess:
- The element. A selector, the tag and its text, and where on the element the tap landed. The agent doesn’t go looking for “the card”; it opens the one that was touched.
- The screen. The page, the viewport and the device.
- A screenshot. One tap captures what the reviewer sees, and the toolbar keeps itself out of the shot.
The agent side is plain HTTP. GET /comments lists every pin with its element, its images and a resolved flag. The agent fixes what an open pin flags, replies in the pin’s thread with what changed, and marks it resolved. A resolved pin leaves the page; its thread stays in the Resolved list, where it can be reopened.
One pin, start to finish
Pin
you tap and type
Read
the agent pulls open pins
Fix
on the element named
Resolve
reply, then close
next pin
Pin
you tap and type
Read
the agent pulls open pins
Fix
on the element named
Resolve
reply, then close
↺ next pin
A round looks like this: pin everything that is off, then give the agent a short prompt, at its shortest two words: address comments. In one round, six pins were placed in seven minutes, and seven minutes after the prompt all six were shipped, replied to and closed.
How to add it
There are two ways in. The first doesn’t touch the app at all: Reviewlution runs as a small proxy in front of it, shows the app in a same-origin frame, draws the toolbar around it and keeps the comments on its own disk. That also makes a local Storybook pinnable from a phone without deploying anything (the proxy passes websockets through, so hot reload keeps working).
The second lives inside the app: one install, one route file and one component. In Next.js the API is a single route:
// app/api/review/[...path]/route.ts
import { createReviewHandler } from "reviewlution/server"
import { fileStore } from "reviewlution/store/file"
export const { GET, POST, PATCH, DELETE } = createReviewHandler({
basePath: "/api/review",
store: fileStore("./review/comments.json"),
})And the toolbar is one component:
// in a client component in your layout
<ReviewToolbar
apiBase="/api/review"
route={usePathname()}
onNavigate={(p) => router.push(p)}
/>The handler is web-standard (a Request in, a Response out), so it runs in any framework, and it stores comments in a JSON file or, on hosts without a lasting disk, in Supabase. A build tag keeps each preview’s pins apart. The app decides where the toolbar shows (a preview build, a cookie, a signed-in reviewer) and who can reach the API.
The code is on GitHub. For now the in-app version is installed from a release file there, not from npm, and its code is on the component branch.
What makes pins work
- Anchor to the element, not the coordinates. A pin stored as x and y drifts the moment the layout changes, and in an agent loop the layout changes every few minutes. Reviewlution stores the element’s selector and identity, so the pin follows it through scrolling, re-renders and redesigns.
- A dead pin should fail loudly. When its element is gone (a redesigned build, another tab state), the pin doesn’t quietly vanish; it turns into a grey ghost at its old spot and the card says “element missing on this build”. A pin that disappears looks exactly like a pin that was fixed.
- Phones are the real test, and phones are weird. Mobile browsers won’t let a page record the screen, so on phones the toolbar draws the app’s own frame into an image instead. And Chrome on Android reports every phone’s model as the letter “K”, so the toolbar has to ask the browser properly to label a comment with the right device.
- Check on the device, not in a headless browser. Below about 500px, headless Chrome lays the page out wider than the window asked for and crops it. Agent screenshots of small screens can’t be trusted; type checks and lint gate the push, and the real phone judges the result.
- Read the pins together. One round had five pins that all said some version of “too much open space here”. Read one at a time, that’s five layout tweaks. Read together, they pointed at one cause: an earlier bulk edit had left an invisible 80px spacer inside five shared components. Five complaints, one fix.
Where pins stop working
After a few dozen pins on one app, the whole still didn’t look like one app. The timeline cards (workouts, sleep, meals, notes) had each been fixed on their own, pin by pin, and they had drifted apart.
The clearest example is the date. Where a day’s date sits on the timeline moved four times in two weeks: onto the top edge of the day’s first card, inside that card, into every card’s header, and finally out of the cards into a heading above each day. Every move was a good answer to the pin in front of it. Together they went in a circle: the date ended up back outside the cards, where it had started.
A pin can tell an agent exactly what’s wrong with this element on this screen. It can’t tell it what a card is for, or what all the cards should have in common, because that isn’t written down anywhere. Pins fix what you can point at; they can’t fix what hasn’t been decided. The fix for that is upstream: write down what the app is for, as user journeys with test cases, and pin against that.
For anyone iterating on a front-end with an agent, the method works with any tool that can carry the element: point instead of describing.
