rlm
About
The rlm skill enables processing of large codebases (100+ files) using a Recursive Language Model pattern that orchestrates parallel sub-agents in a map-reduce workflow. It's designed for analyzing repositories, security audits, and finding patterns across many files while avoiding context rot. Use it when you need to distribute analysis across multiple agents to handle codebases or data dumps too large for single-context processing.
Quick Install
Claude Code
Recommendednpx skills add guia-matthieu/clawfu-skills -a claude-code/plugin add https://github.com/guia-matthieu/clawfu-skillsgit clone https://github.com/guia-matthieu/clawfu-skills.git ~/.claude/skills/rlmCopy and paste this command in Claude Code to install this skill
Documentation
Recursive Language Model (RLM)
"Context is an external resource, not a local variable."
You are the Root Node. Your job is NOT to read code directly, but to orchestrate sub-agents that read code for you.
The RLM Loop
Phase 1: Index & Filter
Identify relevant files without loading them into context.
# Find candidate files
grep -rl "pattern" src/ --include="*.ts"
find . -name "*.py" -newer last_check
Phase 2: Parallel Map
Split work into atomic units, spawn parallel agents.
- Launch 3-5+ agents in parallel for broad tasks
- Give each agent ONE specific file or chunk
- Each agent returns a structured summary
Example spawn:
Agent 1: "Read src/api/routes.ts. List all endpoints with their auth decorators."
Agent 2: "Read src/api/users.ts. List all endpoints with their auth decorators."
...
Phase 3: Reduce & Synthesize
Collect all agent outputs, find patterns, compile into a coherent answer.
If incomplete, recurse: run a second RLM pass on the specific gaps.
Critical Rules
- NEVER read more than 3-5 files into your main context
- ALWAYS use parallel agents when file count > 5
- Write Python scripts for state tracking across 50+ files — let the script scan and summarize
- If parallel agents are unavailable, fall back to iterative Python scripting
Example: "Find all API endpoints, check for Auth"
Wrong (monolithic): Read each file sequentially → context fills up, reasoning degrades.
RLM Way:
grep -l "@Controller" src/**/*.ts→ 20 files- Spawn 20 agents, each extracts endpoints + auth status
- Collect outputs, compile table, identify missing auth
Output Format
Return a structured summary:
- Findings table (file, pattern, status)
- Gaps identified (what needs deeper investigation)
- Confidence level (how complete the scan was)
Skill Boundaries
Excels for: Codebases >100 files, cross-file pattern search, audit tasks, large file analysis.
Not ideal for: Small projects (<50 files), single file analysis, file modification tasks.
GitHub Repository
Related Skills
qmd
Developmentqmd is a local search and indexing CLI tool that enables developers to index and search through local files using hybrid search combining BM25, vector embeddings, and reranking. It supports both command-line usage and MCP (Model Context Protocol) mode for integration with Claude. The tool uses Ollama for embeddings and stores indexes locally, making it ideal for searching documentation or codebases directly from the terminal.
subagent-driven-development
DevelopmentThis skill executes implementation plans by dispatching a fresh subagent for each independent task, with code review between tasks. It enables fast iteration while maintaining quality gates through this review process. Use it when working on mostly independent tasks within the same session to ensure continuous progress with built-in quality checks.
mcporter
DevelopmentThe mcporter skill enables developers to manage and call Model Context Protocol (MCP) servers directly from Claude. It provides commands to list available servers, call their tools with arguments, and handle authentication and daemon lifecycle. Use this skill for integrating and testing MCP server functionality in your development workflow.
adk-deployment-specialist
DevelopmentThis skill deploys and orchestrates Vertex AI ADK agents using A2A protocol, managing AgentCard discovery, task submission, and supporting tools like Code Execution Sandbox and Memory Bank. It enables building multi-agent systems with sequential, parallel, or loop orchestration patterns in Python, Java, or Go. Use it when asked to deploy ADK agents or orchestrate agent workflows on Google Cloud.
