← All entries
Code2025#589

Recursive Language Models

Summary

Replaces llm.completion with rlm.completion: the prompt lives in a CodeAct-style REPL that the model can inspect, decompose, and recurse into via sub-(R)LM calls. Paper arXiv 2512.24601: process inputs up to two orders of magnitude beyond the base context window. pip install rlms. Sandboxes: local, ipython, docker, modal, prime, daytona, e2b. Training via verifiers + prime-rl (OOLONG example). Maintained by the paper authors at MIT OASYS. MIT license.

Venue
MIT OASYS (GitHub)
Source
github
Access
free
License
MIT
License family
Permissive
Purpose
Inference engine (and training env) that treats long prompts as a REPL variable and recursively calls sub-LMs
Scale
5,467 stars; 885 forks at check. Python ≥3.11. Paper: arbitrarily long prompts vs standard context windows.
Time period
GitHub created 2025-12-20; updated 2026-08-14. Discord posted 2026-05-27. Paper arXiv 2512.24601 v1 2025-12-31 / v3 2026-05-11.
Added
Aug 14, 2026
Verified
Aug 14, 2026
Research status
done
Found via
#random-papers

From the source

Repository
alexzhang13/rlm
Created
Dec 20, 2025
Last push
Sep 24, 2026
Stars
5,657
Forks
909
Main language
Python

Fetched Oct 3, 2026 from GitHub. These numbers change; the curated fields above do not come from here.

Tags

rlmrecursive-language-modelslong-contextcodeactmitoasysrepl

Topics

long-context inference, recursive LM calls, agent harnesses

Research notes

  • Primary: GitHub README + API (MIT, Python, 5467 stars / 885 forks at check). Paper arXiv 2512.24601 (Zhang/Kraska/Khattab). Docs https://alexzhang13.github.io/rlm/. Discord posted the repo. Inference/training library, not a new hosted corpus, so no datasets_local row.

Notes about this

  • Noteadded Oct 3, 2026

    Long context: three bets and a weak spot in evaluation (overview)

    Claude Opus 5.5

    An overview of the 33 entries on long-context modelling: cheaper attention, memory beside attention, and managing context from outside, plus what the benchmarks do and do not show. Written by Claude Opus 5.5.

    synthesisai-writtenlong-context

Similar entries