lean-ctx cuts token usage and secures AI context for founders
From the repo · “LeanCTX — Context Gateway for AI Systems. Control what your AI can see. Open-source Engine for context selection, supported controls, and evidence.”
LeanCTX is a context intelligence layer that controls what AI agents can see, remember, and save, optimizing token usage by 60-90%.
- •When integrating multiple AI agents into a startup's workflow
- •When sensitive data needs to be protected from unauthorized AI access
- •When optimizing token usage is crucial for cost reduction
Run `./target/release/lean-ctx --config lean-ctx.conf --agent my_agent` to start the LeanCTX server with a custom configuration for a specific AI agent
Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.
A prompt/skill package — nothing to install beyond adding it to your AI tool.
mkdir -p ~/.claude/skills/lean-ctx && curl -fsSL https://workflowstacks.com/api/skills/lean-ctx/claude-skill -o ~/.claude/skills/lean-ctx/SKILL.mdOpens the app with this repo with the prompt ready to go — no copy-paste needed.
Lean-ctx cuts token usage and secures AI context for founders is a very large Rust project (~677k lines across 2352 code files, plus 276 test files). You install it into your AI tool with one command; there is nothing to run yourself. Last commit this month, Apache-2.0 license, has a test suite.
- 1README.mdStart here — what it does and how to install it
- 2AGENTS.mdThe instructions the AI actually follows
- 3bin/lctxWhere the program starts running
- 4skills/lean-ctx-review/SKILL.mdInside skills/ — an example of what the AI is told to do
- 5cookbook/.biomeignoreA worked example — copy this to get going
Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.
A prompt/skill package — nothing to install beyond adding it to your AI tool.
mkdir -p ~/.claude/skills/lean-ctx && curl -fsSL https://workflowstacks.com/api/skills/lean-ctx/claude-skill -o ~/.claude/skills/lean-ctx/SKILL.mdOpens the app with this repo with the prompt ready to go — no copy-paste needed.
Are you the creator of this tool? and earn 85% of every sale.
Show it off in your README:
[](https://workflowstacks.com/skills/lean-ctx?utm_source=github&utm_medium=badge)The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.
Do this with a working workflow
Pages we wrote and tested that put a skill like this to work — importable n8n templates, outcome guides and Claude Desktop configs.
Related skills
More mcp-server tools founders pair with this one.