定義

とは? LeanCTX?

LeanCTX(Lean Contextの略)は、AIエージェント向けのcontext engineering layerです。エージェントが何を読み、何を圧縮し、何を記憶し、何に触れ、そして何を保存するかを決定します。これにより、モデル境界を越えるデータは意図的で、圧縮され、証明可能になります。

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.

名前

LeanCTXとは の略ですか?

Lean Contextです。この名前は、その役割を表しています。生のノイズの多い入力ではなく、AIエージェントのためのリーンで正確なコンテキストを提供することです。

LeanCTX
散文やタイトルで使用されるブランド名およびプロジェクト名。
lean-ctx
バイナリ、パッケージ、およびCLIコマンド。
Lean Context
名前が展開する意味と、私たちを見つけるための検索キーワード。

初期のプレス報道で誤って記載された"Lean Cortex"ではありません。本プロジェクトについて記述する場合は、プレスキットにコピー可能な定型文があります。

4つの役割

読み込みが少なくなる。記憶が豊かになる。 それを証明する。

LeanCTXがコンテキストエンジニアリングレイヤーとなる瞬間、4つのことが変わります。

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.

内部構造

5つのサブシステムが、 単一のバイナリで動作する。

アーキテクチャ上、LeanCTXは認知コンテキストレイヤーです。読み取り、コマンド、検索のすべてにおいて5つのサブシステムが実行されます。その一つが圧縮であり—コンテキストエンジニアリングこそが製品です。

01

知覚する

行動する前に重要なものを見る。

Read more
02

圧縮する

すべてのトークンにシグナルを込める。

Read more
03

記憶する

セッションを超えた継続性。

Read more
04

ルーティングする

適切なコンテキストを適切なモデルへ。

Read more
05

統治する

安全で、計測され、強制される。

Read more

主な事実

数値データ 主張の裏付けとなる。

60–90%読み取りあたりのトークン数の削減
~13キャッシュされた再読み取りあたりのトークン数
10読み取りモード
95+シェル圧縮パターン
30+自動検出されるAIツール
26AST経由で解析される言語

すべての数値は再現可能です:lean-ctx benchmark report .が独自のリポジトリで測定し、すべての節約額はEd25519署名された台帳に記録されます。

名称、価格、製品。 the product.

The short answers to the essential questions.

独自のレポジトリで動作を確認してください。on your own repo.

無料でインストールし、lean-ctx setupを実行すれば、10分以内に最初の測定可能な改善を確認できます。ローカル利用はCIによって永遠に無料が保証されます。

Support this project