Recursive Language Models (RLMs) - Let's build the coolest agents ever! (Theory & Code)

Recursive Language Models (RLMs) - Let's build the coolest agents ever! (Theory & Code)

🎙 Neural Breakdown with AVB 👥 34K 📅 February 21, 2026 ⏱ 49 min 👁 25K 📄 tutorial 🧭 2026-08-15
Available in: English (current) Français

Keywords

RLMLLMREPLsub-agentslong context

Summary

The video introduces Recursive Language Models (RLMs), an inference technique where an LLM interacts with arbitrarily long prompts through an external REPL (Read-Eval-Print Loop). The author explains that RLMs allow the model to write code to explore, decompose, and transform the prompt, and to recursively invoke sub-agents for subtasks. Crucially, sub-agent responses are returned as variables in the parent’s REPL, not loaded into the context, avoiding context pollution. The video shows real trajectories on problems like counting ‘r’s in fruit names and spam detection, demonstrating the model’s ability to write and execute code to solve tasks. The implementation section covers building an RLM from scratch using Deno and Pyodide, with code available on GitHub and PyPI. The author compares RLMs with other methods like RAG and ReAct, highlighting advantages in long-context scenarios and cost efficiency. The video concludes with guidance on when to use RLMs, emphasizing their suitability for tasks requiring complex reasoning over large contexts. The presentation includes a sponsor segment for Paper Breakdown, a tool for studying research papers.

171 words

Critical Evaluation

Value of the Information & Strength of the Argument

The video provides valuable insights into RLMs, explaining the core concepts clearly and illustrating them with concrete examples. The argumentation is solid, as the author demonstrates the effectiveness of RLMs through real trajectories and discusses the underlying principles, such as the U-shaped retrieval performance and context rot. The comparison with other methods is informative, though it could be more detailed. The author also acknowledges the dependency on the base model’s coding ability and the need for prompt tuning, which adds credibility. However, the promotional segments for Paper Breakdown and Patreon may distract from the scientific content.

Scientific Rigor, Source Quality, Title Accuracy

The video references the original RLM paper (arXiv:2512.24601) and provides links to the code repository and PyPI package. The author also mentions using models like MiniMax M2.5 and Zhipu GLM5, but does not provide specific sources for these. The title accurately reflects the content, covering both theory and implementation. The video is well-structured with clear sections, and the author’s explanations are generally rigorous. However, the lack of independent verification of the claims and the promotional nature of some parts slightly reduce the overall scientific rigor.

196 words

Title / Content Match

The title accurately reflects the content: the video covers both theoretical aspects and implementation details of RLMs.

Quality & Reliability

8/10

The video provides a detailed explanation of RLMs, referencing the original paper and open-source code. The author demonstrates practical examples and discusses limitations, showing a good understanding of the subject. However, the presentation is partly promotional for the author's own tools, and some claims lack independent verification.

Chapters

Cited Sources

Concurring Sources

Contribution & Novelties

The video offers a clear and practical introduction to RLMs, a novel inference technique that leverages an external REPL to enable LLMs to interact with long contexts programmatically. The author provides real trajectories and implementation details, making the concept accessible. The key novelty is the emphasis on sub-agent responses being returned as variables in the parent’s REPL, which avoids context pollution and enables efficient handling of long prompts.

Pour aller plus loin :

128 words

Radar Profile

The radar profile shows high scores in quantity and quality of information, indicating a content-rich and well-explained video. The technical level is moderate, suitable for an audience with some background in AI. The global reliability is slightly lower due to the promotional elements and lack of independent verification, but overall the video is a valuable resource.

Reliability 7/10