yvgude/lean-ctx

Hybrid Context Optimizer — Shell Hook + MCP Server. Reduces LLM token consumption by 89-99%. Single Rust binary, zero dependencies.

56
/ 100
Established

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.

No Package No Dependents
Maintenance 13 / 25
Adoption 16 / 25
Maturity 9 / 25
Community 18 / 25

How are scores calculated?

Stars

276

Forks

41

Language

Rust

License

MIT

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.