Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By rand
Extends Claude Code with recursive language model orchestration for unbounded context handling across large codebases, including multi-provider routing, hallucination detection via epistemic verification, trajectory analysis, and performance benchmarking.
npx claudepluginhub rand/rlm-claude-code --plugin rlm-claude-codeRun performance benchmarks for RLM-Claude-Code.
Review the current changes following docs/process/code-review.md.
Invoke the RLM orchestrator agent for complex context management tasks.
Toggle or configure RLM (Recursive Language Model) mode.
Bypass RLM mode for a simple operation.
Uses power tools
Uses Bash, Write, or Edit tools
Share bugs, ideas, or general feedback.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Recursive Language Models (RLM) CLI - enables LLMs to recursively process large contexts by decomposing inputs and calling themselves over parts
Intelligent model routing for Claude Code - routes queries to optimal Claude model (Haiku/Sonnet/Opus) based on complexity, with persistent knowledge system, context forking, and multi-turn awareness
Automatic model switching for Claude Code based on prompt complexity. No API calls.
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, and rules evolved over 10+ months of intensive daily use
Claude Code workflow patterns: prompting, CLAUDE.md maintenance, multi-agent orchestration
Context management and multi-agent orchestration with performance optimization tools
Efficient skill management system with progressive discovery — 410+ production-ready skills across 33+ domains
A disciplined AI-assisted development workflow with specification-first development, test-driven implementation, ADRs, and traceable task management. Inspired by the Rue language development process.
Transform Claude Code into a Recursive Language Model (RLM) agent with intelligent orchestration, unbounded context handling, persistent memory, and REPL-based decomposition.
rlm-core integration: This project bundles rlm-core as a required dependency, providing shared Rust-based implementations with recurse. rlm-core provides 10-50x faster pattern classification via PyO3 bindings. Pre-built wheels are available for common platforms.
RLM (Recursive Language Model) enables Claude to handle arbitrarily large contexts by decomposing complex tasks into smaller sub-queries. Instead of processing 500K tokens at once, RLM lets Claude:
This results in better accuracy on complex tasks while optimizing cost through intelligent model selection.
brew install python@3.12 or python.orgcurl -LsSf https://astral.sh/uv/install.sh | shrustup update stable — not needed if installing from pre-built wheelsDownload the wheel for your platform from GitHub Releases, then:
pip install rlm_claude_code-*.whl
# Clone with submodules (rlm-core is bundled)
git clone --recurse-submodules https://github.com/rand/rlm-claude-code.git
cd rlm-claude-code
# Build and install (compiles rlm-core Rust library)
maturin develop --release
# Install Python dependencies
uv sync --all-extras
# Verify
python -c "import rlm_core; print(rlm_core.version())"
uv run pytest tests/ -v
# Add the marketplace (one-time setup)
claude plugin marketplace add github:rand/rlm-claude-code
# Install the plugin
claude plugin install rlm-claude-code@rlm-claude-code
The plugin includes rlm-core (bundled via maturin). After installation:
# Navigate to the plugin directory (adjust version number as needed)
PLUGIN_DIR=~/.claude/plugins/cache/rlm-claude-code/rlm-claude-code/$(ls ~/.claude/plugins/cache/rlm-claude-code/rlm-claude-code/ | sort -V | tail -1)
cd "$PLUGIN_DIR"
# Create venv and install (includes rlm-core)
uv venv && uv sync
# Verify rlm-core is available
"$PLUGIN_DIR/.venv/bin/python" -c "import rlm_core; print('rlm_core OK:', rlm_core.version())"
Restart Claude Code. You should see "RLM initialized" on startup.
Test the hooks manually:
PLUGIN_DIR=~/.claude/plugins/cache/rlm-claude-code/rlm-claude-code/$(ls ~/.claude/plugins/cache/rlm-claude-code/rlm-claude-code/ | sort -V | tail -1)
"$PLUGIN_DIR/.venv/bin/python" "$PLUGIN_DIR/scripts/init_rlm.py"
# Should print: RLM initialized
When updating, you'll need to re-create the venv:
claude plugin update rlm-claude-code@rlm-claude-code
# Re-setup the new version
PLUGIN_DIR=~/.claude/plugins/cache/rlm-claude-code/rlm-claude-code/$(ls ~/.claude/plugins/cache/rlm-claude-code/rlm-claude-code/ | sort -V | tail -1)
cd "$PLUGIN_DIR" && uv venv && uv sync
# rlm-core is bundled — no extra linking needed