rlm

rlm is a skill for Claude Code, Codex from mifunedev/openharness. It costs 235 tokens per session (2,584 once invoked), scanned A, original, Apache-2.0.

A method for answering questions about files, folders, or logs that are too large to load into an agent’s context at once. It splits the material into addressable pieces, sends relevant pieces to separate workers, and combines their structured answers.

In plain words
What is it for?
Use it to search and analyze large logs, directories, or documents, investigate only relevant chunks, and gather answers from multiple focused sub-tasks.
Why use it?
It avoids filling the agent’s context with irrelevant data and makes large-artifact analysis fit within a bounded amount of work. A separate selection step compares competing answers.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/mifunedev/openharness/rlm
Any agent
npx skills add mifunedev/openharness --skill rlm
Clone the repo
git clone --depth 1 https://github.com/mifunedev/openharness

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/mifunedev/openharness/rlm.svg)](https://agentmods.dev/skills/mifunedev/openharness/rlm)
Your own site
<a href="https://agentmods.dev/skills/mifunedev/openharness/rlm"><img src="https://agentmods.dev/badge/skills/mifunedev/openharness/rlm.svg" alt="Measured on agentmods" height="20"></a>
Per session 235 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,584 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00235 $0.02584
Opus 5 $0.00118 $0.01292
Sonnet 5 $0.00047 $0.00517
Haiku 4.5 $0.00023 $0.00258

Measured today against content hash dbd5e9ab4359, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 today.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/__tests__/query-context.test.mjs, scripts/query-context.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.oh/skills/rlm/SKILL.md · 174 lines

How it starts

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

rlm — context-as-environment decomposition

The /rlm skill is Layer B of the harness RLM integration (the plan: .claude/plans/there-s-a-whole-snappy-crayon.md § Layer B). It answers a query over an artifact too large to ingest by treating that artifact as an environment the root agent addresses — grep/slice/chunk-map — rather than a blob it reads into its context window. It then recurses sub-agent calls over the narrowed chunks under a bounded budget, and aggregates their structured returns, routing competing candidate answers through /weigh.

Single responsibility. /rlm owns decomposition; /weigh owns selection. They compose: /rlm fans sub-calls out over chunks, /weigh scores/selects among the candidate answers a chunk yields. This skill never re-implements selection — it calls /weigh.

Reuse, don't reinvent (load-bearing). The recursion substrate already exists:

Substrate Owner How /rlm uses it
Recursion loop /spec execute each story re-reads disk = the REPL step — owned by the active implementation owner, never split into another session
Isolated recursion branches .worktrees/ (the /worktrees skill) depth-2 sub-trees fork here — reused by reference, never edited
Recursion budget /delegate (.oh/skills/delegate/SKILL.md) the Max depth N / Max children per level M / Step budget S triple — references/recursion-budget.md points at it and adds a per-run token ceiling
Chunk-map primitive scripts/query-context.mjs (US-004, this skill) partitions the artifact without ingesting it
Candidate selection /weigh scores competing per-chunk answers

Do not edit /spec execute's task cycle or anything under .worktrees/. /rlm is a consumer of both. The only genuinely new substrate this skill adds is query-context.mjs and this procedure.

When to use

  • /rlm <artifact> "<query>" to answer a question over an artifact too large to read whole (a big log under crons/.cron.log, a large corpus file, a whole directory).
  • As a sub-step of /weigh when the cohort being sampled spans a large artifact that must itself be decomposed before sampling.

Read the full file on GitHub · 174 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today Changed dbd5e9ab4359
  2. 4d ago First seen · 174 lines · 235 tokens per session scan A 19cd4979dc51

Subscribe to this mod's changes

rlm is a skill published in the GitHub repository mifunedev/openharness (36 stars, last pushed yesterday), licensed Apache-2.0. It adds 235 tokens to every session and 2,584 once invoked, about $0.0012 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-08-30.

Related

Other skills, from other repositories

data-visualization

Use for creating publication-quality charts and multi-panel analysis summaries. Triggers when tasks involve visualizing data, plotting results, creating charts, or producing visual reports from analysis output.

langchain-ai/deepagents · 40 tokens

cuml-machine-learning

Use for GPU-accelerated machine learning on tabular data using NVIDIA cuML. Triggers when tasks involve classification, regression, clustering, dimensionality reduction, or model training on datasets.

langchain-ai/deepagents · 43 tokens

blog-post

Writes and structures long-form blog posts, creates tutorial outlines, and optimizes content for SEO with cover image generation. Use when the user asks to write a blog post, article, how-to guide, tutorial, technical writeup, thought leadership piece, or long-form content.

langchain-ai/deepagents · 58 tokens

social-media

Drafts engaging social media posts, writes hooks, suggests hashtags, creates thread structures, and generates companion images. Use when the user asks to write a LinkedIn post, tweet, Twitter/X thread, social media caption, social post, or repurpose content for social platforms.

langchain-ai/deepagents · 58 tokens

remember

Review the current conversation and capture valuable knowledge — best practices, coding conventions, architecture decisions, workflows, and user feedback — into persistent memory (AGENTS.md) or reusable skills. Use when the user says: (1) remember this, (2) save what we learned, (3) update memory, (4) capture…

langchain-ai/deepagents · 71 tokens

textual-screenshot

Capture a Textual terminal UI as an SVG using its headless test harness. Use when asked to make, attach, or preview a screenshot of deepagents-code/dcode or another Textual app, visually verify a TUI state, or render a modal, screen, or widget without a desktop or browser.

langchain-ai/deepagents · 67 tokens