Code
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
Tags
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
- Note
Long context: three bets and a weak spot in evaluation (overview)
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.
Similar entries
- Paper Harness as a Language: A Minimalist Agent Framework With Maximal Expressivity
- Post Reinforcing Recursive Language Models
- Model Naive-N0.5-Flash: Building Frontier AI with AI
- Paper LongHarness Bench: Stress-Testing Language Model Harnesses for Long-Context Reasoning
- Paper Context Language Models
- Paper Pokee-Isaac 28B: A 10M-Token Context Efficient Agentic Model Technical Report