rlm

Coordinates a persistent Python REPL and subagent to analyze long documents in chunks.

27|7|Updated Dec 6, 2025
One-click install
npx skills add https://github.com/jdubray/puffin --skill rlm-jdubray
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rlm
Source: https://github.com/jdubray/puffin/tree/main/.claude/skills/rlm
Command: npx skills add https://github.com/jdubray/puffin --skill rlm-jdubray

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Long-context tasks require iterative inspection, chunking, and external reasoning beyond chat context. This Skill provides a persistent local Python REPL and an rlm-subcall subagent to coordinate long-context analysis.

Core Features & Use Cases

  • Persistent REPL (rlm_repl.py) to maintain state across invocations.
  • Subagent delegation (rlm-subcall) to run LLM queries on context chunks.
  • Chunking and orchestration utilities to handle inputs larger than chat limits and produce deterministic results.
  • Use cases: scanning large logs or documents, extracting structured insights, and assembling final reports from multiple chunks.

Quick Start

Initialise the REPL with a large context using python .claude/skills/rlm/scripts/rlm_repl.py init <context_path> and then run the exec loop to progressively analyze chunks 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 that exceed chat context limits?

Large documents exceeding chat context limits are processed using a persistent local Python REPL and a subagent to iteratively chunk, search, and extract information across multiple passes. This approach bypasses memory constraints by maintaining state locally and analyzing inputs systematically.

What is a persistent REPL loop for long-context analysis?

A persistent REPL loop for long-context analysis is a local Python environment that maintains state across invocations, allowing a subagent to progressively process document chunks and synthesize deterministic, auditable results beyond standard chat memory capacity.

How do I extract structured insights from large log files?

To extract structured insights from large log files, initialize a persistent REPL with the context path, then run an execution loop that delegates LLM queries to a subagent on individual chunks, assembling final reports from the extracted data.

Can I run deterministic LLM queries across multiple document chunks?

Yes, you can run deterministic LLM queries across multiple document chunks by using an integrated subagent interface and orchestration utilities that ensure auditable, consistent results when scanning large inputs beyond chat limits.

Do I need Python to use the rlm long-context loop?

Yes, Python is required because the long-context loop relies on a persistent local Python REPL (rlm_repl.py) to maintain state, execute chunking utilities, and coordinate subagent queries for large document analysis.

What are the limitations of using a persistent REPL for long-context tasks?

Limitations of using a persistent REPL for long-context tasks include dependency on local Python execution environments and the need for iterative chunking, meaning tasks require multiple passes rather than instant single-shot context processing.