一键导入
rlm
Run a Recursive Language Model-style loop for long-context tasks. Uses a persistent local Python REPL and an rlm-subcall subagent as the sub-LLM (llm_query).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run a Recursive Language Model-style loop for long-context tasks. Uses a persistent local Python REPL and an rlm-subcall subagent as the sub-LLM (llm_query).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Enforce C coding standards including snake_case variables and functions, UPPER_SNAKE_CASE macros, and snake_case filenames.
Enforce C++ coding standards including camelCase or snake_case variables, PascalCase classes, and consistent file naming.
Enforce Java coding standards including camelCase variables, PascalCase classes, and PascalCase filenames matching class names.
Enforce JavaScript/ES6+ and TypeScript coding standards including camelCase variables, PascalCase classes, and kebab-case filenames.
Enforce Python PEP 8 coding standards including snake_case variables, PascalCase classes, and snake_case filenames.
Recommends modularity, composition, and decoupling patterns for design challenges. Use when designing plugin architectures, reducing coupling, improving testability, or separating cross-cutting concerns.
| name | rlm |
| description | Run a Recursive Language Model-style loop for long-context tasks. Uses a persistent local Python REPL and an rlm-subcall subagent as the sub-LLM (llm_query). |
| allowed-tools | ["Read","Write","Edit","Grep","Glob","Bash"] |
Use this Skill when:
rlm_repl.py) = the external environment.rlm-subcall = the sub-LM used like llm_query.This Skill reads $ARGUMENTS. Accept these patterns:
context=<path> (required): path to the file containing the large context.query=<question> (required): what the user wants.chunk_chars=<int> (default ~200000) and overlap_chars=<int> (default 0).If the user didn't supply arguments, ask for:
Initialise the REPL state
python3 .claude/skills/rlm/scripts/rlm_repl.py init <context_path>
python3 .claude/skills/rlm/scripts/rlm_repl.py status
Scout the context quickly
python3 .claude/skills/rlm/scripts/rlm_repl.py exec -c "print(peek(0, 3000))"
python3 .claude/skills/rlm/scripts/rlm_repl.py exec -c "print(peek(len(content)-3000, len(content)))"
Choose a chunking strategy
Materialise chunks as files (so subagents can read them)
python3 .claude/skills/rlm/scripts/rlm_repl.py exec <<'PY'
paths = write_chunks('.claude/rlm_state/chunks', size=200000, overlap=0)
print(len(paths))
print(paths[:5])
PY
Subcall loop (delegate to rlm-subcall)
Synthesis