rlm
Skill1 starsChanged 3 months agoApache-2.0View on GitHub
Create long-lived specialist sub-agents from the persistent Python kernel and re-task them later. Use for parallel investigation, standing expert teams, and follow-up work for an agent that already has the context.
15 other projects use a version of this.
Adopted by
Most recently taken up by
- twinkiey/claude-code-rlmtheir own version, first seen Nov 22, 2026
- zircote-plugins/rlm-rs-plugintheir own version, first seen Nov 16, 2026
- osick/ctx.skillstheir own version, first seen Oct 13, 2026
- Trampoline-AI/predict-rlmtheir own version, first seen Oct 8, 2026
- brainqub3/claude_code_RLMtheir own version, first seen Oct 8, 2026
- MiracleWeb3/rlmtheir own version, first seen Oct 8, 2026
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- Trampoline-AI/predict-rlm★ 438same name
- brainqub3/claude_code_RLM★ 393same name
- brainqub3/RLM★ 393same name
- Tenobrus/claude-rlm★ 94same name
- richardwhiteii/rlm★ 49same name
- andremoreira73/Useful-Skills-from-lyfX★ 8same name
- endjin/RLM★ 6same name
- zircote-plugins/rlm-rs-plugin★ 4same name
- Jinshi1945/claude_code_RLM★ 1same name
- rgoldr88/claude-rlm★ 1same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 75
Don't spawn a child for something you could grep, or one per file.
- Very specific: line 82
Do not delete it because a task finished.
- Distinctive: line 85
Keep large intermediate data in Python variables, not in your context.
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
RLM
Used inside the opa_python tool. rlm(...) is not an LLM API call — it creates
an independent agent session.
api = await rlm.spawn("audit the API layer for security problems", name="api-reviewer")
test = await rlm.spawn("map the gaps in our test coverage", name="test-reviewer")rlm(...) does not wait. It returns a handle and the child keeps working in
the background.
Results arrive in the parent mailbox. Collection is a pull, because we do not own the host's turn loop:
for m in await agent_message.inbox():
print(m["sender"], m["message"][:200])Keep any wait short. Your host caps how long a single tool call may run —
Claude Code cuts it at about two minutes — and that cap governs, not the
timeout you pass to opa_python. A cell that polls until a child finishes will
be backgrounded mid-wait. Poll briefly and come back:
import asyncio
for _ in range(10): # ~50s, comfortably inside the cap
inbox = await agent_message.inbox()
if inbox:
break
await asyncio.sleep(5)
len(inbox)There is nothing to lose by returning empty-handed: the mailbox is durable, so the next call picks up whatever arrived meanwhile.
A child is not disposable
children = await rlm.list_subagents() # still there after a kernel restart
await agent_message.send(
"re-check it now that I've fixed the code",
receiver_role="child",
receiver_name="api-reviewer",
) # continues with its earlier context intactBefore creating a child, call list_subagents() and look for an existing one.
An agent that already knows the area is always a better target for follow-up work
than a fresh one.
Sub-agents are expensive — measure before you fan out
Each child is a full coding-agent session that pays for its own system prompt and tool schemas first: about 36k tokens before it reads any of your code.
In our benchmark, reviewing an entire 12-file service cost a plain agent 34k tokens, while fanning out to four specialists produced the same findings for 8.8x the cost and 3.4x the wall clock. One child cost more than the whole job.
Hand work to a sub-agent only when that work would cost you more than ~36k tokens of your own context.
Don't spawn a child for something you could grep, or one per file. Do use one per subsystem when the material genuinely will not fit — and above all, re-task an existing child rather than creating a new one.
Rules
- Name a child for its role (
backend,security,flutter). It is meant to stay. - Do not delete it because a task finished.
delete_subagentis for when you genuinely mean it. - Mixed backends are fine:
adapter="codex",model=.... - Keep large intermediate data in Python variables, not in your context.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

