RLM vs code mode: stateless tool-layer sandbox vs stateful inference-layer REPL

dosco · x · 2026-12-01

Both approaches use code to keep bloat out of the context window, but solve different problems. Code mode is a stateless sandbox at the tool layer, replacing huge MCP schemas with search() and execute() so the model filters specs and chains API calls in one shot. RLMs are a stateful REPL at the inference layer: large inputs persist across turns and code can recursively call sub-LLMs (fan-out, map-reduce) to reason over huge data. RLMs scale reasoning and context; the two may end up working together.

Original post →

More from coding & agent

coding & agent channel →