感知
在采取行动之前,了解重要信息。
Read more定义
LeanCTX(“Lean Context”的缩写)是 AI 代理的上下文工程层:它决定了代理读取什么,压缩它们发送的内容,记住它们学到的知识,保护它们接触的数据,并证明它们保存的内容——因此,跨越模型边界的一切都是有目的、经过压缩和可证明的。
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.
名称
Lean Context。 这个名称描述了其功能:为 AI 代理提供精简、精确的上下文,而不是原始、嘈杂的输入。
并非 "Lean Cortex",这是早期媒体报道中的一个拼写错误。如果您撰写关于该项目的内容,新闻资料包提供了可直接使用的标准文本。
四个工作流
一旦 LeanCTX 成为您的 context engineering layer,就会发生四种变化。
60–90% less per readre-reads cost ~13 tokensPathJail · redaction · budgetsEd25519-signed ledgergit-anchored, signed snapshotsToken savings are the receipt. Context engineering is the product.
底层架构
从架构上讲,LeanCTX 是一个认知上下文层:每个读取、命令和搜索都会运行五个子系统。压缩是其中之一——context engineering 就是产品本身。
关键事实
所有数字均可复现:lean-ctx benchmark report . 在您自己的仓库上进行测量,每次节省都会记录在 Ed25519 签名账本中。
The short answers to the essential questions.
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.
Lean Context。这个名称描述了其功能:为 AI 代理提供精简、精确的上下文,而不是原始、嘈杂的输入。LeanCTX 是品牌和项目名称;lean-ctx 是二进制文件、包和 CLI 命令。它不是“Lean Cortex”——这是早期报道中出现的误拼。
不。压缩只是五个子系统之一。LeanCTX 是一个上下文工程层:它决定了代理读取什么,记住它们学到的知识,保护它们接触的数据,并在 Ed25519 签名的账本中证明它们保存的内容。Token 节省是凭证——上下文工程才是产品。
是的。本地使用永久免费,并通过公共 CI 网关强制执行,任何试图将本地功能置于付费墙后的提交都会失败。核心部分是开源的(Apache-2.0)。付费计划在基础之上增加了托管同步(Pro)和共享团队平面(Team)。
Cookie preferences
We use analytics to understand how our site is used. You choose what's allowed — no tracking runs until you decide.
Essential
Site functionality, security, preferences
Analytics
Pageviews & usage patterns · PostHog EU (Frankfurt) · No cross-site tracking
Read our Privacy Policy for full details. You can change your preferences anytime.