How Recursive Language Models Navigate Large Codebases

AI Engineer17m 27s
Shashi Jagtap beside the words RLMs Query the Codebase
0 comments · 0 votesOpen discussionClose discussion
Sign in to join the discussion

    Shashi Jagtap explains the problem with loading an entire large repository into a model contextContext engineering designs how relevant instructions, evidence, state and tool information are assembled for a model's task.. Cost rises, relevant evidence becomes harder to find and summaries may discard precisely the detail needed for a correct code change.

    The recursive language modelA recursive language model is an inference approach that lets a model inspect a large external input programmatically and make further model calls on selected parts. pattern stores the repository as an external variable and lets the model write code that searches, slices and computesRetrieval is the process of selecting relevant stored information and returning it to an AI system for the current task. over it. The model can ask focused subquestions, inspect results and repeat the process before producing a final answer.

    A live RLM Code demonstration shows the value of bounded queries, replayable trajectoriesAn execution trace records the sequence of operations and results produced while a system carries out a task. and cost trackingAI token efficiency measures how effectively a model or workflow turns consumed input and output tokens into useful results.. Jagtap presents the method as a research harness for comparing strategies, not a guarantee that recursion alone will solve every coding task.

    Original YouTube thumbnailWatch on YouTube

    Video topic coverage

    • Agents & workflows100
    • Coding & tools100
    • Models & learning50
    • Infrastructure & compute25
    • Research & evaluation75
    • Safety & security0
    • Business & productivity25
    • Creative & media0
    • Robotics & perception0
    • Society & policy0

    Share this video

    Shashi Jagtap beside the words RLMs Query the Codebase With WWW.ARTIFICIAL-INTELLIGENCE.VIDEO, 27 July 2026 and duration 17m 27s.

    Shashi Jagtap shows how recursive language models can keep a large codebase outside the prompt, then write code to inspect, query and decompose it, reducing context pressure while preserving an auditable path to the answer.