massive-context-mcp: Skill for Claude Code

.claude/skills/rlm/SKILL.md

rlm is a skill for Claude Code from egoughnour/massive-context-mcp. It costs 0 tokens per session (2,825 once invoked), scanned A, a copy of rlm, MIT.

A method for working with files and collections of text that are too large for one AI request by splitting them into smaller pieces and combining the results.

In plain words
What is it for?
Use it to summarize large datasets, find patterns, count or filter information, and study the structure of a large codebase or document collection.
Why use it?
It prevents large files, many files, logs, reports, or research papers from exceeding the AI's context limit. It also makes broad codebase analysis possible when everything cannot be reviewed at once.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: positional $N argument; mentions Claude Code.

This is egoughnour/massive-context-mcp's own configuration. It tells Claude Code how to work on massive-context-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything massive-context-mcp configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/egoughnour/massive-context-mcp/main/.claude/skills/rlm/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/egoughnour/massive-context-mcp

Made for: Claude Code.

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/egoughnour/massive-context-mcp/rlm/github.svg)](https://agentmods.dev/skills/egoughnour/massive-context-mcp/rlm)
Your own site
<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.

agentmods 80×15 button for rlm

Your own site · 80×15
<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>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,825 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 100% copy Near-identical to another mod 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.00000 $0.02825
Opus 5 $0.00000 $0.01412
Sonnet 5 $0.00000 $0.00565
Haiku 4.5 $0.00000 $0.00282

Measured 9d ago against content hash e25321cde4f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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.

Origin

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.

.claude/skills/rlm/SKILL.md · 407 lines

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 data
  • chars: Split by character count - best for prose, unstructured text
  • paragraphs: Split by blank lines - best for documents, markdown

Returns: {name, chunk_count, strategy, size_per_chunk}

Read the full file on GitHub · 407 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 · 407 lines · 0 tokens per session scan A e25321cde4f3

Subscribe to this mod's changes

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.

Related

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…

Cloto-dev/CPersona · 151 tokens

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.

linggen/skills · 64 tokens

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…

fernsdavid25/cortex-protocol · 82 tokens

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…

mienetic/mnema · 130 tokens

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.

kostya-pakhomov/graphmind · 93 tokens

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…

praveen-ilangovan/pensieve · 99 tokens