작동 방식

LeanCTX가 무엇을 제어하는지 AI가 보는 것.

LeanCTX는 AI 에이전트를 위한 context engineering layer입니다: 모든 읽기, 명령어 및 검색에 동일한 루프를 실행하는 작은 Rust 바이너리 하나입니다. 이는 에이전트가 무엇을 읽는지, 세션 전반에 걸쳐 무엇을 기억하는지, 무엇을 접근할 수 있는지 보호하고, 서명된 원장에 무엇을 저장하는지 증명하며, 무엇을 재생하는지 결정합니다. 읽기는 26개 언어에 걸쳐 구조를 파싱하고 노이즈를 제거하므로, 모델에 도달하는 정보는 의도적이고 압축되었으며 증명이 가능합니다. 한 번 설치하면 모든 것이 자동입니다.

The context pipeline.

Every request flows through four stages. Your tools stay the same — LeanCTX intercepts silently between your AI tool and the LLM.

Intercept

Your agent calls ctx_read, ctx_shell, or ctx_search. LeanCTX intercepts the call before it reaches the filesystem.

Analyze

Tree-sitter parses the AST. Shell patterns match the command. The content-addressed cache checks for re-reads.

Deliver

Only the signal reaches the model. Signatures, errors, relevant matches — structured, deduplicated, compressed.

One Rust binary. Zero config. Your agent gets better context without knowing LeanCTX exists.

What your agent actually sees.

When your agent reads a file, LeanCTX returns only the structural signature — function signatures, type definitions, and key logic. The full file never enters context.

Explore read modes

Shell output, compressed.

A raw git diff produces hundreds of lines. LeanCTX pattern-matches 95+ commands and returns only the meaningful delta — file names, hunks, and error lines.

See all patterns

Security built into every call.

Before any file read or shell command executes, LeanCTX validates the path against PathJail, checks the shell allowlist, and redacts detected secrets. lean-ctx doctor shows the full posture.

Security docs

How it works, answered.

The practical details behind the compression layer.

See itin action.

Install LeanCTX and watch your agent's context usage drop.

curl -fsSL https://leanctx.com/install.sh | sh
Support this project