Lean Ctx
LeanCTX — the cognitive context layer for agentic systems. 62 MCP tools, 10 read modes, 60+ shell patterns. Up to 99% token savings. Works with Cursor, Claude Code, Copilot, Windsurf, Codex, Gemini.
LeanCTX — the cognitive context layer for agentic systems. 62 MCP tools, 10 read modes, 60+ shell patterns. Up to 99% token savings. Works with Cursor, Claude Code, Copilot, Windsurf, Codex, Gemini.
暂未识别到可直接复制的 MCP 配置,请查看 GitHub README。后台管理员可以补充配置。
██╗ ███████╗ █████╗ ███╗ ██╗ ██████╗████████╗██╗ ██╗ ██║ ██╔════╝██╔══██╗████╗ ██║ ██╔════╝╚══██╔══╝╚██╗██╔╝ ██║ █████╗ ███████║██╔██╗ ██║ ██║ ██║ ╚███╔╝ ██║ ██╔══╝ ██╔══██║██║╚██╗██║ ██║ ██║ ██╔██╗ ███████╗███████╗██║ ██║██║ ╚████║ ╚██████╗ ██║ ██╔╝ ██╗ ╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ **The Cognitive Context Layer for Agentic Systems** Your AI coding agent wastes thousands of tokens rereading files, parsing noisy shell output, and losing context between sessions. **LeanCTX fixes that.** One binary. Zero config. Local-first. | Problem | With LeanCTX | |---------|-------------| | Repeated file reads: ~2000 tokens each | Cached re-reads: **~13 tokens** | | Raw `git status`: ~800 tokens | Compressed: **~120 tokens** | | Context resets every chat | Session memory persists across chats | | No visibility into context usage | Real-time dashboard + budget control | --- Website · Docs · Install · Demo · Benchmarks · Cookbook · Security · Changelog · Discord --- > **LeanCTX** stands for **Lean Cortex**: a lightweight cognitive layer that helps AI agents perceive, compress, remember, route, and reuse context across workflows. > It governs every token between your code and the AI — so you make better decisions, not just cheaper ones. Works with **Cursor, Claude Code, Copilot, Windsurf, Codex, Gemini** and 23+ other agents — no config needed. See it in action: Read + Shell Map-mode reads + compressed CLI output Gain (live) Tokens + USD savings in real time Benchmark proof Measure compression by language + mode All GIFs are generated from reproducible VHS tapes in demo/. ## Why developers use LeanCTX - **Longer useful coding sessions** — less context waste = more room for actual code reasoning - **Lower API costs** — 60-99% compression on shell output, cached reads cost ~13 tokens - **No more "I already showed you this file"** — session memory persists across chats - **Works with your existing setup** — one `lean-ctx setup` command, no config changes needed - **Full visibility** — see exactly where your context window budget goes --- Saves you tokens? Give it a star — it helps others discover LeanCTX. --- ## What it does **One binary. Three layers of value:** ### Layer 1: Compression (instant value) Your AI agent reads files and runs commands. LeanCTX compresses both automatically. - **File reads**: 10 modes (`full`, `map`, `signatures`, `diff`, `lines:N-M`) — cached re-reads cost ~13 tokens - **Shell output**: 56 pattern modules compress git, npm, cargo, docker, kubectl, terraform and more (270 passthrough rules) - **Tree-sitter AST**: structural understanding for 21 languages — not just text compression ### Layer 2: Memory (sticky value) Context doesn't disappear between chats anymore. - **Session memory (CCP)**: persist task/facts/decisions across chats — structured recovery queries survive compaction - **Knowledge graph**: temporal facts with validity windows, episodic + procedural memory - **Property Graph**: multi-edge code graph (imports, calls, exports...
A collection of MCP servers.
Chrome DevTools for coding agents
Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, M...
Playwright MCP server
GitHub's official MCP Server
🚀 The fast, Pythonic way to build MCP servers and clients.