claude_code_RLM
CLAUDE.md393 starsChanged 5 months agoMITView on GitHub
This repo exposes a root-level headless Codex command for agents that need a non-interactive Codex pass: On Windows shells, use either: The wrapper runs codex exec from the repo root with gpt-5.5, model_reasoning_effort="xhigh", --sandbox workspace-write, approval_policy="never", and --ephemeral. It preserves normal codex exec behavior, so callers can pass a prompt argument, pipe stdin, add flags such as --json, or use -o <file> for the final message. It requires the Codex CLI on PATH and an existing codex login or CODEX_API_KEY…
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- brainqub3/RLMword for word, first seen Jun 22, 2026
Other versions1 project uses a version of this.
Word for word · 1
- brainqub3/RLM★ 393100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- rlmSkill
The file
We split this CLAUDE.md into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
When the user needs you to work over a context that is too large to paste into chat:
- Distinctive: line 40
Ask for (or locate) a context file path.
- Very specific: line 41
Run the /rlm Skill and follow its procedure.
- Very specific: line 43
Keep the main conversation light: the root model never reads the full context — it writes REPL code that sub-queries the context in chunks, …
- Very specific: line 45
Use python (not python3) to invoke the REPL on this machine.
- Distinctive: line 79
When someone asks to run the experiment:
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project instructions
Headless Codex sub-agent
This repo exposes a root-level headless Codex command for agents that need a non-interactive Codex pass:
./codex-headless "review the current repo and list the highest-risk files"On Windows shells, use either:
.\codex-headless.ps1 "review the current repo and list the highest-risk files"
.\codex-headless.cmd "review the current repo and list the highest-risk files"The wrapper runs codex exec from the repo root with gpt-5.5,
model_reasoning_effort="xhigh", --sandbox workspace-write,
approval_policy="never", and --ephemeral. It preserves normal
codex exec behavior, so callers can pass a prompt argument, pipe stdin, add
flags such as --json, or use -o <file> for the final message. It requires
the Codex CLI on PATH and an existing codex login or CODEX_API_KEY scoped
to the invocation.
RLM mode for long-context tasks
This repository includes a faithful "Recursive Language Model" (RLM) setup for Claude Code (after Recursive Language Models, arXiv:2512.24601, Algorithm 1):
- Skill:
rlmin.claude/skills/rlm/ - Persistent Python REPL:
.claude/skills/rlm/scripts/rlm_repl.py— holds the large context as a variable and exposesllm_query/llm_query_map/rlm_queryandFINAL/FINAL_VAR. - Sub-LM (
llm_query): a nested headless Claude Code (claude -p, tools off, default modelhaiku), called programmatically from REPL code — not a Task subagent. The recursiverlm_queryrunsclaude -pwith bash + this skill on.
When the user needs you to work over a context that is too large to paste into chat:
- Ask for (or locate) a context file path.
- Run the
/rlmSkill and follow its procedure.
Keep the main conversation light: the root model never reads the full context —
it writes REPL code that sub-queries the context in chunks, then synthesises.
Use python (not python3) to invoke the REPL on this machine.
OOLONG eval — where run artifacts go
The RLM-vs-agent OOLONG eval (issue #6) is driven by
rlm_vs_agent_experiment/run_rlm_skill_eval.py. Every run writes only under a
timestamped folder — rlm_vs_agent_experiment/runs/<YYYYMMDD_HHMMSS>/<arm>/ — never
loose in the experiment folder. Pass the same --run-id to every arm so one
experiment groups together:
TS=$(date +%Y%m%d_%H%M%S)
python rlm_vs_agent_experiment/run_rlm_skill_eval.py --run-id $TS --mode agent --root opus
python rlm_vs_agent_experiment/run_rlm_skill_eval.py --run-id $TS --mode agent --root haiku
python rlm_vs_agent_experiment/run_rlm_skill_eval.py --run-id $TS --mode rlm --root opus
python rlm_vs_agent_experiment/score.py --predictions rlm_vs_agent_experiment/runs/$TS/rlm_skill_opus/preds_rlm_skill.jsonlruns/ is gitignored — run folders are local scratch; the committed deliverable is
rlm_vs_agent_experiment/REPORT.md. This keeps the repo clean so we never accumulate
stray eval files that must later be archived. (To keep a specific run as committed
provenance, git add -f that one run folder.)
This is a driver convention only — the /rlm skill is unchanged. The skill's own
on-disk state is the transient .claude/rlm_state/ REPL pickle (gitignored, and wiped
per task by the driver); it never writes into the experiment folder.
Running the OOLONG RLM-vs-agent experiment
GitHub issue #6 (pinned) is the source of truth for this experiment — its design,
the three arms, the exact commands, and the "done when" criteria. Treat the issue as
the external instruction surface: fetch it at run time with gh issue view 6 and
follow it, rather than relying on memory.
When someone asks to run the experiment:
- First ask whether they want the full run. The full experiment is all three arms
× 10 samples and is costly (~$90 and a few hours, dominated by the Opus agent arm).
Offer the cheap alternative — a single-task smoke test (
--ids <one id>per arm) — and only launch the full run once they confirm. - Then run it exactly as issue #6 instructs — all arms into one timestamped
runs/<ts>/folder (shared--run-id), then score withscore.pyand fold the numbers intoREPORT.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

