
Matryoshka
Supports UIby yogthos
Analyze documents 100x larger than LLM context windows using recursive symbolic reasoning and handle-based state.
What it does
Matryoshka is a Recursive Language Model (RLM) server that enables AI agents to process massive documents without the information loss associated with traditional RAG or chunking. Instead of feeding raw text into the prompt, the LLM outputs symbolic commands in the Nucleus DSL, which are executed by the Lattice engine against the document server-side.
Tools
lattice_load: Load a large document for analysis.lattice_query: Execute Nucleus symbolic commands (grep, filter, sum, count) on the document.lattice_expand: Retrieve full data for a specific result handle.lattice_memo: Store and retrieve compact context stubs across turns.lattice_status: Monitor session state and memory usage.
Installation
Install via npm:
npm install -g matryoshka-rlm
To add to Claude Desktop, add the following to claude_desktop_config.json:
{
"mcpServers": {
"matryoshka": {
"command": "lattice-mcp"
}
}
}
Supported hosts
- claude
Quick install
npm install -g matryoshka-rlmInformation
- Pricing
- free
- Published
- 4/24/2026
- stars






