エージェントがすべてを忘れる
新しいチャットを始めるたびに、AIエージェントはすべてを忘れます:アーキテクチャの決定、バグパターン、API規約、試して失敗したこと。
ctx_knowledgeはセッション間でプロジェクト知識を永続化します。一度聞けば、永遠に記憶。
5 ツール
永続セッション
セッション状態はチェックポイント、コンパクション、制限付き成長で再起動後も存続。
プロジェクト知識
ファクト、パターン、矛盾、バグメモリ、信頼度スコアリングと減衰ポリシー付き。
マルチエッジ依存関係グラフ
imports、calls、exports、type_ref、tested_byエッジにまたがるマルチエッジBFSトラバーサルと重み付きインパクトスコアリングを備えたProperty Graph。
エージェントハンドオフ
ダイアリー、タスク、エージェント間のコスト帰属を含む構造化ハンドオフバンドル。
セッションサバイバルエンジン
構造化リカバリクエリがコンテキストコンパクションを生き延びます - 重要な決定、未完了タスク、アーキテクチャコンテキストが自動的に保持されます。
Context Continuity Protocol(CCP)
セッション、知識、コンテキストがエージェント境界を超えて存続することを保証する永続化プロトコル。
14 MCP ツール
LeanCTXはセッション、プロジェクト知識、依存関係グラフ、エージェントハンドオフを再起動後も永続化します。セッションサバイバルエンジンは構造化リカバリクエリがコンテキストコンパクションを生き延びることを保証し、タスク中に重要なコンテキストが失われません。ファクトは信頼度スコア付きで保存され、時間経過とともに自動的に減衰します。ナレッジルームはトピック別に情報を整理し、構造化ハンドオフバンドルにより完全なコンテキスト保持でシームレスなエージェント間移行を実現します。
ctx_session Cross-session memory (CCP). Actions: load (restore ~400 tok), save, status, task, finding, decision, reset, list, cleanup, snapshot, restore, resume, profile (context profiles), role (governance), budget (limits), slo (observability), diff (compare sessions), verify (output verification stats), episodes (episodic memory), procedures (procedural memory).
ctx_knowledge Persistent project knowledge across sessions (facts, patterns, history). Supports recall modes, embeddings, feedback, and typed relations.
ctx_graph Unified code graph. Actions: build (index), related (connected files), symbol (def/usages), impact (blast radius), status (stats), enrich (add commits+tests+knowledge), context (task-based query), diagram (Mermaid deps/calls).
ctx_impact Graph-based impact analysis. Actions: analyze|chain|build|status.
ctx_architecture Graph-based architecture analysis. Actions: overview|clusters|layers|cycles|entrypoints|module.
ctx_callgraph Unified call graph query. direction=callers|callees for a symbol. Returns file/symbol/line edges.
ctx_callers Find all symbols that call a given function/method. Deprecated alias for ctx_callgraph direction=callers.
ctx_callees Find all functions/methods called by a given symbol. Deprecated alias for ctx_callgraph direction=callees.
ctx_agent Multi-agent coordination (shared message bus + persistent diaries). Actions: register (join with agent_type+role), post (broadcast or direct message with category), read (poll messages), status (update state: active|idle|finished), handoff (transfer task to another agent with summary), sync (overview of all agents + pending messages + shared contexts), diary (log discovery/decision/blocker/progress/insight — persisted across sessions), recall_diary (read agent diary), diaries (list all agent diaries), list, info.
ctx_task Multi-agent task orchestration. Actions: create|update|list|get|cancel|message|info.
ctx_handoff Context Ledger Protocol (hashed, deterministic, local-first). Actions: create|show|list|pull|clear.
ctx_share Share cached file contexts between agents. Actions: push (share files from your cache to another agent), pull (receive files shared by other agents), list (show all shared contexts), clear (remove your shared contexts).
ctx_compress Context checkpoint for long conversations.
ctx_compress_memory Compress a memory/config file (CLAUDE.md, .cursorrules, etc.) to save tokens on every session start. Preserves code blocks, URLs, paths, headings, tables. Creates .original.md backup.
すべての出力に証拠が付随
LeanCTXはすべてのセッションの証拠アーティファクトを生成します:どのファイルが読み取られたか、何が圧縮されたか、どのチェックが通過したか、トークンがどのように使用されたか。これによりAI作業は監査可能、再現可能、信頼に値するものになります。