rlm-pattern
Installation
SKILL.md
RLM (Recursive Language Model) Pattern
Process files that exceed context limits by dividing them into partitions and coordinating a team of analyst agents to analyze each partition in parallel, then synthesizing their reports.
Based on: arXiv:2512.24601
The Pattern
-
Team Lead detects content type, determines partitioning strategy, and divides the content into manageable chunks.
-
Each Analyst agent (selected by content type) independently analyzes their assigned partition and reports back to team-lead with structured findings.
-
Team Lead collects all analyst reports, then either synthesizes directly or spawns a dedicated Synthesizer agent to produce the consolidated report.
This is a fan-out/fan-in coordination pattern built on agent teams.