Borrowing it
Nothing to install: this file belongs to egoughnour/massive-context-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/egoughnour/massive-context-mcp/main/.claude/skills/rlm/SKILL.mdgit clone --depth 1 https://github.com/egoughnour/massive-context-mcpWrote 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.
[](https://agentmods.dev/skills/egoughnour/massive-context-mcp/rlm)<a href="https://agentmods.dev/skills/egoughnour/massive-context-mcp/rlm"><img src="https://agentmods.dev/badge/skills/egoughnour/massive-context-mcp/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.
<a href="https://agentmods.dev/skills/egoughnour/massive-context-mcp/rlm"><img src="https://agentmods.dev/badge/skills/egoughnour/massive-context-mcp/rlm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02825 |
| Opus 5 | $0.00000 | $0.01412 |
| Sonnet 5 | $0.00000 | $0.00565 |
| Haiku 4.5 | $0.00000 | $0.00282 |
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.
This is a copy
100% identical to rlm — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 407 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RLM (Recursive Language Model) Skill
Overview
The RLM pattern enables processing massive contexts (10M+ tokens) that exceed Claude's context window by recursively chunking, processing, and aggregating results. Instead of failing on large files, use RLM to break them into manageable pieces.
When to Use RLM
Use RLM when you encounter:
- Large files: Any file >100KB or >2000 lines
- Multi-file analysis: Processing multiple files together (combined size matters)
- Context exceeded: User asks to analyze content that won't fit in context window
- Aggregation tasks: Summarizing logs, finding patterns across large datasets, counting/filtering operations
- Deep codebase analysis: Understanding architecture across many files
- Document processing: Analyzing reports, research papers, documentation sets
Don't use RLM for:
- Small files (<100KB)
- Single-pass tasks that fit in context
- Interactive editing (use standard tools)
The RLM Pattern
The core workflow is: Load → Inspect → Chunk → Sub-Query → Aggregate
Step 1: Load Context
# Load large content into RLM memory
rlm_load_context(
name="codebase",
content=file_contents # Full file content
)
Returns: {name, size_bytes, size_chars, line_count, loaded: true}
Step 2: Inspect Context
# Understand structure without loading into prompt
rlm_inspect_context(
name="codebase",
preview_chars=500 # Optional preview
)
Returns: Metadata + preview (first N chars)
Step 3: Chunk Context
# Break into manageable pieces
rlm_chunk_context(
name="codebase",
strategy="lines", # or "chars" or "paragraphs"
size=100 # Lines per chunk (or chars if strategy=chars)
)
Chunking Strategies:
lines(default): Split by line count - best for code, logs, structured datachars: Split by character count - best for prose, unstructured textparagraphs: Split by blank lines - best for documents, markdown
Returns: {name, chunk_count, strategy, size_per_chunk}
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.
- 9d ago First seen · 407 lines · 0 tokens per session scan A e25321cde4f3
rlm is a skill published in the GitHub repository egoughnour/massive-context-mcp (1 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,825 tokens. A static security scan graded it A with 0 findings. It is 100% identical to rlm, differing in 0 lines, and is treated as a copy.
Other skills, from other repositories
cpersona-memory
Give Claude persistent, searchable memory across sessions using the CPersona MCP server. Use this skill whenever the user wants Claude to remember things between conversations, asks to install or set up CPersona / a memory server, or when CPersona tools are available and the conversation contains decisions, rules…
shared-memory
Durable memory across sessions — a model of who the user is, not a log of what was done. Three-tier store (core + long-term + episodic staging) via the ling-mem daemon. Same semantics in Linggen, Claude Code, Codex, and OpenClaw.
using-cortex-memory
Use when connected to a Cortex memory MCP server (tools named memorize, recall, recallabout, recalltimeline, listmemories, forget) — at session start, before asking the user for facts they may have shared before, after learning durable facts/preferences/decisions, when the user says "remember/recall/forget", or when…
mnema
Use the Mnema MCP server to give the AI long-term, searchable memory. Use it whenever the user shares durable facts, preferences, decisions, or context worth recalling in future sessions. Mnema stores memories in a vector database and recalls them with semantic + hybrid search, with decay scoring and summarization so…
graphmind-memory
A skill connects an agent to GraphMind, a shared memory system for retaining project knowledge across sessions and people. It restores context, records work and decisions, and consolidates the session afterward.
pensieve
The user's personal Pensieve memory — a persistent, self-organising knowledge base that survives across sessions. Use whenever the user mentions "pensieve", asks about "my streams" / "my memory" / "what have I saved", says "add this to pensieve" / "remember this" / "save this", asks "what do I know about ", or wants…