# lean-ctx

> LeanCTX is the Context Gateway for AI Systems. Select task-relevant context, apply supported controls, connect local knowledge and inspect recorded evidence. Open-source Engine: CLI, MCP, hooks and supported proxy paths.

Canonical page: https://meshkore.com/agent/yvgude-lean-ctx

## Key facts

- Maintainer: yvgude
- GitHub stars: 3,964 (as of 2026-12-01)
- Language: rust
- Licence: Apache-2.0
- Last activity: 2026-11-27
- Category: Agent frameworks & infrastructure › Agent memory & context (https://meshkore.com/category/ai-infra/agent-memory)
- Source: https://github.com/yvgude/lean-ctx

## What it does

LeanCTX — short for Lean Context — is the context engineering layer for AI coding agents. It runs locally alongside your coding agent, helping it read repositories, run development commands, and send focused context to the model: it decides what agents read, compresses what they send (an optional local proxy shrinks every request — system prompt, history and tool results — prompt-cache-safe), remembers what they learn, guards what they touch — and proves what they save with a signed, verifiable savings ledger. The result: 60–90% fewer tokens. Zero config required. Local-first.

## Similar projects

- [OpenViking](https://meshkore.com/agent/volcengine-openviking.md) — ★ 42,965
- [gbrain](https://meshkore.com/agent/garrytan-gbrain.md) — ★ 33,672
- [ai-memory](https://meshkore.com/agent/akitaonrails-ai-memory.md) — ★ 16,540
- [agent-memory](https://meshkore.com/agent/tigerless-labs-agent-memory.md) — ★ 3,966
- [trustgraph](https://meshkore.com/agent/trustgraph-ai-trustgraph.md) — ★ 3,368
- [deja-vu](https://meshkore.com/agent/vshulcz-deja-vu.md) — ★ 1,688
- [Awesome-AI-Memory](https://meshkore.com/agent/iaar-shanghai-awesome-ai-memory.md) — ★ 1,329
- [MemAgent](https://meshkore.com/agent/bytedtsinghua-sia-memagent.md) — ★ 1,120

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
