{"repo":"apenab/pyrlm-runtime","free":true,"listed":false,"github":"https://github.com/apenab/pyrlm-runtime","clone":"git clone https://github.com/apenab/pyrlm-runtime.git","description":"Minimal runtime for Recursive Language Models (RLMs) inspired by the MIT CSAIL paper \"Recursive Language Models\".","language":"Python","stars":33,"topics":["ai","anthropic","gpt","llm","openai","rlm"],"license":"MIT","category":"ai-agents","readme_excerpt":"pyrlm-runtime Minimal Python runtime for Recursive Language Models (RLMs) — inspired by the MIT CSAIL paper \"Recursive Language Models\" . RLMs solve the long-context problem: instead of sending huge contexts directly to an LLM (which truncates or degrades), the context lives as environment state in a Python REPL. The LLM writes code to inspect, search, and chunk the data, making recursive subcalls to smaller models when needed. Result: handle arbitrarily large contexts with constant token usage per step. Table of Contents - Installation - Quickstart - Live Rich Trace - Core Concepts - API Reference - RLM - Context - Adapters - Policy - Trace - Cache - Router - Reranking - Multi-Query Retrieval - REPL Backends - REPL Functions Available to the LLM - Retrieval Integration - Extending the REPL - Parallel Subcalls - Multi-Turn Conversation History - Guard Mechanisms & Fallbacks - Configuration - Examples - When to Use RLMs - Benchmark: RLM vs Baseline - Development - References - License Installation Or with uv: For live terminal visualization of the REPL loop with rich : Requirements: Python 3.12+ Optional: For the secure Monty REPL backend (Rust sandbox): Quickstart 1. Set your API key 2. Basic usage For unusually long trajectories you can also enable compaction=True with compaction threshold pct=0.85 to summarize old turns instead of overflowing the window — see Multi-Turn Conversation History. 3. Run without external APIs (for testing) Live Rich Trace With a real Azure OpenAI","default_branch":null,"files":null,"tree":[],"storefront":"/r/apenab","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/apenab/pyrlm-runtime/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."}