rlm

Orchestrate long-context processing with a root LLM, persistent REPL, and subagent for chunk analysis.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/Ju-usc/claude_code_rlm --skill rlm-ju-usc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rlm
Source: https://github.com/Ju-usc/claude_code_rlm/tree/main/.claude/skills/rlm
Command: npx skills add https://github.com/Ju-usc/claude_code_rlm --skill rlm-ju-usc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Processing long-context content by orchestrating recursive LLM interactions with a persistent local REPL and a subagent to handle chunk analysis.

Core Features & Use Cases

  • Persistent root orchestration across chunks for long documents, logs, or transcripts.
  • Delegation to a subagent (rlm-subcall) for chunk-level analysis and synthesis.
  • Stateful workflow with a Python REPL to keep context and buffers across invocations.

Quick Start

Initialize the REPL with your large context file, then start the recursive analysis workflow to chunk, analyze, and synthesize results.

Frequently Asked Questions about rlm

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

FAQPage Schema
How do I process large documents and logs that exceed the LLM context window?

To process large documents and logs, you can use a chunking workflow that splits the content, delegates chunk-level analysis to a subagent, and synthesizes the aggregated results through a persistent REPL.

How does a persistent REPL help with long-context analysis?

A persistent REPL maintains state and buffers across multiple LLM invocations, allowing the root orchestrator to coordinate recursive chunk processing and aggregate structured outputs without losing context between steps.

What is the best way to analyze very long transcripts using chunking and subagents?

The best way to analyze long transcripts is to generate chunks, delegate each chunk to a subagent for localized analysis, and aggregate the synthesized sub-results into a final structured output via stateful orchestration.

Can I use a Python REPL to maintain state across recursive LLM interactions for large files?

Yes, you can use a Python REPL to maintain persistent state and buffers across recursive LLM interactions, enabling continuous chunk generation, subagent delegation, and structured aggregation for large files.

Does long-context chunking work for searching and synthesizing text from massive text files?

Long-context chunking works for massive text files by dividing the input into manageable chunks, using a subagent to search and analyze each segment, and then synthesizing the findings into a unified output.

When should I use a subagent for chunk-level analysis instead of processing the whole document at once?

You should use a subagent for chunk-level analysis when documents are too large for a single context window, requiring stateful chunk generation, isolated chunk processing, and final structured aggregation to avoid context loss.