Opus 5.5 Creates Everything (A One-Take Film Made in Code)
With one tightly specified prompt, Claude Opus used vanilla JavaScript and WebGPU to make a 55-second film in a single continuous shot.
In this 55-second film made entirely in code, a cursor types real lines of code as ocean waves, a stained-glass cathedral, birds, a city, and a galaxy morph into one another. It all collapses back into a cursor and one line of text. The post credits Opus and reports a build time of about two hours. Code generates the visuals, geometry, typography, music, and sound effects, with zero use of Three.js, GLSL, external 3D models, or textures. The agent-demos repository publishes the fixed prompt so developers can compare what different models produce from the same instructions. Its constraints offer a template for prompting an AI to build a game or demo.
Highlights
- A timed shot list specifies what appears, what code gets typed, and which beats it lands on.
- The prompt bans libraries, asset files, and network requests so everything has to come from code.
- The visuals can only read the results of executing the typed code with new Function, with checks to prevent shortcuts.
- The prompt requires renderAt(t) and DURATION for deterministic frame-by-frame rendering.
- The hardest stretch, the first 13 seconds, comes first, followed by at least three rounds of critique and rework.
How it was made
The source post calls the model Opus 5.6 and says it took about two hours with one constrained prompt. The renderer was written from scratch for WebGPU in vanilla JavaScript and WGSL, without Three.js, GLSL, external 3D models, or textures. The prompt called for a TREATMENT.md first, then a final-quality version of the first 13 seconds and a self-review before extending it to the full film. It also called for at least three full-film critique and rework passes. Checks included consecutive-frame strips, a 2 fps contact sheet, brightness jumps, flash counts, and loudness measurements. The requested deliverables were index.html, two MP4s, soundtrack.wav, contact_sheet.png, thumbnail.png, and NOTES.md. The supplied materials omit the actual results of those checks.
Published prompt
Make a mind-blowing 55-second film about yourself, made entirely in code, for posting on X as a showcase. It is one unbroken shot in which you type short lines of real code and the world obeys: each Enter transforms everything on screen into what the line says, mid-flight, with no cuts. It must win on sheer spectacle (scale, light, speed, destruction, transformation, music) so that a stranger scrolling past stops in the first second, stays to the end, and refuses to believe it is all code. Build it yourself and start no subagents. The film One continuous camera move, 1920×1080 at 60 fps, exactly 55.0 seconds. Every world is made from the one before it: the same sea surface, the same shards, the same lights. The score runs at 120 BPM and every Enter lands on a beat (1, 5, 9, 11, 14, 19, 27, 35 and 43 s). The cursor ignites into the sun in the first second, and in the last seconds everything collapses back into one point, which turns out to be the cursor. Type these lines exactly, at these times: 0.0–1.0 sea.wind = 38; 2.4–5.0 wave.height = 54; 5.0–9.0 water = glass; 9.0–12.9 sky.hour = 6 then edited to 18; 12.9–14.0 shards.fly(); 14.0–19.0 city.floors = 160; 19.0–27.0 gravity = 9.8 then -9.8; 27.0–35.0 time.scale = 1e15; 35.0–43.0 collapse(); 45.95–55.0 "I'm Opus. / What should we make?" (完整提示词见 https://github.com/RezAIT00/agent-demos/blob/main/prompts/creates-everything/prompt.md)
Tags · Environments · Visual effects · Animation · Music & sound effects · 3D · Realistic · Claude / Claude Code · Native Canvas/WebGL · WebGPU · WGSL · Code-Only · Procedural Music · One-Take Film · Constrained Prompting