Die Definition

Was ist LeanCTX?

LeanCTX (kurz für Lean Context) ist der Context-Engineering-Layer für KI-Agenten: Es entscheidet, was Agenten lesen, komprimiert, was sie senden, merkt sich, was sie lernen, schützt, worauf sie zugreifen, und beweist, was sie sparen — sodass das, was die Modellgrenze überschreitet, bewusst, komprimiert und beweisbar ist.

The one-paragraph definition

LeanCTX (short for Lean Context) is the open-source context engineering layer for AI agents. One local Rust binary decides what agents read (10 read modes, 60–90% fewer tokens, ~13-token cached re-reads), remembers what they learn (persistent sessions, knowledge graph), guards what they touch (PathJail, secret redaction, budgets, injection detection), proves what they save (Ed25519-signed ledger, reproducible benchmark) and replays what they saw (git-anchored, signed context snapshots you can restore or share); an optional local proxy compresses what they send — every request’s system prompt, history and tool output, prompt-cache-safe on the wire. Compression — read-side and wire-side — is one of five subsystems, and every original stays locally retrievable. Works with 30+ AI coding tools via MCP and shell hooks; embeds in any agent via a versioned /v1 API with Python, TypeScript and Rust SDKs. Local use is free forever, enforced by CI.

It's not about tokens. It's about what matters.

Der Name

Wofür steht LeanCTX?

Lean Context. Der Name beschreibt die Aufgabe: schlanker, präziser Kontext für KI-Agenten statt rohem, verrauschtem Input.

LeanCTX
der Marken- und Projektname, verwendet in Fließtext und Titeln.
lean-ctx
die Binary, das Paket und der CLI-Befehl.
Lean Context
wofür der Name ausgeschrieben steht — und der Suchbegriff, der uns findet.

Nicht "Lean Cortex", eine Falschschreibung, die in frühen Pressebeiträgen auftauchte. Wenn du über das Projekt schreibst, hat das Press Kit kopierfertige Boilerplate.

Die vier Aufgaben

Liest weniger. Merkt sich mehr. Beweist es.

Vier Dinge ändern sich in dem Moment, in dem LeanCTX dein Context-Engineering-Layer wird.

Without LeanCTX, your agent…With LeanCTX…The receipt
reads everything reads what matters60–90% less per read
forgets everything remembers across sessionsre-reads cost ~13 tokens
touches anything touches only what’s allowedPathJail · redaction · budgets
proves nothing proves every savingEd25519-signed ledger
can’t revisit what it saw replays any past stategit-anchored, signed snapshots

Token savings are the receipt. Context engineering is the product.

Unter der Haube

Fünf Subsysteme, eine Binary.

Architektonisch ist LeanCTX ein Cognitive Context Layer: Fünf Subsysteme laufen bei jedem Read, Befehl und jeder Suche. Kompression ist eines davon — Context Engineering ist das Produkt.

Kernfakten

Die Zahlen hinter der Aussage.

60–90%weniger Tokens pro Read
~13Tokens pro gecachtem Re-Read
10Read-Modi
95+Shell-Kompressions-Patterns
30+KI-Tools, automatisch erkannt
26Sprachen via AST geparst

Alle Zahlen sind reproduzierbar: lean-ctx benchmark report . misst sie auf deinem eigenen Repository, und jede Einsparung wird in einem Ed25519-signierten Ledger festgehalten.

Der Name, der Preis, das Produkt. the product.

The short answers to the essential questions.

Sieh es auf deinem eigenen Repo entscheiden.on your own repo.

Installiere kostenlos, führ lean-ctx setup aus und sieh den ersten gemessenen Gewinn in unter zehn Minuten. Die lokale Nutzung ist für immer kostenlos, per CI durchgesetzt.

Support this project