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.
RLM: Recursive Language Models for Large Codebases
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.
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.
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.
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.
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
- foundedShashi Jagtap founded
Superagentic AI“I'm a founder of Superagentic AI.”
YouTube Verified4 sources· Talk, Web· archived
- feature
RLM Code: Open-source reference implementation for demonstrating RLM concepts“It's a completely open-source project”
YouTube Unverified1 source· Talk
- built
Superagentic AI built
RLM Code“our own library, which we created at Superagentic AI, called RLM Code”
YouTube Unverified1 source· Talk
- featureDSPy: Includes an RLM implementation
“DSPy, which includes an RLM implementation”
YouTube Unverified1 source· Talk
- integrates with
“we're going to do—with Gemini”
YouTube Unverified1 source· Talk
- uses
“we're using Docker as a sandbox”
YouTube Unverified1 source· Talk
- feature
Codex: Harness writes Python code in a REPL to curate context
“the Codex harness writes Python code in a REPL to curate the context”
YouTube Unverified1 source· Talk
- feature
Claude: Managed agents use similar RLM concepts
“Claude's managed agents ... use similar RLM concepts”
YouTube Unverified1 source· Talk










