Files
yvgude--lean-ctx/ECOSYSTEM.md
T
wehub-resource-sync 26382a7ac6
CI / Clippy (push) Failing after 15m13s
CI / Test (ubuntu-latest) (push) Failing after 16m1s
CI / Test (macos-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Build (no embeddings / no ORT) (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Cookbook (Node) (push) Has been cancelled
CI / Pi Extension (Node) (push) Has been cancelled
CI / Rust SDK (lean-ctx-client) (push) Has been cancelled
CI / Embed SDK (lean-ctx-sdk) (push) Has been cancelled
CI / Python SDK (leanctx) (push) Has been cancelled
CI / Hermes Plugin (Python) (push) Has been cancelled
CI / SDK Conformance Matrix (push) Has been cancelled
CI / Coverage (push) Has been cancelled
CI / cargo-deny (push) Has been cancelled
CI / Adversarial Safety (push) Has been cancelled
CI / Benchmarks (push) Has been cancelled
CI / Output-Quality Gate (eval A/B) (push) Has been cancelled
CI / Documentation (push) Has been cancelled
CI / CI Green (push) Has been cancelled
JetBrains Plugin / Actionlint (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL / Analyze (rust) (push) Has been cancelled
JetBrains Plugin / Validation (push) Has been cancelled
JetBrains Plugin / Build (push) Has been cancelled
JetBrains Plugin / Test (push) Has been cancelled
Security Check / Security Scan (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:35:30 +08:00

62 lines
2.7 KiB
Markdown

# LeanCTX — Ecosystem Overview
> Product vision: [`VISION.md`](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.