rlm

Orchestrate Recursive Language workflows for oversized documents using rlm-rs CLI with hybrid search.

3|2|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/zircote/rlm-rs-plugin --skill rlm-zircote
Or copy as Structured Prompt for Agentā–¼
Please help me install this Agent Skill.
Skill: rlm
Source: https://github.com/zircote/rlm-rs-plugin/tree/main/skills/rlm
Command: npx skills add https://github.com/zircote/rlm-rs-plugin --skill rlm-zircote

SYSTEM DOCUMENTATION & REQUIREMENTS

šŸ’” This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill tackles the challenge of processing and analyzing documents that are too large to fit into the standard context window of language models, enabling deep insights from extensive datasets.

Core Features & Use Cases

  • Large Document Processing: Handles files up to 100x larger than typical context windows using the Recursive Language Model (RLM) pattern.
  • Hybrid Search: Efficiently finds relevant information using a combination of semantic and BM25 search.
  • Use Case: Analyze a multi-hundred-page legal contract or a large codebase by breaking it down, searching for specific clauses or functions, and synthesizing a coherent summary.

Quick Start

Use the rlm skill to process the large file named 'research_paper.pdf'.

Frequently Asked Questions about rlm

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

FAQPage Schema
What is the best way to search for specific clauses in a massive legal contract using AI?ā–¼

Large document processing beyond context limits is handled by the Recursive Language Model pattern, which chunks files, analyzes segments with sub-LLM agents, and synthesizes findings to extract deep insights.

What is the best way to search for specific clauses in a massive legal contract using AI?ā–¼

The best way to search massive contracts is using a hybrid semantic and BM25 search mechanism, which efficiently locates specific clauses across chunked document data via pass-by-reference retrieval.

Can I process a multi-hundred-page PDF for insights without hitting context limits?ā–¼

Yes, you can process multi-hundred-page PDFs without hitting context limits because the rlm-rs CLI orchestrates files up to 100x larger than standard context windows for deep analysis.

How does the Recursive Language Model workflow synthesize findings from large codebases?ā–¼

The workflow synthesizes large codebase findings by passing chunk references to a synthesizer agent, which aggregates the sub-LLM agents' individual analyses into a single coherent summary.

Do I need the rlm-rs CLI to chunk and analyze files with this workflow?ā–¼

Yes, the rlm-rs CLI is required to execute the Recursive Language Model workflow, providing the core architecture for chunking, sub-LLM agent integration, and synthesizer aggregation.