Review AI generated code visually

Your agent worked all afternoon. The branch has 51 commits, 120 changed files and 33,000 new lines. The tests pass. Now what?

You won’t read 33,000 lines carefully. Nobody does. So the real options today are to skim the diff and approve it, which is how bugs ship, or to ask the agent whether its own code is good, which is how bugs ship with confidence. Code review was built for humans reviewing humans, a few hundred lines at a time. Agents broke that, and a longer diff view doesn’t fix it.

What does fix it is the same thing that works for any big system: pictures first, then the details that matter.

Download the Code Visualizer video.

Start with the shape of the change

Ask your coding agent to walk you through its change. The Codename One agent skill in every Initializr project tells it how: the agent launches the visualizer against master, connects to the window over MCP and stays connected, so every question you ask in the window reaches it and every answer comes back into the window, next to the code it’s about.

A desktop window opens over your branch compared with master. The summary opens with a sentence naming where most of the change is, then the counts of files, lines, methods and commits, a treemap of change by module and file, lines added and removed per commit, and the methods with the most new or changed lines.

The branch summary: a treemap of where the change is, change per commit and the highlights

In ten seconds you know things the diff would take an hour to tell you. Most of the change is in one package. One commit is three times bigger than the rest. Two classes you didn’t expect to be touched were touched.

The highlights are where bugs hide

The highlights view walks through the methods most worth studying, most important first, with a line saying why each one matters, for example “4 steps added, decisions 6 -> 2”. A method whose control flow changed shows its flowchart before and after, next to the diff. The side panel shows the commit that made the change, the comment it added, and the untouched callers that now run the new code.

A highlight: the method’s flowchart before and after the change, next to the code

A flowchart makes certain bugs obvious that are invisible in a diff. A branch that used to return early now falls through. A loop gained a second exit. A null check moved below the line that uses the value. You see the shape change before you read a single line. Removed steps are red, added ones green, and selecting a box scrolls the code to its line.

The graph shows the classes the branch changed and the classes they call, green for new and amber for changed. Select an arrow and you get every call the branch added along it, grouped by commit, each with its diff.

The change graph: new and modified classes and the calls between them

Point at it and ask

This is the part I use most. Click Ask, then click any chart box, any line of code, any text in the window, and type a question. It goes to your coding agent, which has been listening to the window. The answer appears as a callout right where you pointed. When the answer has steps, it walks you through them with Next and Back, and each step moves to its box or line and pulses it.

sequenceDiagram participant You participant V as Code Visualizer participant A as Your agent You->>V: Ask on the "retry" box V->>A: question + element + view A->>V: read the method and its flow diff A->>V: explain, 3 steps, pinned to boxes V->>You: callout, Next / Back

The agent can also take the lead. It can show you a view with a note on top (“start here, the parser now buffers a whole line”), or run a guided tour that dims the window and lights one control or code line at a time. So the review goes the right way around: the agent that wrote 33,000 lines explains them to you, in pictures, at your pace, and you ask about whatever looks wrong.

The agent drives it through MCP tools the window serves from the moment it opens. A Codename One project’s agent skill already knows them, so in practice you type “walk me through this branch” and the window starts moving.

Track what you’ve actually read

Press Approve on a highlight, a method or a file and it’s recorded as reviewed. Flip on Unapproved Only and the views leave out what you’ve already signed off. Approvals keep a fingerprint of the code, so when a later commit changes an approved method again, after review feedback for example, it comes back marked “Changed Since Approval”. Any view can be narrowed to a single commit, and UML for a class, call graphs and the source at the exact line are a double click away.

Why this is built in

We wrote it because we needed it. Codename One has a lot of agent written code going through review every week, and reading diffs top to bottom stopped working long ago. Agents made writing code cheap and left review as the expensive step, so we built a tool for that step. Pictures are faster than text.

It works on any branch of a Codename One project. One thing worth being clear about: the pictures don’t come from a model. The visualizer reads your Java with the compiler built into Codename One, so the flowcharts, call graphs and rankings are computed, and they’re the same every time you open them. The agent explains what the tool measured. It can’t invent a call that isn’t there, because it isn’t the one drawing the graph. Generate a project from the Initializr, let your agent make a big change, and then make it explain itself. Tomorrow: a language tutoring app template.