rlm

Chunk large text files and delegate analysis to sub-LLMs.

17|3|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/Whamp/pi-rlm --skill rlm-whamp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rlm
Source: https://github.com/Whamp/pi-rlm/tree/main/skills/rlm
Command: npx skills add https://github.com/Whamp/pi-rlm --skill rlm-whamp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The RLM skill enables processing of files that are far larger than the context window of standard language models, such as multi‑megabyte logs, extensive codebases, or whole textbooks, without exhausting token limits.

Core Features & Use Cases

  • Chunking: Automatically splits content at logical boundaries (markdown headers, paragraphs, JSON arrays/objects, or code symbols) to create manageable pieces.
  • Handle System: Performs token‑efficient searches and incremental materialization of results.
  • REPL Environment: Loads the entire document into a persistent Python REPL for structural analysis and iterative queries.
  • Sub‑LLM Escalation: Provides Level 2 semantic reasoning via llm_query and Level 3 synthesis through subagents, keeping the main context clean.
  • Typical Scenarios: Analyzing massive log dumps, reviewing large code repositories, summarizing textbooks, or extracting insights from extensive technical documentation.

Quick Start

Run /skill:rlm context=path/to/large.txt query='Summarize the document' to begin processing.

Frequently Asked Questions about rlm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze large text files that exceed LLM context limits?

To analyze large text files that exceed LLM context limits, this skill automatically splits content at logical boundaries like markdown headers or code symbols into manageable chunks, then delegates processing to sub-LLMs to keep the main context clean.

What is the best way to process multi-megabyte log dumps for insights?

The best way to process multi-megabyte log dumps is by loading the entire document into a persistent Python REPL for structural analysis, using a handle system for token-efficient searches, and synthesizing final answers through subagents.

Can I review an entire extensive codebase without exhausting token limits?

You can review an extensive codebase without exhausting token limits by splitting the content at logical code symbols and escalating semantic reasoning to Level 2 sub-LLMs, which keeps the main context clean while analyzing the repository.

How does the handle system work for searching massive documents?

The handle system performs token-efficient searches and incremental materialization of results, allowing you to query massive documents without loading the entire content into the context window at once.

What file formats are supported for chunking beyond standard text?

Chunking supports splitting content at logical boundaries for markdown headers, paragraphs, JSON arrays and objects, or code symbols, enabling manageable processing for various massive document types.