Karpathy Tests Claude Opus: Writes 5,500 Lines of Code in 2 Hours to 3D Render LOTR

andrewchen · x · 2026-08-02

Andrej Karpathy shared an exploration into the evolving ways we evaluate LLMs, noting that we are moving past simple tests like "generate an SVG of a pelican on a bicycle."

To test long-horizon task capabilities, he provided Claude 3 Opus with the opening paragraph of The Lord of the Rings, a 1 million token budget ($10), and asked it to render the scene using Three.js. Opus ran for about 2 hours and generated 5,500 lines of code that procedurally rendered the story. Karpathy found it mindboggling that the LLM could place and orchestrate polygon assets in (x,y,z) coordinates and write the animation code to make it actually work. He also highlighted a new paradigm: highly custom, tedious code that no human would ever have the patience to write manually can now be delegated to LLMs for practically "free".

Related event: Karpathy Tests LLM with 1M Tokens to Render 3D Lord of the Rings(6 posts)→

Original post →

More from coding & agent

coding & agent channel →