claude_code_RLM  by brainqub3

Recursive Language Models for extended context processing

Created 1 month ago
346 stars

Top 80.5% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

This repository offers a minimal Recursive Language Model (RLM) scaffold using Claude Code. It tackles the challenge of processing inputs exceeding LLM context windows by enabling programmatic decomposition and recursive self-calling over document chunks. This benefits Claude Code users requiring analysis of extensive text data.

How It Works

The architecture mirrors the RLM paper: a root LLM (Claude Opus 4.5) orchestrates sub-LLM calls (Claude Haiku) via a persistent Python REPL. This REPL functions as the external environment, managing state and providing utilities for chunking and searching. This approach allows recursive processing of inputs significantly larger than standard context limits.

Quick Start & Requirements

  • Installation: Clone the repository (git clone https://github.com/Brainqub3/claude_code_RLM.git) and cd into it.
  • Prerequisites: Claude Code account (Anthropic CLI), Python 3.
  • Usage: Initiate Claude Code within the repo directory (claude), then execute the RLM skill (/rlm). Follow prompts for context file path and query.
  • Organization: Large context files should reside in the context/ directory.
  • Links: RLM Paper

Highlighted Details

  • Handles inputs up to two orders of magnitude beyond model context windows.
  • Employs a persistent Python REPL for stateful operations and utility functions.
  • Leverages Claude Opus 4.5 as the orchestrator and Claude Haiku for efficient chunk analysis.

Maintenance & Community

No specific details regarding contributors, sponsorships, community channels, or roadmaps are present in the README.

Licensing & Compatibility

The README directs users to a LICENSE file for details. The specific license type and implications for commercial use or closed-source integration are not explicitly stated.

Limitations & Caveats

This is a minimal implementation, not production-ready. Use of Claude Code's --dangerously-skip-permissions mode necessitates careful setup, isolated environments, and awareness of risks due to unconfirmed command execution.

Health Check
Last Commit

1 month ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
59 stars in the last 30 days

Explore Similar Projects

Starred by Wing Lian Wing Lian(Founder of Axolotl AI), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
2 more.

recurrent-pretraining by seal-rg

0.2%
862
Pretraining code for depth-recurrent language model research
Created 1 year ago
Updated 1 month ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Didier Lopes Didier Lopes(Founder of OpenBB), and
2 more.

RULER by NVIDIA

0.3%
1k
Evaluation suite for long-context language models research paper
Created 1 year ago
Updated 3 months ago
Starred by Luis Capelo Luis Capelo(Cofounder of Lightning AI), Carol Willing Carol Willing(Core Contributor to CPython, Jupyter), and
2 more.

chonkie by chonkie-inc

0.5%
4k
Chunking library for RAG applications
Created 11 months ago
Updated 1 day ago
Feedback? Help us improve.