Back to Home
yogthos icon

Matryoshka

by yogthos

Overview

Processes large documents beyond LLM context windows using a Recursive Language Model (RLM) that executes symbolic commands for iterative document analysis.

Installation

Run Command
npx matryoshka-rlm "What is the total of all sales values?" ./report.txt

Environment Variables

  • DEEPSEEK_API_KEY

Security Notes

The server's core functionality involves executing LLM-generated code, albeit within a constrained symbolic language (Nucleus) that is interpreted by a logic engine (Lattice) or compiled to JavaScript and run in a Node.js `vm.Context` sandbox. The `vm.Context` is explicitly noted in the source code (`src/sandbox.ts`) as providing 'contextual isolation but NOT security isolation.' Additionally, `new Function()` is used for dynamic code evaluation in `src/constraints/verifier.ts`, `src/persistence/predicate-compiler.ts`, `src/synthesis/relational/interpreter.ts`, and `src/synthesis/sandbox-tools.ts`. While there are attempts at validation (e.g., `isSafeInvariant`, `PredicateCompiler` blacklisting), running untrusted or maliciously crafted LLM outputs could still pose significant risks, as the sandbox is not designed for full security isolation. External network calls are made to LLM providers.

Similar Servers

Stats

Interest Score91
Security Score5
Cost ClassMedium
Avg Tokens2000
Stars62
Forks3
Last Update2026-01-18

Tags

RLMDocument AnalysisLLM OrchestrationSymbolic ExecutionContext Window ExtensionNo Vector Databases