WhoBuilt

RLM: Recursive Language Models for Large Codebases

Jul 12, 2026· 17 min· 3.8K views·Watch on YouTube

Speaker

Shashi, founder of Superagentic AI, presents an AI Engineer World Fair 2026 online track talk about applying Recursive Language Model concepts to large codebases.

Why large codebases challenge coding agents

Shashi says coding agents can work well on smaller repositories, but performance can degrade as context grows, especially in monorepos. He reviews common approaches to managing context: filesystem search, semantic search, compression, and persistent memory.

Treat the repository as data

RLM moves context management into a programmable environment, such as a REPL, where a model can inspect a repository and select relevant material for the main context window. Shashi compares this to a lead engineer exploring an unfamiliar project, making notes, and asking specialists for help. In the RLM loop, those specialist questions become calls to another language model.

RLM Code as a reference implementation

Shashi introduces RLM Code, an open-source research playground and independent harness from Superagentic AI. He describes RLM as a pattern that can be implemented in different frameworks, and says RLM Code uses recursive calls and REPL execution with local or cloud models.

A repository analysis demo

In the demo, Shashi runs RLM Code against a code repository using Gemini and a Docker sandbox. The model writes REPL code, gathers evidence, makes LLM query calls, and produces a final answer; the run exposes its steps, tool calls, token use, and traces. An experimental coding-agent-style interface also shows the run trajectory and events.

Where engineers can apply the pattern

Shashi suggests using RLM concepts to investigate root causes, onboard to a repository, or explore unfamiliar codebases. He recommends capturing the full trajectory, including planning, code, observations, subcalls, budgets, and output. He also points to reported similarities with managed-agent and dynamic-workflow systems, while presenting some claims about software factories as uncertain.

Takeaways

  • For a large repository, let an agent inspect and select relevant code before adding it to the main context.
  • Use targeted model calls as specialist questions when repository inspection leaves gaps.
  • Keep the workflow’s code, observations, subcalls, budgets, and final answer traceable.
  • Try repository analysis, root-cause work, and onboarding as practical starting points for an RLM-style harness.

Mentioned in this talk

Search inside this talk

What was claimed 8

Related talks