Files
wehub-resource-sync 26382a7ac6
CI / Test (macos-latest) (push) Waiting to run
CI / Test (ubuntu-latest) (push) Waiting to run
CI / Test (windows-latest) (push) Waiting to run
CI / Clippy (push) Waiting to run
CI / Build (no embeddings / no ORT) (push) Waiting to run
CI / Format (push) Waiting to run
CI / Cookbook (Node) (push) Waiting to run
CI / Pi Extension (Node) (push) Waiting to run
CI / Rust SDK (lean-ctx-client) (push) Waiting to run
CI / Embed SDK (lean-ctx-sdk) (push) Waiting to run
CI / Python SDK (leanctx) (push) Waiting to run
CI / Hermes Plugin (Python) (push) Waiting to run
CI / SDK Conformance Matrix (push) Waiting to run
CI / Coverage (push) Waiting to run
CI / cargo-deny (push) Waiting to run
CI / Adversarial Safety (push) Waiting to run
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
JetBrains Plugin / Actionlint (push) Waiting to run
CI / Benchmarks (push) Waiting to run
CI / Output-Quality Gate (eval A/B) (push) Waiting to run
CI / Documentation (push) Waiting to run
CI / CI Green (push) Blocked by required conditions
CodeQL / Analyze (actions) (push) Waiting to run
CodeQL / Analyze (rust) (push) Waiting to run
JetBrains Plugin / Validation (push) Waiting to run
JetBrains Plugin / Build (push) Waiting to run
JetBrains Plugin / Test (push) Blocked by required conditions
Security Check / Security Scan (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 12:35:30 +08:00

2.7 KiB

LeanCTX — Ecosystem Overview

Product vision: VISION.md

Software ate the world. Agents are eating software. And every agent is exactly as good as the context it is given — context decides what an agent knows, what it may do, and what it provably did. Today that context is unmanaged: untyped markdown, copy-pasted prompts, vendor-locked memory, zero provenance.

LeanCTX makes context infrastructure: efficient, verifiable, portable, organizational — managed with the same rigor as code.

One product, three pillars

Pillar What it does Who it serves
Engine Active token reduction — compression, MCP tools, agent hooks, local dashboard Individual developers
Gateway Org-wide LLM proxy — usage tracking, budget enforcement, FinOps, compliance Companies, Ops, FinOps, CISOs
Cloud Hosted services — accounts, sync, team provisioning, billing, registry Teams, Pro users, managed enterprise

All three pillars ship in one binary (lean-ctx). Every feature works self-hosted for free. Cloud and Enterprise tiers add hosting, support, and managed infrastructure — never features.

Engine

The developer-facing context compression layer: 10 read modes, 95+ shell compression patterns, tree-sitter AST for 27 languages, semantic search with hybrid BM25 + dense retrieval, session continuity protocol (~400 tokens instead of ~50K cold start). Ships as MCP tools (ctx_read, ctx_compose, ctx_search, …) and transparent agent hooks.

Gateway

The org-wide LLM reverse proxy: intercepts Anthropic, OpenAI, Gemini and ChatGPT traffic, compresses prompts in-flight, meters per-request cost attribution, enforces budgets, and provides FinOps dashboards. Self-hosted with --features gateway-server, no license required.

Cloud

The hosted coordination layer: user accounts, team provisioning, knowledge sync, billing edge, and the context package registry. Enables Pro/Team/ Enterprise tiers without requiring self-hosted infrastructure.

Companion projects

Project Role
ctxpkg.org Open standard for signed, typed context packages (.ctxpkg)
ctxpkg.com Registry and marketplace for context packages

Doctrines

  • Zero telemetry, absolutely — nothing leaves a machine automatically; explicit, locally computed, user-invoked shares only.
  • Trust is never for sale — no paid placement, ranking or verification on any surface.
  • Local-Free Invariant — every feature works self-hosted for free; commercial tiers add hosting and support, never capabilities.
  • Distilled, typed, signed knowledge only — never raw transcripts.