スマートI/O

あなたのAIはトークンバジェットの90%を不要なファイルの読み取りに浪費しています。

LeanCTXはすべてのファイルアクセスを読み取り、圧縮、キャッシュします。10のインテリジェント読み取りモード(フルキャッシュ読み取りからエントロピーフィルタリングされたシグネチャまで)、git、npm、dockerなど95以上のシェル圧縮パターン、安定した結果の決定的検索を活用できます。すべての読み取りはグラフ対応:Property Graphが関連ファイルをスコアリングし、エージェントは常に次に読むべきファイルを把握しています。インテリジェントキャッシングにより、再読み取りはわずか13トークンで済みます。

課題

1回のファイル読み取りに4,200トークン

AIエージェントは180トークンの関数シグネチャだけが必要なのに4,200トークンのファイルを読み取ります。42トークンに圧縮できるはずの1,800トークンの生のシェル出力を解析します。すべてのファイルアクセスがトークンを浪費し、ワークフローを遅くします。

ctx_readのmapモードがTypeScriptファイルから依存関係グラフとキーシグネチャのみを抽出し、4,200トークンをわずか180に削減する様子をご覧ください。

ctx_read
ctx_read ({ path: "src/lib/auth.ts", mode: "map" })
- exports: authenticate(), validateToken(), refreshSession()
- deps: jsonwebtoken, bcrypt, redis
- cached - 180 tokens (was 4,200)
スマートI/O

6 ツール

01

10の読み取りモード

フルキャッシュ読み取りからエントロピーフィルタリングされたシグネチャまで - 各コンテキストに最適な圧縮を選択。

02

シェル圧縮

git、npm、cargo、dockerなど95以上のパターン。出力60-90%削減、設定不要。

03

決定的検索

安定した順序、制限された結果、セキュリティ境界を持つ正規表現とセマンティック検索。

04

編集安全性

プリイメージガード、TOCTOU保護、diff証拠付きのアトミック書き込み。

05

グラフ対応読み取り

すべてのファイル読み取りにProperty Graphからスコアリングされた関連ファイルが含まれ、エージェントは常に次に読むべきファイルを把握しています。

06

インクリメンタルグラフ更新

Git差分ベースのグラフ更新は、フルグラフの再構築ではなく、変更されたノードとエッジのみをパッチします。

Protocol

Token Dense Dialect(TDD)

トークンあたりの情報密度を最大化する圧縮プロトコル - モデルファミリーごとにキャリブレーション。

TDD Protocol
protocol TDD
version v1
pillar スマートI/O
status active
10 読み取りモード
95+ シェルパターン
99% 最大トークン削減
ツール

13 MCP ツール

LeanCTXはすべてのファイルアクセスを読み取り、圧縮、キャッシュします。10のインテリジェント読み取りモード(フルキャッシュ読み取りからエントロピーフィルタリングされたシグネチャまで)、git、npm、dockerなど95以上のシェル圧縮パターン、安定した結果の決定的検索を活用できます。すべての読み取りはグラフ対応:Property Graphが関連ファイルをスコアリングし、エージェントは常に次に読むべきファイルを把握しています。インテリジェントキャッシングにより、再読み取りはわずか13トークンで済みます。

ctx_read

Read file (cached, compressed). Cached re-reads can be ~13 tok when unchanged. Auto-selects optimal mode. Modes: full|map|signatures|diff|aggressive|entropy|task|reference|lines:N-M. fresh=true forces a disk re-read.

ctx_shell

Run shell command (compressed output, 95+ patterns). Use raw=true to skip compression. cwd sets working directory (persists across calls via cd tracking). Output redaction is on by default for non-admin roles (admin can disable).

ctx_search

Regex code search (.gitignore aware, compact results). Deterministic ordering. Secret-like files (e.g. .env, *.pem) are skipped unless role allows. ignore_gitignore requires explicit policy.

ctx_semantic_search

Semantic code search (BM25 + optional embeddings/hybrid). action=reindex to rebuild.

ctx_tree

Directory listing with file counts.

ctx_edit

Edit a file via search-and-replace. Works without native Read/Edit tools. Use this when the IDE's Edit tool requires Read but Read is unavailable.

ctx_multi_read

Batch read files in one call. Same modes as ctx_read.

ctx_smart_read

Auto-select optimal read mode for a file.

ctx_delta

Incremental diff — sends only changed lines since last read.

ctx_expand

Retrieve archived tool output (zero-loss). Large outputs are auto-archived; use this to retrieve full details. Actions: retrieve (default), list.

ctx_outline

List all symbols in a file (functions, structs, classes, methods) with signatures. Much fewer tokens than reading the full file.

ctx_symbol

Read a specific symbol (function, struct, class) by name. Returns only the symbol code block instead of the entire file. 90-97% fewer tokens than full file read.

ctx_fill

Budget-aware context fill — auto-selects compression per file within token limit.

検証

すべての出力に証拠が付随

LeanCTXはすべてのセッションの証拠アーティファクトを生成します:どのファイルが読み取られたか、何が圧縮されたか、どのチェックが通過したか、トークンがどのように使用されたか。これによりAI作業は監査可能、再現可能、信頼に値するものになります。

スマートI/Oツールを探索

LeanCTXはすべてのファイルアクセスを読み取り、圧縮、キャッシュします。10のインテリジェント読み取りモード(フルキャッシュ読み取りからエントロピーフィルタリングされたシグネチャまで)、git、npm、dockerなど95以上のシェル圧縮パターン、安定した結果の決定的検索を活用できます。すべての読み取りはグラフ対応:Property Graphが関連ファイルをスコアリングし、エージェントは常に次に読むべきファイルを把握しています。インテリジェントキャッシングにより、再読み取りはわずか13トークンで済みます。