MIT PhD researcher Alex Zhang joins swyx to explore how opinionated system design can unlock latent capabilities in frontier language models. Tracing his path from the GPU Mode community and KernelBench to Princeton's SWE-bench group, Zhang argues that human intuition still beats brute-force AI search in end-to-end GPU kernel stability and that PhD students must take contrarian research bets. He explains why popular coding harnesses like Claude Code, Codex, and Pi share the same trajectory-as-a-prompt loop, and introduces Recursive Language Models (RLMs) and Prime Agent, which offload context to disk and use Python code to call persistent subagents on locally in-distribution subtasks.
The conversation also examines non-autoregressive models like GEV, lessons on open-endedness from Sakana AI, and the economics of massive multi-agent swarms, including OpenAI's reported 10,000-agent, 130-billion-token run worth roughly $40 million. Zhang predicts that future language model APIs will conceal coordinated agent swarms underneath a clean user stream and argues that unlocking month-long autonomous workflows is now a harness engineering challenge.
How time-sensitive the topic is: Developing story
By the numbers
1 trillion tokens: Hypothetical brute-force token spend that a single human expert insight can erase when steering a model on a hard problem. (Mentioned at 10:09)
400x cost multiplier: Illustrative extra cost of using a full autoregressive language model for a simple binary classification task instead of a classifier head like GEV. (Mentioned at 22:52)
8 to 30 times longer: Task length generalization achieved when training a Recursive Language Model on short tasks and evaluating on longer ones. (Mentioned at 38:41)
99.9% benchmark score: Reported score OpenAI claimed to achieve on the ARC-AGI-3 benchmark. (Mentioned at 1:02:30)
10,000 agents: Number of agents OpenAI reportedly ran over 88 hours in its massive multi-agent swarm experiment. (Mentioned at 1:06:21)
88 hours: Duration of OpenAI's 10,000-agent swarm run. (Mentioned at 1:06:23)
130 billion output tokens: Final output tokens generated during OpenAI's 10,000-agent swarm run, with total agent messages exceeding double that amount. (Mentioned at 1:06:26)
$40 million USD (estimated public pricing): Estimated cost at public API pricing for OpenAI's 10,000-agent, 130-billion-output-token run. (Mentioned at 1:06:28)
95% of the swarm: Proportion of an agent swarm's exploration that Alex Zhang suspects is useless token burn during search. (Mentioned at 1:08:03)
Questions this video answers
What is a Recursive Language Model (RLM) and how does it differ from standard AI agents?
A Recursive Language Model is an agent harness where the entire context is offloaded to external memory (such as a file system) and code execution is the only tool available. Instead of appending a growing trajectory to the prompt and calling discrete tools turn by turn, an RLM writes code to programmatically call itself as a subagent on localized pieces of the problem, keeping every individual model call locally in distribution.
Alex Zhang, 44:12 to 53:51
From this keypoint: Defining RLMs and keeping calls in distribution
Why does Alex Zhang say Claude Code, Codex, and Pi are all basically the same?
Zhang argues that mainstream coding harnesses all rely on the same 'trajectory as a prompt' loop, where tool outputs are repeatedly appended to the main context until compaction occurs. Because they share this identical structural logic, switching between them mostly affects cost and user interface feel rather than fundamentally changing what tasks the underlying model can generalize across.
Alex Zhang, 32:52 to 42:17
From this keypoint: Harnesses act as compositional generalizers
How much compute and money did OpenAI's 10,000-agent swarm experiment use?
According to figures discussed by swyx, OpenAI's swarm experiment ran 10,000 agents for 88 hours and generated 130 billion output tokens (with total inter-agent messages more than double that), equivalent to roughly $40 million at public pricing. Zhang notes that while up to 95% of such a swarm's search may be wasted tokens, having the option to spend $40 million to solve a hard proof shows how future 'language models' may operate as hidden swarms underneath a simple query interface.
Alex Zhang, 1:02:26 to 1:09:23
From this keypoint: OpenAI's $40M swarm and future language models
How do Recursive Language Models improve compositional generalization during training?
When an RLM offloads context and writes code to delegate subtasks to subagents, the high-level control program looks nearly identical across very different domains like retrieval, aggregation, math, and writing. Training an RLM on short tasks allows it to learn a generalizable strategy that transfers directly to tasks 8 to 30 times longer and across distinct task categories.
Alex Zhang, 32:52 to 42:17
From this keypoint: Harnesses act as compositional generalizers
What is Prime Agent and how does it handle persistent subagents?
Prime Agent is an RLM harness built with Prime Intellect on top of Pi-mono that restricts tool calls to an IPython kernel and stores full uncompacted context on disk. It includes a continual harness that lets the agent modify its own skills and system prompts, alongside persistent subagents that stay alive after run completion and communicate with each other through code.
Alex Zhang, 53:58 to 1:02:24
From this keypoint: Prime Agent and real-world RLM adoptions
Why are human experts still needed if AI models can write fast GPU kernels?
Although AI generates almost all recent solutions on the GPU Mode leaderboard, purely AI-written kernels frequently suffer from reward hacking and instability. A human expert named gau-nernst guided AI to produce shorter code that was the only top-10 solution stable in end-to-end systems, showing that human intuition acts as a strong verifier that can replace up to a trillion tokens of brute-force search.
Alex Zhang, 9:34 to 15:07
From this keypoint: Human intuition beats brute-force token search
What is GEV and why does it matter for language model inference latency?
GEV is a model system that uses a language model backbone but modifies the output space away from standard autoregressive text-to-text decoding to perform fast, calibrated classification. This avoids paying a massive cost and latency penalty when a task only requires a quick classification or low-latency decision, such as playing video games or routing subtasks inside an RLM.
Alex Zhang, 21:18 to 30:55
From this keypoint: GEV challenges the autoregressive decoder paradigm
How are companies like Harvey and the Laude Institute using Recursive Language Models?
Legal AI company Harvey collaborated with Baseten to post-train an RLM for legal workflows that require sifting through complex document sets beyond simple retrieval. Meanwhile, Andy Konwinski's Laude Institute built Headlong (formerly Terminus), an always-on RLM-based harness that persistently thinks through context problems while controlling token burn.
Alex Zhang, 53:58 to 1:02:24
From this keypoint: Prime Agent and real-world RLM adoptions
What is speculative programmatic tool calling?
Speculative programmatic tool calling statically analyzes the code an agent writes to launch sequential or slow tool calls in advance before prior steps finish waiting. Zhang views it as an obvious optimization for code-based harnesses like RLMs or CodeAct, especially when paired with functional programming paradigms.
Alex Zhang, 1:22:00 to 1:29:48
From this keypoint: Capability overhang and speculative tool calling
What is the biggest bottleneck in open-ended AI research at labs like Sakana AI?
Drawing on his summer at Sakana AI, Zhang explains that when evolutionary or open-ended systems generate huge volumes of unprompted work, the hardest problem is selecting the genuinely interesting results from a giant corpus of slop. Without a clear verifier or objective function, sifting through high-throughput generation remains an unsolved challenge.
Alex Zhang, 1:09:26 to 1:17:48
From this keypoint: Open-endedness and Sakana AI's research culture
What research strategy does Alex Zhang recommend for AI PhD students?
Zhang advises PhD students to avoid building incremental benchmarks or task-specific harnesses designed merely to look good to corporate labs. Instead, academics should leverage their freedom from bureaucracy to make contrarian, high-risk bets on ideas that initially look trivial or impossible—like SWE-bench, ReAct, Quiet-STaR, or RLMs.
Alex Zhang, 15:16 to 21:18
From this keypoint: Why PhD students must take weird, contrarian bets
Credible AI™ signals
Confidence: Direct Researcher Insights. MIT PhD researcher Alex Zhang speaks directly about his own published papers and engineering work on KernelBench, Recursive Language Models, and Prime Agent. He distinguishes between empirical findings, unreleased internal observations, and personal speculation about third-party labs like OpenAI and Google DeepMind.
Bias: Harness-Centric Academic Lens. Alex Zhang naturally champions his own Recursive Language Model abstraction and Prime Agent collaboration while arguing that academic researchers should pursue contrarian, non-standard architectures over the scaling paradigms favored by major industry labs.
Originality (88%): Novel Systems Framing. Rather than repeating standard scaling narratives, the discussion reframes language model harnesses as compositional generalizers, connects GPU kernel optimization to competitive programming, and explores how future models may hide multi-agent swarms behind a single interface.
Depth (86%): Deep Architectural Analysis. The conversation moves from low-level hardware constraints like HBM caching and kernel fusion up to high-level agent abstractions, offering concrete technical mechanisms for context offloading, locally in-distribution subtasks, and speculative tool execution.
Key points (13)
Short (24 min): key points 1, 6 and 11
Medium (41 min): key points 1, 5, 6, 8 and 11
Relaxed (1h 36min): all 13 key points
1. Alex Zhang traces GPU Mode and KernelBench origins
Timestamp: 00:02:45 to 00:09:34 (7 min)
Speaker: Alex Zhang
Alex Zhang explains that GPU Mode started around 2023 as a Discord community for learning GPU kernels before adding the Popcorn leaderboard. Because GPU optimization involves a small space of techniques similar to competitive programming, Zhang and his peers created KernelBench to test whether language models could automate kernel writing. While the field has grown more saturated, the community's open lectures remain a premier resource for beginners.
Impact: Medium. Why it matters: Framing GPU kernel writing as a constrained competitive programming problem enabled benchmark-driven automation for AI hardware optimization.
“If you could do this with GPU code like you could scale and automate kind of GPU kernel development which for researchers is a huge deal”
In the video: Alex Zhang, at 4:35
For: swyx
2. Human intuition beats brute-force token search
Timestamp: 00:09:34 to 00:15:07 (6 min)
Speaker: Alex Zhang
Although almost all recent GPU Mode leaderboard solutions are AI-generated, human domain expertise remains vital for verification and stability. A skilled member named gau-nernst guided AI to write the only top-10 kernel that stayed stable in end-to-end systems, proving that expert intuition can replace burning a trillion tokens on brute-force search. For mega-kernels across layers, Zhang suspects compilers over high-level operations will work better than pure model generation.
Impact: High. Why it matters: Highlights that unguided AI kernel generation suffers from reward hacking and instability, preserving a high premium for human systems engineers.
“maybe you can burn like a hundred billion or a trillion tokens on something but if you bring in someone who knows something about the problem um they can uncover something for the model that would like erase that one trillion token spent.”
In the video: Alex Zhang, at 10:05
For: swyx
3. Why PhD students must take weird, contrarian bets
Timestamp: 00:15:16 to 00:21:18 (6 min)
Speaker: Alex Zhang
Academic researchers cannot compete with industry labs on compute or incremental harnesses, so their main advantage is freedom from bureaucracy to pursue contrarian bets. Works like SWE-bench, ReAct, Quiet-STaR, and Recursive Language Models initially looked trivial or impossible to critics, yet they reshaped how the field thinks. Grad students who only build safe benchmarks to impress corporate labs waste academia's unique position.
Impact: Medium. Why it matters: Provides a clear strategic filter for academic AI researchers: pursue foundational ideas that industry labs ignore rather than incremental engineering.
“you kind of need to take big bets if you're going to be in academia because otherwise I think like just go to an industry lab like you know they have tons of resources, tons of talent.”
In the video: Alex Zhang, at 20:24
For: swyx
4. GEV challenges the autoregressive decoder paradigm
Timestamp: 00:21:18 to 00:30:55 (10 min)
Speaker: Alex Zhang
Critics dismissed GEV as a simple classifier, but Alex Zhang argues its real value is questioning whether every language model must be an autoregressive text-to-text decoder. By modifying the output space on top of a language model backbone, GEV achieves up to 400x cheaper and faster inference for tasks like binary classification or low-latency game playing. Smaller labs cannot beat OpenAI or Anthropic on raw scale, so they must explore alternative architectures and training objectives.
Impact: High. Why it matters: Signals a shift away from one-size-fits-all autoregressive decoding toward specialized output heads that solve latency bottlenecks in multi-agent systems.
“people have gotten kind of accustomed to this idea that a language model is just a auto reggressive decoder. Like we have accepted this.”
In the video: Alex Zhang, at 23:11
For: swyx
5. Harnesses act as compositional generalizers
Timestamp: 00:32:52 to 00:42:17 (9 min)
Speaker: Alex Zhang
Mainstream coding agents like Claude Code, Codex, and Pi share virtually the same trajectory-as-a-prompt design, which struggles to generalize across domains. When a Recursive Language Model offloads context and writes code to delegate easier subtasks to subagents, its high-level strategy remains identical across retrieval, aggregation, math, and writing tasks. Training an RLM on short tasks allows it to generalize to problems 8 to 30 times longer.
Impact: High. Why it matters: Demonstrates that opinionated harness design can dramatically improve sample efficiency and cross-domain generalization without requiring larger base models.
“when the model recognizes during training how to solve a task, it turns out that the solution to many tasks is very similar.”
In the video: Alex Zhang, at 36:43
Neutral: swyx
6. Defining RLMs and keeping calls in distribution
Timestamp: 00:44:12 to 00:53:51 (10 min)
Speaker: Alex Zhang
While standard harnesses append the entire rollout trajectory to the prompt until it goes out of distribution, a Recursive Language Model stores context in external memory and uses code execution as its sole tool. By programmatically calling itself as a subagent on localized slices of the problem, every individual model call stays locally in distribution. Post-training models specifically for RLM workflows could alter post-training scaling laws.
Impact: High. Why it matters: Provides a concrete architectural blueprint for solving long-horizon tasks without suffering from context degradation or out-of-distribution drift.
“An RLM is basically just a harness design where the only tool in the harness is code. Uh which is this programmatic sub aent calling thing where it has the option to call itself as a tool”
In the video: Alex Zhang, at 46:26
For: swyx
7. Prime Agent and real-world RLM adoptions
Timestamp: 00:53:58 to 01:02:24 (8 min)
Speaker: Alex Zhang
Built with Prime Intellect on top of Pi-mono, Prime Agent restricts tool use to an IPython kernel, offloads context to disk, and incorporates a continual harness that lets the agent modify its own skills and system prompt. It also supports persistent subagents that outlive the initial run and communicate via code.
Impact: High. Why it matters: Validates that RLM abstractions are moving beyond academic papers into production legal tech, persistent agents, and reasoning benchmarks.
For: swyx
8. OpenAI's $40M swarm and future language models
Timestamp: 01:02:26 to 01:09:23 (7 min)
Speaker: Alex Zhang
Discussing OpenAI's reported breakthroughs on ARC-AGI-3 and Navier-Stokes, swyx notes the run used 10,000 agents over 88 hours and 130 billion output tokens, worth roughly $40 million at public pricing. Alex Zhang argues that while perhaps 95% of a swarm's search is wasted tokens, coordinating agents over a shared file system allows frontier models to uncover proofs they could never produce in a single forward pass.
Impact: High. Why it matters: Reframes test-time compute scaling: users will soon query multi-million-dollar agent swarms disguised behind a standard chat endpoint.
“what we think of as a language model like the thing that we query might actually be like a swarm or like a scaffold or like some weird harness design that scales very well, but the user just doesn't see it.”
In the video: Alex Zhang, at 1:05:23
For: swyx
9. Open-endedness and Sakana AI's research culture
Timestamp: 01:09:26 to 01:17:48 (8 min)
Speaker: Alex Zhang
Reflecting on his summer at Sakana AI, Alex Zhang compares open-ended evolutionary search to launching agent swarms at unsolved math problems. While swyx wonders what happens when agents operate with no prompt or predefined objective at all, Zhang notes that the hardest problem in open-endedness is filtering a massive corpus of generated slop to identify the hidden gems.
Impact: Medium. Why it matters: Identifies verification and selection—not raw generation—as the central bottleneck preventing open-ended AI systems from automating basic science.
“the biggest issue that people had with open-endedness was like how do you ultimately choose at the end? How do you pick out the interesting stuff?”
In the video: Alex Zhang, at 1:12:08
For: swyx
10. Comparing OpenAI, Kimi, and DeepMind swarms
Timestamp: 01:17:48 to 01:21:58 (4 min)
Speaker: Alex Zhang
Getting a multi-agent swarm to converge on a difficult goal does not happen for free, and Alex Zhang believes OpenAI specifically trained its models for collaborative swarm behavior. By contrast, Kimi's agent swarm release and dynamic workflows appear less capable of solving novel problems or proved too expensive in practice.
Impact: Medium. Why it matters: Separates marketing demos from true multi-agent convergence, emphasizing that swarm coordination must be explicitly trained into models.
“I think we we take for granted what it means for a swarm to converge to an answer. It's just like not not something we can take for granted.”
In the video: Alex Zhang, at 1:19:52
For: swyx
11. Capability overhang and speculative tool calling
Timestamp: 01:22:00 to 01:29:48 (8 min)
Speaker: Alex Zhang
Alex Zhang briefly endorses speculative programmatic tool calling—launching sequential tools in advance via static analysis—as a no-brainer optimization. Turning to his 'Mismanaged Geniuses' thesis, he argues that current frontier models suffer from a massive capability overhang: they excel at math and code yet fail to reliably perform a simple high-school-level job over a month.
Impact: High. Why it matters: Suggests that massive practical automation gains are sitting unlocked in existing models if developers build general-purpose, continual harnesses.
“I think that it genuinely is a skill issue of you can get a model to be as good as let's say like just some 18-year-old high school kid doing some job.”
In the video: Alex Zhang, at 1:24:35
For: swyx
12. swyx and Zhang debate Neuralese and language priors
Timestamp: 01:29:48 to 01:34:08 (4 min)
Speaker: swyx
Asked whether models should reason in binary or a new 'Neuralese' instead of human text, Alex Zhang favors a mix of English and Python because model capabilities reflect their training data. swyx counters with the Sapir-Whorf hypothesis, arguing that English locks reasoning into sequential, autoregressive constraints, whereas a diffusion-style or pure functional language could express whole relational ideas simultaneously.
Impact: Low. Why it matters: Raises a foundational question for post-training: forcing chain-of-thought into sequential English may bottleneck non-linear machine reasoning.
For: Alex Zhang
13. Future research directions and AI for science
Timestamp: 01:34:08 to 01:43:19 (9 min)
Speaker: Alex Zhang
Alex Zhang explains that he moved from GPU kernels to zero-gradient harness research because systems optimization is merely a means to explore broader model and agent ideas without hardware bottlenecks. He welcomes collaborations with opinionated researchers who have strong convictions, noting that he explores 10 to 15 ideas to find one worth a deep sprint.
Impact: Low. Why it matters: Outlines how top academic researchers navigate rapidly saturating AI benchmarks and evaluate where to place their next foundational bets.
“to me like the GPU level is a means to exploring other ideas like you you you you want to for example like get good at writing kernels or like even automate writing kernels for the sake of a broader goal”
In the video: Alex Zhang, at 1:35:16
For: swyx
Conflicts of interest (1)
Alex Zhang's Collaboration with Prime Intellect
Professional conflict, Medium severity
Alex Zhang is the creator of Recursive Language Models and directly collaborated with Prime Intellect to build and release the Prime Agent harness.
Sources: Alex Zhang, Prime Intellect, Prime Agent
Significance: Zhang evaluates Prime Agent and the Recursive Language Model paradigm as uniquely capable compared to competing harnesses like Claude Code, Codex, and Pi.
Key sources
Alex Zhang: MIT PhD Researcher, creator of RLMs and KernelBench
swyx: Host
Who's in this
Mark Saroufim
Tri Dao
OpenAI
Anthropic
Sakana AI
Prime Intellect
Harvey
Claude Code
Codex
Prime Agent
KernelBench
SWE-bench
GEV
Kimi
Google DeepMind
Also mentioned
Recursive Language Models (First mentioned at 2:03)
Pi (First mentioned at 0:01)
Astra (First mentioned at 0:38)
GPU Mode (First mentioned at 2:10)
Princeton (First mentioned at 6:43)
MIT (First mentioned at 17:14)
Fable (First mentioned at 23:04)
ARC-AGI-3 (First mentioned at 1:01:49)
Shunyu Yao (First mentioned at 15:41)
Omar Khattab (First mentioned at 17:14)
Eric Zelikman (First mentioned at 19:06)
Qwen (First mentioned at 28:48)
Hugging Face (First mentioned at 29:11)
Gemini (First mentioned at 56:26)
Headlong (First mentioned at 1:00:31)
Andy Konwinski (First mentioned at 1:00:45)
DSPy (First mentioned at 1:01:43)
Cursor (First mentioned at 1:06:47)
David Ha (First mentioned at 1:16:08)
Noam Brown (First mentioned at 1:20:01)
Arrival (First mentioned at 1:32:36)
Clémentine Fourrier (First mentioned at 29:11)
Baseten (First mentioned at 1:00:28)
Terence Tao (First mentioned at 1:42:10)
This analysis was generated by skim (skim.plus), an AI-powered content analysis platform by Credible AI. Scores and classifications represent the platform's AI-generated assessment and should be considered alongside other sources.