RECURSIVE-LANGUAGE COURSE GUIDE

Recursive Language Models with Alex Zhang

A chapter-by-chapter readback of the free course by Alex Zhang on Latent Space.

Length1:43:24
Chapters19
Modules5
Plain Markdown with clickable timestamps — drops into Obsidian, Notion or GitHub as-is.

Alex Zhang argues today's frontier models are far more capable than their primitive agent harnesses allow — a 'skill issue' that recursive language models, where code is the only tool and context lives in a programmable environment, begin to fix.

Who it's for
Read this guide if
  • You build agent harnesses and wonder whether Claude Code, Codex, and Pi are really different
  • You want to understand the RLM paper's actual thesis beyond 'just sub-agents'
  • You follow GPU kernel automation, KernelBench, or GPU Mode competitions
  • You're curious about multi-agent swarms like OpenAI's $40M Navier-Stokes run
Skip ahead if
  • You want a step-by-step tutorial on implementing RLMs — this is a research conversation
  • You need coding-agent basics rather than frontier harness research
  • You're looking for benchmark numbers only, with no design commentary
  • You want deep math behind any single technique rather than a research survey
In brief
  • Runs 1 hour 43 minutes (6,204 seconds) of interview with MIT PhD student Alex Zhang
  • Organized into 15 chapters across 5 chronological modules
  • Covers RLMs, KernelBench/GPU Mode, Prime Agent, agent swarms, and open-endedness research at Sakana
  • Level: advanced — assumes familiarity with LLM agents, harnesses, and post-training
  • Source is a free podcast conversation, not a structured course

The walkthrough

Each chapter below is our original written explanation of what happens at that moment in the video — a paraphrase, not a transcript. Click any timestamp to jump the player.

Opening: Harness Sameness and GPU Kernels

0:00

Introduction: It's a Skill Issue

Alex argues that Claude Code, Codex, Pi, and Prime Agent are essentially the same design, and that models can do more if the surrounding systems try harder — it's a 'skill issue' rather than a model limitation.

3:31

GPU Mode, KernelBench, and Kernel Competitions

Alex recounts how he got into GPU kernels via a Snapchat internship, how KernelBench emerged from the GPU Mode community, and how new competition sites like LeetGPU are spreading.

7:10

AI vs Human Kernel Writers

Most top leaderboard solutions are now AI-generated, but the top human-steered entry remained the only one stable in end-to-end systems, showing human verification still adds value despite the known reward-hacking problem.

10:45

Speed-of-Light Limits and Megakernels

A theoretical optimum can be computed for kernels but is rarely reachable; speed must be judged end-to-end, which motivates kernel fusion and megakernels, though Alex is skeptical models can auto-generate megakernels without new data.

Research Taste and Unconventional Model Designs

15:17

SWE-bench Roots and Academic Research Taste

Alex describes working with the SWE-bench team at Princeton and argues the best academic research targets problems industry ignores, rather than chasing popular benchmarks.

18:17

RLM Reception and 'Obvious' Ideas That Shaped the Field

The RLM paper was dismissed as 'just sub-agents,' which Alex sees as a good sign; he compares it to Chain of Thought and React, ideas that seemed obvious but told the field what it should look like.

21:57

JEPA-Style Models Beyond Text-to-Text

Alex defends a recently overhyped-then-dismissed model that swaps the text-to-text output space for cheap, calibrated inference, arguing language models need not be autoregressive decoders — the same criticism leveled at RLMs.

29:00

Calibration and Low-Latency Benchmarks

He highlights calibration as overlooked — grounded classification avoids models fabricating confidence numbers — and describes his ~2-year-old video game benchmark testing vision-language models under latency constraints.

Recursive Language Models in Depth

33:46

What Is an RLM?

An RLM is a harness where the only tool is code, the model can call itself recursively as a function, and the full context always lives in memory inside the code environment rather than being stuffed into the prompt.

37:44

Generalization and 'Locally in Distribution' Tasks

Naively trained RLMs generalize to tasks 8–30x longer because sub-tasks share one strategy; breaking problems into local calls keeps every individual model call in-distribution even when the whole task is not.

42:46

Harness Tax and Training-on-Harness Effects

The 'harness tax' paper confirms most harness choices matter little; models are trained around the trajectory-as-prompt harness class, which explains why current models are only OK inside RLMs.

53:20

Prime Agent and the RLLM Endgame

Alex explains his collaboration with Prime Intellect on Prime Agent — IPython as the sole tool, continual harness self-modification, and persistent sub-agents — and the logical endpoint of training a custom model on RLM data.

59:58

RLMs in the Wild: Harvey, Headlong, and ARC-AGI

Harvey post-trained an RLM for legal document work with strong results, Headlong builds persistent thinking on the RLM abstraction, and top ARC-AGI-3 Kaggle harnesses reference the abstraction.

Swarms, Open-Endedness, and Lab Commentary

1:05:56

OpenAI's Navier-Stokes Swarm Run

Alex estimates the ~10,000-agent, 88-hour, 130-billion-token run cost roughly $40M at public pricing, and argues the harness mattered less than meaningful agent composition and long search.

1:09:36

Sakana, Open-Endedness, and Picking Gems from Slop

Drawing on his summer at Sakana, Alex frames open-endedness as sifting huge auto-generated corpora for hidden gems, and weighs it against goal-directed ML and the unsolved problem of choosing an objective.

1:20:26

Google, Meta, and Speculative Parallel Tool Calls

Alex thinks criticism of Google is overblown given its harness engineering, and calls speculative parallel tool calling an obvious no-brainer that requires functional programming languages to pipeline dependencies.

Capability Overhang, Language, and Research Life

1:23:30

The Capability Overhang Thesis

Alex argues models are disproportionately good at coding and math and those abilities can transfer to other domains through a general-purpose harness — an open question paralleling continual learning.

1:31:00

Language of Thought and Sapir-Whorf for Models

Using Sapir-Whorf and a Dune analogy, Alex explores how a model's output language constrains its reasoning, concluding models' native language is a mix of English and Python reflecting training data.

1:39:19

Working with Alex and the Road Ahead

Alex describes his idea workflow — brief exploration, then weeks of intense pursuit — how to reach him (with strong, reasoned convictions, not 'pick your brain' asks), and why benchmark saturation and science's long feedback loops shape what's next.

Moment by moment

TimeWhy it matters
0:48The $40 million stat: 10,000 agents, 88 hours, 130 billion tokens on one problem
46:00Why RLMs will need new lightweight model types to fix their latency bottleneck
1:00:48The precise RLM definition: code as the only tool, context in the code environment
1:46:58Breaking down OpenAI's swarm run and why harness details mattered less than composition
1:59:18The 'skill issue' thesis: models are more capable than harnesses let them be

Do this next

  1. Read the RLM paper and browse the linked projects on its GitHub page, including the DSPy RLM integration
  2. Try Prime Agent or another RLM-style harness where IPython is the only tool, and note where it beats a standard coding agent
  3. Pick one repetitive task you vibe-coded a bot for and test whether a general harness solves it without custom code

Common questions

What is a recursive language model (RLM)?

A harness design where the only tool available to the model is code, the model can call itself as a function inside that code, and the full context is always stored in memory within the code environment rather than appended to the prompt.

Are Claude Code, Codex, and Pi actually different harnesses?

Alex argues they are essentially the same in design — all follow a trajectory-as-prompt loop, which is also why most current models are only OK inside RLMs: they were trained on that single harness form.

Why did RLMs get dismissed by critics?

Many called them 'just sub-agents.' Alex sees the confusion as a good sign, comparing RLMs to Chain of Thought and React — ideas that seemed obvious but reshaped how the field thinks.

What did OpenAI's Navier-Stokes result actually involve?

Semi-public numbers suggest roughly 10,000 agents running 88 hours and consuming 130 billion tokens, around $40M at public pricing. Alex guesses it was a swarm with shared context rather than an RLM strictly, and that harness specifics mattered less than long search and composition.

Spot a mistake?

Every chapter summary on this page is hand-checked against the full video, but a 103-minute conversation can hide nuances. If you spot an error or a misattributed claim, email us and we'll correct it.

More course guides