recursive-language-model

Installation
SKILL.md

RLM (Recursive Language Model) Skill

This skill enables processing of arbitrarily long documents by treating them as an external environment and recursively calling sub-LLMs over chunks of the content.

Overview

The RLM pattern follows the architecture from the paper:

  • Root Agent: Main agent orchestrating the task
  • Sub-LLM (llm_query): Subordinate agent for chunk-level analysis
  • External Environment: Persistent Python REPL with document state

Requirements

  • Python 3.8+
  • An agentic harness with code execution and subordinate agent capabilities

File Structure

Related skills
Installs
9
GitHub Stars
1
First Seen
Feb 18, 2026