{"repo":"richardwhiteii/rlm","free":true,"listed":false,"github":"https://github.com/richardwhiteii/rlm","clone":"git clone https://github.com/richardwhiteii/rlm.git","description":"Recursive Language Model patterns for Claude Code — handle massive contexts (10M+ tokens) by treating them as external variables","language":"Python","stars":49,"topics":["claude","claude-code","context-management","llm","mcp","recursive-language-model"],"license":"MIT","category":"ai-agents","readme_excerpt":"RLM MCP Server Recursive Language Model patterns for Claude Code — handle massive contexts (10M+ tokens) by treating them as external variables. Based on: https://arxiv.org/html/2512.24601v1 How Users Interact You don't call RLM tools directly. You ask Claude to analyze large files, and Claude uses RLM behind the scenes. Example: - You say: \"Analyze this 2MB log file for errors\" - Claude uses RLM tools internally - You get: \"I found 3 error patterns: database timeouts (47), auth failures (23)...\" Core Idea Instead of feeding massive contexts directly into the LLM: 1. Load context as external variable (stays out of prompt) 2. Inspect structure programmatically 3. Chunk strategically (lines, chars, or paragraphs) 4. Sub-query recursively on chunks 5. Aggregate results for final synthesis Quick Start Installation Or with pip: Configure for Claude Code Option 1: Quick Setup (recommended) This adds RLM globally ( -s user ) so it's available in all your Claude Code sessions. Option 2: With Ollama (free local inference) First set environment variables, then add: Option 3: Manual JSON config Add to /.claude/.mcp.json for full control: Note : Replace /path/to/rlm with your actual installation path (run pwd in the rlm directory). Enable Auto-Detection Enable Claude to use RLM tools automatically without manual invocation: 1. CLAUDE.md Integration Copy CLAUDE.md.example content to your project's CLAUDE.md (or /.claude/CLAUDE.md for global) to teach Claude when to reach for RLM tools aut","default_branch":null,"files":null,"tree":[],"storefront":"/r/richardwhiteii","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/richardwhiteii/rlm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}