rlm

rlm is a skill for Claude Code, Codex from guia-matthieu/clawfu-skills. It costs 65 tokens per session (615 once invoked), scanned A, original, MIT.

A method for analyzing a large codebase by splitting the work across smaller tasks handled by multiple agents, then combining their summaries. It is designed for repositories with more than 100 files or broad patterns spanning many files.

In plain words
What is it for?
Use it to map repositories, audit security or authentication across many files, find code patterns, or process large logs.
Why use it?
Reading a large repository in one context can overwhelm the session and make patterns or security issues harder to detect consistently.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to map repositories, audit security or authentication across many files, find code patterns, or process large logs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/guia-matthieu/clawfu-skills/rlm
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add guia-matthieu/clawfu-skills --skill rlm
Clone the repo
git clone --depth 1 https://github.com/guia-matthieu/clawfu-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rlm

README.md
[![agentmods](https://agentmods.dev/badge/skills/guia-matthieu/clawfu-skills/rlm/github.svg)](https://agentmods.dev/skills/guia-matthieu/clawfu-skills/rlm)
Your own site
<a href="https://agentmods.dev/skills/guia-matthieu/clawfu-skills/rlm"><img src="https://agentmods.dev/badge/skills/guia-matthieu/clawfu-skills/rlm/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rlm

Your own site · 80×15
<a href="https://agentmods.dev/skills/guia-matthieu/clawfu-skills/rlm"><img src="https://agentmods.dev/badge/skills/guia-matthieu/clawfu-skills/rlm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 615 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.00615
Opus 5 $0.00032 $0.00308
Sonnet 5 $0.00013 $0.00123
Haiku 4.5 $0.00006 $0.00061

Measured 9d ago against content hash d1f3502cd55b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

rlm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/meta/rlm/SKILL.md · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

  1. NEVER read more than 3-5 files into your main context
  2. ALWAYS use parallel agents when file count > 5
  3. Write Python scripts for state tracking across 50+ files — let the script scan and summarize
  4. 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:

  1. grep -l "@Controller" src/**/*.ts → 20 files
  2. Spawn 20 agents, each extracts endpoints + auth status
  3. 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.

Read the full file on GitHub · 75 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 75 lines · 65 tokens per session scan A d1f3502cd55b

Subscribe to this mod's changes

rlm is a skill published in the GitHub repository guia-matthieu/clawfu-skills (149 stars, last pushed 5mo ago), licensed MIT. It adds 65 tokens to every session and 615 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

debugging

Apply when diagnosing a bug, reproducing a failure, or performing root cause analysis. Covers systematic isolation, binary search, logging strategy, and hypothesis-driven investigation.

sordi-ai/skill-everything · 35 tokens

ast-grep

Searches and rewrites code by AST shape across 25 languages. Use when the target is a syntax pattern (every call/class/import shaped like X, a codemod, a YAML rule) rather than literal text; for plain strings, comments, or filenames, use rg.

code-yeongyu/oh-my-openagent · 61 tokens

lcx-doctor

Diagnose LazyCodex and Codex CLI installation health against the latest sources. Use whenever the user asks for a doctor or health check, says LazyCodex, lazycodex-ai, omo-codex, or Codex behaves oddly after an install, update, or config change, suspects a stale, drifted, or broken setup, or wants the local install…

code-yeongyu/oh-my-openagent · 93 tokens

lsp

Use when Codex needs language-server diagnostics, definitions, references, symbols, or rename safety checks in the current workspace.

code-yeongyu/oh-my-openagent · 27 tokens

ads-performance-analytics

How to read paid media dashboards without fooling yourself. Attribution models, platform reporting quirks, multi-platform reconciliation, ROAS vs LTV horizon traps, statistical noise in performance metrics, incrementality testing, and the failure modes that produce expensive lessons. Triggers on read paid media…

rampstackco/claude-skills · 147 tokens

paid-media-strategy

A discipline for running paid media that does not light money on fire. Hypothesis writing for paid spend, channel selection, budget allocation, audience targeting, bid strategy, campaign types, what NOT to spend on, attribution reality, and the failure modes that produce expensive lessons. Triggers on paid media…

rampstackco/claude-skills · 142 tokens