La definizione

Cos'è LeanCTX?

LeanCTX (abbreviazione di Lean Context) è lo strato di context engineering per gli agenti AI: decide cosa leggono gli agenti, comprime ciò che inviano, ricorda ciò che imparano, protegge ciò che toccano e dimostra ciò che salvano — in modo che tutto ciò che attraversa il confine del modello sia intenzionale, compresso e provabile.

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.

Il nome

Cosa significa LeanCTX ?

Lean Context. Il nome descrive il lavoro: contesto snello e preciso per gli agenti AI anziché input grezzo e rumoroso.

LeanCTX
il brand e il nome del progetto, usato in prosa e titoli.
lean-ctx
il binario, il pacchetto e il comando CLI.
Lean Context
a cosa si espande il nome, e il termine di ricerca che ci trova.

Non "Lean Cortex", un refuso apparso nelle prime coperture stampa. Se scrivete del progetto, il kit stampa contiene testi pronti all'uso.

I quattro ruoli

Legge di meno. Ricorda di più. Lo dimostra.

Quattro cose cambiano nel momento in cui LeanCTX diventa il tuo context engineering layer.

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.

Sotto il cofano

Cinque sottosistemi, un singolo binario.

Architetturalmente, LeanCTX è un Cognitive Context Layer: cinque sottosistemi che operano ad ogni lettura, comando e ricerca. La compressione è uno di questi — l'context engineering è il prodotto.

Fatti chiave

I numeri dietro l'affermazione.

60–90%meno token per lettura
~13token per rilettura in cache
10modalità di lettura
95+pattern di compressione shell
30+strumenti AI, auto-rilevati
26linguaggi analizzati tramite AST

Tutti i numeri sono riproducibili: lean-ctx benchmark report . li misura sul tuo repository e ogni risparmio è registrato in un registro firmato Ed25519.

Il nome, il prezzo, il prodotto. the product.

The short answers to the essential questions.

Vedi decidere sul tuo repo.on your own repo.

Installa gratuitamente, esegui lean-ctx setup e osserva il primo guadagno misurato in meno di dieci minuti. L'uso locale è gratuito per sempre, garantito da CI.

Support this project