yvgude/lean-ctx
Hybrid Context Optimizer — Shell Hook + MCP Server. Reduces LLM token consumption by 89-99%. Single Rust binary, zero dependencies.
Implements cross-session memory (CCP) and adaptive intelligence protocols (CEP, TDD) via 24 MCP tools with tree-sitter AST parsing across 14 languages, enabling context awareness and semantic deduplication beyond shell compression alone. Integrates as both a shell hook for transparent CLI output optimization and MCP server for Cursor, Claude Code, Windsurf, and other editors—with one-command setup bridging both the local development loop and AI tool ecosystems.
276 stars and 556 monthly downloads.
Stars
276
Forks
41
Language
Rust
License
MIT
Category
Last pushed
Mar 28, 2026
Monthly downloads
556
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/mcp/yvgude/lean-ctx"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.