Documentation
README
LeanCTX — Context Engineering for AI Agents
LeanCTX optimizes LLM context through 79 MCP tools, 95+ shell compression patterns, and tree-sitter AST parsing for 26 languages. It provides adaptive file reading, cross-session memory (CCP), task-conditioned relevance scoring, and a feedback loop for learning optimal compression.
Setup (run first)
Before using lean-ctx, verify it is installed:
which lean-ctx || bash scripts/install.sh
If the install script is not available locally, install manually:
curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/skills/lean-ctx/scripts/install.sh | bash
After installation, run the one-command setup (installs shell hook + editor wiring + rules + skills):
lean-ctx setup
This is the opening of the README. Read the full README on GitHub.