rlm

Chunk long-context documents and delegate analysis to an rlm-subcall subagent.

1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/ivalmart/Skilled-LLMs-CMPM280G --skill rlm-ivalmart
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rlm
Source: https://github.com/ivalmart/Skilled-LLMs-CMPM280G/tree/main/.claude/skills/rlm
Command: npx skills add https://github.com/ivalmart/Skilled-LLMs-CMPM280G --skill rlm-ivalmart

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Long-context prompts can exceed standard model limits, making thorough analysis difficult. This skill provides a repeatable workflow to chunk content, route analysis to a subagent, and synthesize results in the main chat.

Core Features & Use Cases

  • Persistent Python REPL to maintain state across invocations
  • Chunking and chunk-file creation for deterministic processing
  • Delegation to an rlm-subcall subagent for chunk-level analysis
  • Synthesis and consolidation of findings into a final answer

Quick Start

Initialize the REPL with a context file and start the RLM workflow to process your document.

Frequently Asked Questions about rlm

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

FAQPage Schema
How do I process long-context documents that exceed model limits?

To process long-context documents that exceed model limits, use a Recursive Language Model workflow to chunk content, route analysis to a subagent, and synthesize results in the main chat.

How do I analyze large codebases or logs when the context window is too small?

Analyzing large codebases or logs with limited context windows involves deterministic chunking and delegating chunk-level analysis to a subagent, which synthesizes findings into a consolidated final answer.

What is a Recursive Language Model workflow for large documents?

A Recursive Language Model workflow for large documents uses a persistent REPL and local state to manage chunks, buffers, and subagent analysis, ensuring repeatable processing of content that exceeds standard model limits.

Do I need a persistent REPL to orchestrate long-context tasks?

Yes, orchestrating long-context tasks with chunking relies on a persistent Python REPL to maintain local state across invocations, manage chunk files, and coordinate subagent analysis.

What is the best way to synthesize findings from chunked text analysis?

The best way to synthesize findings from chunked text is to route each chunk to a subagent for analysis and then consolidate the individual results into a final answer within the main chat environment.

Are there limitations to using chunking and subagents for long-context processing?

When using chunking and subagents for long-context processing, the approach requires managing local state and buffers across a persistent REPL, which adds orchestration overhead compared to native long-context models.