walkthrough
Back to blog

I recorded a menu for my agent

It rebuilt the menu from my recording. Then the hover felt wrong.

By 4 min read

How the rebuilt Library menu works: hover Heroes, then Backgrounds. The rows stay in place as the right preview changes. Diagram, not a screenshot.
How the rebuilt Library menu works: hover Heroes, then Backgrounds. The rows stay in place as the right preview changes. Diagram, not a screenshot.

I moved my pointer through the Library and Product menus on 21st.dev and recorded them with the Walkthrough Chrome extension.

My agent asked questions about the recording over hosted MCP. It never opened the original site or its source code.

It made a working local menu with nine Library previews, including Components, Heroes and Backgrounds. I liked the likeness, but noticed a hover problem. The archived original images and fonts were unavailable, so it used placeholders.

Why the hover felt wrong

In the first rebuild, hovering replaced the whole panel. This also recreated the row under my pointer. In the capture, only the right preview column changed.

The revised build keeps the rows in place while the card changes, so their fades survive. I have not validated this correction, and I don't claim it is a pixel-perfect copy.

The earlier blind test

The video below shows older A/B/C versions based on screenshots, sampled video frames or text files, and is not a video of this rebuild.

We build Walkthrough. It records a web interface and exports what it captured for coding agents. We asked Claude Opus 5.5, in Claude Code, to recreate this menu three times, with one fresh run for each kind of input:

  • A got ten screenshots of selected states.
  • B got ten frames taken in order from a 16-second video.
  • C got two Walkthrough text exports with JSON, one for pointer and one for keyboard.
Earlier blind test · 24 seconds, silent. Watch the right card when the pointer reaches Apps.

I rated them without knowing which input each one got. My order was A, B, C. A and B looked almost the same to me, and A's motion felt closer. C looked less like the original, mostly in motion and icons. None fully matched the original motion.

In A and B, hovering Templates or Apps changed the card. In C, the row highlighted and showed an arrow, but the card kept its default content. Heroes did not change the card in any of the three.

Apps is highlighted on the left and Apps 138 appears under the right preview.
A · Screenshots. Look under the white box: Apps 138.
Apps is highlighted on the left but the preview still reads New on Pattern Desk.
C · Walkthrough export. Same row, but the card still says New on Pattern Desk.

This is one menu, one model and my opinion. The video labels were hidden, but their order was not random.

We had the changes, then dropped them

The raw recording had six hovers, with the preview changes and a snapshot of the panel for each. Our export kept only the snapshot nearest to the menu opening. The six later ones were thrown away.

It also kept only events for elements in that first snapshot. So events for much of the new card content disappeared. The export even said unvisited states may be unknown. But we did visit these states.

We fixed this and exported the same recording again. The six states were there. Then we ran one more fresh agent, C2, with the same settings and prompt.

It still failed to switch the card. We tested the five left sections and Heroes. All six kept the default card. C2 also lost the arrow on the left rows.

We don't know why. We can't tell if it read the new states. The missing data was a real problem, but putting it back did not fix the menu in this run.

Asking the recording

Next we tried a separate synthetic menu with six known preview changes and no recorded hovers. The agent only had to find what was recorded, using Walkthrough's MCP tools.

The original tools found all six previews and image references in 35 calls. These are references, not the image bytes. Our first revision used 26 calls, but the agent looked in the wrong snapshot and said the linked panel had no images. That was wrong.

We changed the tools to show the references with their panel state. A fresh run found all six in 17 calls. It also said the trigger had no captured styles, without asking for them. When we asked, we got a text color and font size.

One real hover

We also inspected a separate, later capture for hover timings, but it was not the source for this implementation.

At 2.433 seconds, the preview title said Components. At 3.172, the recorder saw a menu element in :hover. At 3.183, the same title element said Heroes. The count was 1,402, and the card included “Scroll media expansion hero.”

So we can read what appeared, and which element was hovered just before it. The 11 milliseconds only show order. They don't prove that this hover caused the change, or show the site's code.

The menu stayed open until 14.243 seconds. The export kept eight preview changes and said 15 later observations were omitted because of its size limit. The last card we can read there is Testimonials, at 5.467 seconds. The menu was still open for more than eight seconds after that.

Sources

  1. 21st.dev · original Library menu21st.dev
  2. Walkthrough Core · capture and MCP toolsgithub.com

Reference links for this article.

Bring one interaction to your app.

Choose a menu or dialog you want to adapt. Capture it in Walkthrough, export the selected evidence to your coding agent, and check the result in your own app.

Open Walkthrough