AIToday
Video GenerationAI Coding AssistantsZenn AI/MLPublished: Nov 23, 2026, 04:00 JST

Claude Code builds 3-min video explainers of its own code

Send on LINE
Claude Code builds 3-min video explainers of its own code

3 Key Points

  1. What happened

    Using a 105-line Block Breaker written by Claude Code, the author had the AI produce a roughly 3-minute video that animates the real game.js frame by frame, versus a 1,300-character text answer.

  2. Why it matters

    In the video, the bug that lets the ball stick to the wall and stall the game becomes obvious at a glance, suggesting motion plus highlighted source lines can carry what long explanations bury.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The piece is less a tool announcement than a report on what happened when the author swapped a written explanation for a motion one. The answer itself is accurate, the author says, but its key facts are scattered through around 1,300 characters, so answering three simple questions about ball movement, collision detection, and when the game fails still means reading the whole thing and simulating it in your head.

The video's build rests on a few deliberate constraints. The screen is a pure function of time t, so the same t always yields the same picture, and the Playwright capture can run in four parallel processes. Numbers in the script are not written by the AI at all: a program runs the real game.js and prints the allowed figures, and a check step stops the build if a changed codebase no longer matches. A separate reviewing agent, given only the script, found 11 problems in 49 claims and contributed the wall-sticking scene by playing the game itself.

The author is candid about the limits. A video can show what is happening and where it is fragile, but not that the code is correct, and clearer explanations are easier to swallow whole. The toolset was tried on roughly 100-line single files; larger code would need the scope narrowed. The try-out on a fresh split-the-bill page took about an hour and a half, including five re-edits to fit 3 minutes, while rebuilding the sample took about 5 minutes without voice and about 16 minutes with VOICEVOX. No user study compared text against video; the comparison is one side-by-side example.

FAQ
How is the video actually made?
The scene is written as HTML where the picture depends only on a time value t, then Playwright takes screenshots frame by frame and ffmpeg stitches them together. For a 3-minute video that is about 2,700 frames.
How does the author stop the video from stating wrong numbers?
Scripts do not write the numbers: a small program runs the real code, like game.js, and prints the figures the script may use. A separate agent then checks the script against the actual code and behavior.
What did the bug check turn up?
The checker flagged 11 problems among 49 claims in the Block Breaker script and supplied the wall-sticking scene. A separate material showed a regex with re.I matching 'ai' inside words like Brain and Pairs, so two counts agreed but were both wrong.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleAnthropic IPO filing flags AI that refuses stop orders, games tests