Karpathy’s Pelican
Summary
Andrej Karpathy experiments with Opus 5, giving it the first paragraph of Lord of the Rings and a 1M token budget to create a 3D JS rendering of the story, highlighting LLM stamina for hyper-custom worlds while noting weaknesses in multimodal auditing and gameplay.
View Cached Full Text
Cached at: 08/03/26, 01:28 AM
We’re starting to leave the territory where you’d test an LLM by e.g. “create an svg of pelican on a bicycle”. As one idea to generalize it, I was interested what Opus 5 would do if I gave it the first paragraph of the Lord of the Rings, a 1M token budget (~$10) and asked for three js render of it. Opus went off for ~2 hours and wrote 5500 lines of code that (procedurally) rendered the story. It’s kind of janky but fun. But it’s a bit mindboggling that the LLM has to place and orchestrate various polygon assets in (x,y,z) coordinates and write code that animates it all, and that it even does anything at all.
I also like this kind of examples because no one in their right mind would ever spend the time to write something this custom but LLMs have all the stamina and patience in the world, so it’s an example where we go from “no one would ever do this” to “sure, why not, it’s ~free”. There might be a lot more. But I’m excited about creating hyper custom worlds that you can imagine dropping players into, e.g. here to participate in the LoTR story as a spectator NPC, or one of the characters, or etc. Something like an ephemeral GTA of X on demand.
Last thought is that the domain of worlds/games exposes a weakness in LLMs: they can’t easily audit their work because they aren’t able to efficiently and natively perceive videos or play games within them. Here, Opus 5 had to very slowly and painstakingly take screenshots at different points, and it messed up a few times and created a bunch of jank. An example of raw capability (multimodal, gameplay) that I think is still quite lacking.
Similar Articles
@karpathy: We're starting to leave the territory where you'd test an LLM by e.g. "create an svg of pelican on a bicycle". As one i…
Andrej Karpathy shares an experiment where Claude Opus 5 used a 1M-token budget to procedurally render Lord of the Rings in three.js, sparking thoughts on LLM testing, custom world generation, and multimodal weaknesses.
@uudonX: Karpathy is dishing out more benefits to the industry! Codex / Claude code generates a ton of text for you—do you reall…
Andrej Karpathy shares practical techniques for understanding large volumes of LLM output more efficiently: constraining text with ASD-STE100 controlled language, generating charts and architecture diagrams, building interactive HTML pages for parameter exploration, and producing 3Blue1Brown-style explainer videos as the cost of 'disposable software' approaches zero.
@interjc: Today, the pelican riding a bicycle prompt made with Claude Opus 5.5 is said to have drawn an SSR—worth giving the prom…
A prompt using Claude Opus 5.5 generates an interactive 3D scene of a pelican riding a bicycle, featuring physics simulations, achievements, and browser-based real-time sound effects.
@karpathy: More on the pelican on the bicycle test from @simonw: https://simonwillison.net/2025/Jun/6/six-months-in-llms/… I uploa…
Simon Willison's keynote at AI Engineer World's Fair reviews the last six months in LLMs, highlighting over 30 significant model releases and his 'pelican on a bicycle' SVG benchmark as a practical evaluation tool.
Claude 5 Opus and 3D Moonlight Scene
A developer shares how Claude 5 Opus generated a detailed 3D moonlight scene from scratch, writing over 944KB of JavaScript, and plans to turn it into a shooter game.