Home/AI Agents/lean-ctx
lean-ctx logo

lean-ctx

yvgude/lean-ctx

Control what your AI can see by serving context with a local Rust binary.

GraphCanon updated Oct 3, 2026 · GitHub synced Oct 3, 2026

61views this month

3.9k stars352 forksLast push Oct 2, 2026 Rust Apache-2.0

Decision brief

LeanCTX serves as a context intelligence layer for AI agents, providing localized control over read access and memory management while optimizing token usage for numerous MCP tools, all powered by a local Rust binary.

Good fit when

  • When you require granular, localized oversight over what your AI can visualize, learn from, and store within its operations.
  • If your project involves more than 70 MCP tools or uses multiple programming languages and needs token optimization to keep costs down.

Avoid when

  • When there is a dependence on cloud-based solutions for context intelligence, since LeanCTX operates as a local binary.
  • If your setup does not need context layering or token optimization. In such cases, using LeanCTX would incur overhead without providing significant benefits.

Observed Jul 14, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Very active (0d since push)
As of Oct 3, 2026
Provenance
Not a fork · Personal account
As of Oct 3, 2026
Security (OSV)
No MCP manifest
As of Jul 11, 2026

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

cargo add lean-ctx
crates.io

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

LeanCTX acts as a context intelligence layer for AI agents, controlling read access and memory management locally. It supports token optimization for more than 70 MCP tools with support for multiple programming languages.

Capability facts

Languages
rust

Source: github.language · Oct 3, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Node.js runtimeNode.js

Source: README excerpt (regex_v1, Oct 3, 2026)

npm install -g lean-ctx-bin # Node.js
Source link

Tags

README

4. AI Value Gate — cost and outcome tracking Performance is the cost of a useful result, not just speed. LeanCTX records costs and outcomes locally; CPAO (Cost per Accepted Outcome) is the north star metric for comparing useful AI work. Context Manager : browser dashboard with re...

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.