tenobrus/claude-rlm/rlm-skill
Claude Code and agent skill by tenobrus/claude-rlm
- community
Checking that the SKILL.md file is still in the repository.
Use when processing very long contexts, large documents, or extensive codebases that exceed practical context window limits. Activate when user mentions 'rlm', 'recursive language model', or needs to process files too large to read into context.
Install
npx vskill@latest install tenobrus/claude-rlm/rlm-skillSKILL.md
Recursive Language Model (RLM)
You have access to rlm-query and rlm-batch for delegating long-context work to sub-agents. Do not try to orchestrate the work yourself — your job is to set up the workspace and immediately hand off to a depth-0 orchestrator.
Setup
What to do
- Write a prompt file describing what needs to be done, including paths to any input files:
``bash TASK="my-task" mkdir -p .rlm/$TASK cat > .rlm/$TASK/task.md << 'EOF' Analyze /path/to/big-document.txt for liability risks... EOF ``
- Launch the root orchestrator in the background so you can give the user progress updates while it runs:
``bash rlm-query .rlm/$TASK/task.md .rlm/$TASK/result.out \ --task $TASK --model opus --max-depth 2 & RLM_PID=$! ``
- Poll for progress and keep the user informed. Check active sub-agents, completed results, and whether the orchestrator has finished:
``bash # How many sub-agents are running? tmux list-sessions 2>/dev/null | grep -c "rlm-$TASK" || echo 0 # How many results are in so far? ls .rlm/$TASK/results/*.out 2>/dev/null | wc -l # Is the orchestrator done? kill -0 $RLM_PID 2>/dev/null && echo "still running" || echo "done" `` Tell the user things like "3 sub-agents active, 5/16 chunks processed so far" while waiting.
- Read the result once the orchestrator finishes:
``bash wait $RLM_PID cat .rlm/$TASK/result.out ``
The orchestrator receives the full RLM instructions (rlm-agent.md) automatically and knows how to split, delegate to sub-agents, and aggregate. You don't need to read those instructions yourself.
Configuration
Set these via flags on rlm-query or environment variables. Choose based on the task:
- `--model` / `RLM_MODEL` (default:
opus) — Model for the orchestrator and sub-agents. Useopusfor the root orchestrator (it needs to plan and decompose). Sub-agents doing straightforward work (classification, extraction) can usesonnet— the orchestrator can pass--model sonnetwhen it callsrlm-batch.
- `--max-depth` / `RLM_MAX_DEPTH` (default:
3) — How many levels of recursion are allowed. Depth 1 means the orchestrator can spawn leaf agents but they can't delegate further. Depth 2 is usually enough — go higher only if chunks are still too large for a single agent after one level of splitting.
- `--timeout` / `RLM_TIMEOUT` (default:
1200) — Seconds before a sub-agent is killed. If agents are timing out, either increase this or split into smaller chunks.
- `RLM_MAX_PARALLEL` (default:
15) — Max concurrent Claude instances across the entire task tree. All depths share the same pool. Lower this if you're hitting rate limits or resource constraints. Set via environment variable only (not a flag).
Example for a large task:
Monitoring
Sub-agents run in named tmux sessions. You (or the user) can watch them live:
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingrlm-skill/SKILL.md
Popularity
- Repository stars
- 75
- Repository forks
- 2
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tenobrus/claude-rlm/rlm-skill)