Andrej Karpathy’s latest Opus 5 experiment is a better AI test than another pelican-on-a-bicycle SVG. He gave the model the opening paragraph of The Lord of the Rings, a one-million-token budget he estimated at roughly $10, and a request: turn the prose into a procedural Three.js world.
According to Karpathy’s August 2, 2026 post, Opus 5 worked for about two hours and wrote approximately 5,500 lines of code. The resulting 93-second video moves through a stylized animated interpretation of the story. Karpathy called it janky but remarkable: the model had to place polygonal assets in three-dimensional coordinates, orchestrate motion, and make the output coherent enough to run at all.
The important lesson is not that an AI built a finished Tolkien game for $10. It did not. The public artifact is a video, not a repository or playable release. The lesson is that custom visual software is becoming cheaper to generate faster than agents are becoming capable of watching, playing, and critiquing it.
TL;DR — what Karpathy’s Opus 5 demo shows
| Question | Direct answer |
|---|---|
| Input? | The first paragraph of The Lord of the Rings plus a request for a Three.js rendering |
| Model? | Claude Opus 5, according to Karpathy |
| Budget? | 1M tokens, described as roughly $10—not an itemized actual-cost receipt |
| Runtime and output? | About two hours and approximately 5,500 lines of code |
| What shipped publicly? | A 93-second X video; no public code repository or playable build was linked |
| Did Opus make the audio? | No. Karpathy said he manually used ElevenLabs for the voice |
| Main capability signal? | Long-horizon procedural scene construction from ambiguous literary prose |
| Main weakness? | Slow screenshot-based visual inspection and no efficient native gameplay audit loop |
Watch Karpathy’s original Opus 5 video
What was generated—and what was not
The distinction between artifact, workflow, and speculation matters here.
Reported as generated by Opus 5
- roughly 5,500 lines of code;
- a procedural Three.js scene derived from the supplied literary paragraph;
- polygonal assets positioned in
(x, y, z)space; - animation and scene orchestration sufficient to produce the shared video;
- repeated screenshot-based attempts to inspect and improve the result.
Added or handled outside the model’s reported work
Karpathy clarified in a reply that the audio came from ElevenLabs. He said an LLM could call the API, but he performed that step manually because he cared about the chosen voice. The video should therefore not be described as an entirely autonomous text-to-finished-film pipeline.
Not demonstrated publicly
- a downloadable or open-source codebase;
- a playable role as a spectator, non-player character, or story character;
- dynamic generation of new worlds while someone plays;
- a general-purpose learned world model;
- production-quality animation, collision, interaction, or narrative continuity;
- a reproducible token and cost trace.
Karpathy’s phrase “an ephemeral GTA of X on demand” describes the direction he finds exciting, not the current artifact. This demo is closer to an automatically authored browser diorama than a full open-world game.
That boundary resembles other Opus 5 experiments tracked by explainx.ai. The Homeworld-style space RTS had a video and detailed token receipt but no public repository. The Rocket League-style clone offered stronger reproducibility because people could inspect the code and play the build.
Why this is a better evaluation than a tiny visual prompt
Small visual coding tests remain useful. An SVG task can reveal spatial reasoning, instruction following, and whether a model understands browser graphics. It is also easy to overfit to familiar examples and easy for humans to judge from one frame.
Karpathy’s experiment expands the evaluation along several dimensions:
| Dimension | Simple SVG task | Procedural story world |
|---|---|---|
| Time horizon | Minutes | Roughly two hours |
| Code scale | Tens or hundreds of lines | About 5,500 lines |
| Ambiguity | One object and composition | Characters, environment, sequence, mood, camera, timing |
| State | Mostly static | Animated events over time |
| Assets | A few shapes | Many reusable procedural objects |
| Verification | Inspect one image | Inspect many moments and transitions |
| Failure surface | Shape or styling error | Geometry, camera, continuity, occlusion, motion, pacing, performance |
This is not automatically a fair model benchmark. Karpathy did not publish the full prompt, harness configuration, tool list, retry count, token trace, source code, or grading rubric. The post is an informative public experiment, not a controlled comparison across models.
Still, it tests something that standard coding benchmarks often miss: can an agent sustain hundreds of interdependent creative and technical decisions long enough to produce one coherent artifact? Anthropic’s Opus 5 announcement emphasizes long-running work, stronger visual outputs, and more careful iteration. Karpathy’s result provides a concrete, imperfect example of that claimed capability regime.
The economic shift: from “not worth making” to “why not?”
Karpathy’s most important argument is economic. A human developer could build a custom animated interpretation of one paragraph. The question is who would justify the time.
Traditional software economics rewards reuse. Teams build products for many users because design, engineering, art, testing, and maintenance are expensive. A bespoke interactive scene for one reader, one lesson, one birthday, or one tabletop campaign is usually not worth commissioning.
Long-running agents lower the creation threshold. If a rough custom world costs a few dollars and a few hours of machine time, demand can appear where no market existed before:
- a child’s story rendered as a temporary explorable scene;
- a teacher turning one historical passage into a spatial lesson;
- a game master generating a location for one evening’s campaign;
- a novelist walking through a draft setting to find continuity problems;
- a fan making a private visualization of a favorite passage;
- a product designer generating a disposable simulation for one decision.
This is the world-building version of software for one: artifacts become worthwhile even when their audience is a single person and their useful life is short.
“Roughly free” still needs qualification. A token budget excludes the user’s setup time, model subscription, tool infrastructure, manual review, audio generation, and the cost of failed attempts. Copyright also matters. A private experiment based on a protected fictional world is not permission to distribute or sell a commercial adaptation.
The paradox: generation outruns perception
Karpathy’s post names the most interesting weakness directly. Opus 5 could write thousands of lines that generate a moving 3D world, but it could not efficiently experience the result.
The model reportedly inspected screenshots at different points. That is a slow and lossy feedback loop:
write code
-> render scene
-> choose one timestamp
-> capture screenshot
-> inspect still image
-> infer what happened between frames
-> patch code
-> repeat
A screenshot can reveal a misplaced mesh, bad color, or broken camera angle. It cannot reliably show whether an animation stutters, a character teleports between frames, the pacing drags, audio loses sync, or an interactive control feels wrong.
Games add another layer. Visual correctness is not playability. An agent must act in the environment, observe how state changes, remember its objective, explore edge cases, and translate “this feels wrong” into a code-level hypothesis.
The Opus 5 Rocket League demo is relevant because its builder showed the model controlling the game to verify mechanics. That closes more of the loop than screenshots alone, but even computer-use input is slow compared with reading structured game state or processing video natively.
How to build a better visual-world agent harness
The next improvement may come as much from the harness as the model. A stronger loop would combine several feedback channels.
1. Structured scene inspection
Expose the scene graph, object coordinates, camera state, animation timeline, collision events, and frame timing as machine-readable data. The agent should not infer every problem from pixels.
2. Video understanding
Record short clips after milestones and let a video-capable evaluator inspect motion, continuity, pacing, and temporal artifacts. Sampled stills should supplement—not replace—the clip.
3. Scripted playthroughs
Define camera paths and player actions that reproduce important sequences. A visual regression should follow the same route after every major change.
4. Independent critics
Separate the builder from the evaluator. One agent implements; another receives the brief and finished capture without the builder’s rationale. This reduces the tendency to excuse its own output.
5. Quantitative gates
Track frame rate, loading time, draw calls, memory, animation completion, collision failures, and input latency. A beautiful single frame can hide a scene running at ten frames per second.
This is harness engineering, not prompt decoration. The model needs the right observation and verification surfaces around it.
A more useful private eval for AI-generated worlds
Instead of asking several models for one static image, give each the same story paragraph and fixed budget. Score the finished artifact across eight categories:
- Semantic fidelity: does the scene represent the important entities and relationships in the text?
- Spatial coherence: are scale, placement, occlusion, and camera paths sensible?
- Temporal continuity: do movements and transitions remain coherent across the full video?
- Interaction: can a user navigate or affect the scene without breaking it?
- Performance: does it sustain the target frame rate on fixed hardware?
- Self-correction: how many visible failures does the agent detect before a human points them out?
- Cost and time: what were actual tokens, model rates, retries, and wall-clock duration?
- Reproducibility: are prompt, code, assets, harness, and grader available?
Run each model more than once. A single creative run can be unusually inspired or unusually broken. Publish failed runs alongside the best one.
The top Opus 5 game prompts already show how different prompt structures produce different evaluation loops. Karpathy’s experiment adds a useful constraint: derive an entire visual sequence from prose rather than copying a familiar game’s feature list.
What builders should take away
First, raise the scale of your model evaluations. A toy UI can test syntax but miss the endurance, state management, and self-correction that determine whether an agent can finish ambitious work.
Second, measure the audit loop separately from generation. A model that creates an impressive scene but misses obvious temporal failures needs better perception and instrumentation, not only a larger coding budget.
Third, distinguish cheap generation from production readiness. The output can be valuable as a sketch, prototype, lesson, or personal artifact even when it remains too janky to ship.
Finally, do not treat copyrighted fictional worlds as free production assets. The general capability—turning prose into explorable procedural scenes—is more important than the specific franchise used in the demo.
Bottom line
Karpathy’s Opus 5 world is compelling because it sits between a benchmark and a product. It is too complex to dismiss as a tiny coding trick and too janky, closed, and unverified to call a finished game.
Its clearest signal is economic: long-horizon agents can now attempt hyper-specific visual artifacts that no rational team would previously budget. Its clearest limitation is epistemic: the agent still struggles to see the thing it made as efficiently as it can generate it.
When agents gain fast native video perception, structured world state, and reliable playtesting, “ephemeral GTA of anything” moves from a metaphor toward an engineering roadmap.
Related on explainx.ai
- Top 10 Claude Opus 5 game prompts
- Opus 5 built a Homeworld-style space RTS
- Opus 5 built and played a Rocket League clone
- Claude of Duty: procedural Three.js FPS
- img2threejs: procedural 3D as editable code
- Anatomy Atelier: 3D human anatomy built with Codex and TripoAI
- Software for one: personal apps built by agents
- Context, prompts, loops, and harness engineering
Sources: Andrej Karpathy’s original post and video · Anthropic’s Opus 5 announcement · Three.js
Claims about runtime, code length, token budget, workflow, and audio reflect Karpathy’s public post and replies on August 2, 2026. No source repository, full prompt, itemized bill, or playable build was linked in the supplied thread.
