lean-ctx

github.com/yvgude/lean-ctx AI Agent Frameworks Open-source projectOpen source

LeanCTX provides context intelligence for AI systems and tools that use contextual information.

github.com/yvgude/lean-ctx
lean-ctx homepage screenshot

About lean-ctx

LeanCTX is an open-source context gateway that sits between AI tools and the files, repositories, tool results and configured providers they read. It selects task-relevant context, applies configured access and content controls before delivery, and records the context operations and delivery evidence it can observe.

The engine runs locally through CLI, MCP, hooks and proxy paths, and supported capabilities can be embedded in applications via the SDK. Controls apply to supported calls and results, and a context-only integration records its prepared result while the host application handles the subsequent model call.

Key features

  • Selects task-relevant context using search and structural views
  • Compresses context output and supports reuse across calls
  • Applies configured path permissions to supported calls
  • Filters supported results and enforces context budgets
  • Records source references, policy decisions and usage evidence
  • Runs locally via CLI, MCP, hooks and proxy paths
Best for: Developers and organizations that need to select, control and review context for existing AI tools and applications.
Good for
  • Open-source engine that runs locally
  • Works alongside existing applications, agent loops and models without replacing them
  • Provides inspectable source references, policy decisions and usage evidence
Watch out for
  • Access, filtering and budget controls apply only to supported calls and results
  • Context-only integrations record the prepared result; the host controls the later model call
  • Installation support varies, with a matrix distinguishing first-class paths from other references

lean-ctx at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

lean-ctx alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in AI Agent Frameworks

Well-known listings from the same topic.

All 75
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing