rlm-reasoning-skill

rlm-reasoning-skill is a skill for Claude Code, Codex from zeenie-ai/OpenCompany. It costs 36 tokens per session (860 once invoked), scanned A, original, MIT.

A recursive reasoning workflow in which an AI agent runs code in a REPL, a live environment for testing snippets, and can ask other language models to handle smaller tasks.

In plain words
What is it for?
Use it for decomposition, calculations, extraction, and other reasoning tasks that benefit from repeated code runs or delegated subproblems.
Why use it?
It helps break complex, multi-step problems into smaller pieces while checking intermediate results through code execution.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for decomposition, calculations, extraction, and other reasoning tasks that benefit from repeated code runs or delegated subproblems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zeenie-ai/opencompany/rlm-reasoning-skill
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 zeenie-ai/OpenCompany --skill rlm-reasoning-skill
Clone the repo
git clone --depth 1 https://github.com/zeenie-ai/OpenCompany

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-reasoning-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/zeenie-ai/opencompany/rlm-reasoning-skill/github.svg)](https://agentmods.dev/skills/zeenie-ai/opencompany/rlm-reasoning-skill)
Your own site
<a href="https://agentmods.dev/skills/zeenie-ai/opencompany/rlm-reasoning-skill"><img src="https://agentmods.dev/badge/skills/zeenie-ai/opencompany/rlm-reasoning-skill/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-reasoning-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/zeenie-ai/opencompany/rlm-reasoning-skill"><img src="https://agentmods.dev/badge/skills/zeenie-ai/opencompany/rlm-reasoning-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 860 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00036 $0.00860
Opus 5 $0.00018 $0.00430
Sonnet 5 $0.00007 $0.00172
Haiku 4.5 $0.00004 $0.00086

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

Security

Grade A, and why

rlm-reasoning-skill 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 12d 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.

server/skills/rlm_agent/rlm-reasoning-skill/SKILL.md · 122 lines

How it starts

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

RLM Recursive Reasoning Skill

You are an RLM (Recursive Language Model) agent. You solve problems by writing Python code in REPL blocks that gets executed, then observing the output and iterating.

Core Workflow

  1. Write code inside triple-backtick repl blocks to execute Python
  2. Observe stdout from execution, then write more code blocks as needed
  3. Signal your final answer with FINAL(answer) or FINAL_VAR(variable_name)

REPL Code Blocks

Write executable Python inside fenced code blocks with the repl language tag:

```repl
# Your Python code here
result = 2 + 2
print(result)

The code runs via `exec()` in a sandboxed Python environment. Variables persist across iterations within the same session.

## Available Functions

| Function | Purpose |
|----------|---------|
| `llm_query(prompt)` | Call a smaller LM for sub-tasks (summarization, extraction, classification) |
| `rlm_query(prompt)` | Spawn a recursive child RLM with its own REPL for complex sub-problems |
| `FINAL(answer)` | Signal completion with a direct answer string |
| `FINAL_VAR(var_name)` | Signal completion using the value of a variable in the REPL namespace |
| `SHOW_VARS()` | Print all current variables in the REPL namespace |
| `print()` | Standard output -- you will see this in the next iteration |

## The `context` Variable

The user's input is stored as a Python variable called `context` in the REPL namespace. Access it directly in your code:

# Access the user's input
print(context)
print(len(context))

**Important**: The context is never sent to the LM directly. You must use code to examine, process, and extract information from it.

## When to Use `llm_query()` vs `rlm_query()`

- **`llm_query(prompt)`**: Simple sub-tasks that need one LM call. Use for summarization, classification, extraction, translation, or simple Q&A.
- **`rlm_query(prompt)`**: Complex sub-problems that themselves require code execution and iteration. Use when the sub-task needs its own REPL loop.

Read the full file on GitHub · 122 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. 12d ago First seen · 122 lines · 36 tokens per session scan A 7a796e278afc

Subscribe to this mod's changes

rlm-reasoning-skill is a skill published in the GitHub repository zeenie-ai/OpenCompany (883 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 860 once invoked, about $0.0002 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.