ai-agent

Recursive LLM

Recursive Language Models for efficient long-context processing. Analyze 1M+ tokens by storing context in a Python REPL while reducing LLM token usage.
585 stars86 forksPythonUpdated 8/11/2026100% free · open source
What it does

The recursive-llm tool enables efficient long-context processing by storing context in a Python REPL, allowing analysis of over 1 million tokens while reducing language model token usage.

When to use it
  • When you need to process large texts or conversations that exceed the token limits of traditional language models
  • When you want to reduce the cost of using language models by minimizing token usage
  • When you need to maintain context across multiple interactions or turns in a conversation
Ready-to-paste prompt
rlm.process('Analyze the following text: ' + ' '.join([str(i) for i in range(100000)]))
Heads up: Make sure you have a compatible Python version (3.8 or later) and sufficient memory to handle the recursive context storage
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/recursive-llm && curl -fsSL https://workflowstacks.com/api/skills/recursive-llm/claude-skill -o ~/.claude/skills/recursive-llm/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

Quick Actions
Details
Creator
grishahq
Language
Python
Category
ai-agent
Published
10/17/2025

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.