by yvgude
LeanCTX is the Context Gateway for AI Systems. Select task-relevant context, apply supported controls, connect local knowledge and inspect recorded evidence. Open-source Engine: CLI, MCP, hooks and supported proxy paths.
# Add to your Claude Code skills
git clone https://github.com/yvgude/lean-ctxLast scanned: 11/28/2026
{
"issues": [
{
"file": "README.md",
"line": 315,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl -fsSL https://leanctx.com/install.sh | sh\"",
"severity": "low"
},
{
"file": "rust/src/templates/SKILL.md",
"line": 78,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/skills/lean-ct\"",
"severity": "medium"
},
{
"file": "skills/lean-ctx/SKILL.md",
"line": 78,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/skills/lean-ct\"",
"severity": "medium"
}
],
"status": "PASSED",
"scannedAt": "2026-11-28T21:44:08.885Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}lean-ctx is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by yvgude. LeanCTX is the Context Gateway for AI Systems. Select task-relevant context, apply supported controls, connect local knowledge and inspect recorded evidence. Open-source Engine: CLI, MCP, hooks and supported proxy paths. It has 3,967 GitHub stars.
Yes. lean-ctx passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/yvgude/lean-ctx" and add it to your Claude Code skills directory (see the Installation section above).
lean-ctx is primarily written in Rust. It is open-source under yvgude on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh lean-ctx against similar tools.
No comments yet. Be the first to share your thoughts!
Context Gateway for AI Systems.
Make every agent more effective.
The claim is a stance, not a measured quality or savings promise, until a published cost-per-accepted-outcome (CPAO) study exists.
LeanCTX sits between AI tools and the information they read. It selects task-relevant context, applies supported access and content controls before delivery, and records the context operations and delivery evidence it can observe. Your application, agent loop and model stay yours.
The open-source LeanCTX | OSS runs locally through CLI, MCP, hooks and proxy paths. The LeanCTX | SDK embeds supported LeanCTX | OSS capabilities in your application.
Files · repositories · tool results · configured providers
│
▼
LeanCTX Context Gateway
Select · Control · Learn · Prove
│
▼
Your AI application / agent
│
▼
Your model
For coding workflows, start with Claude Code, Cursor or Codex. The installation matrix distinguishes first-class paths from other compatibility references.
| Your work | Start here |
|---|---|
| Improve the context path of existing AI tools | Community setup |
| Apply shared context controls across an organization | Enterprise — licensed controls and deployment scope |
| Build context control into your application | LeanCTX | SDK — stable interfaces and separate SDK/OEM terms |
What is LeanCTX? · Where LeanCTX fits · Architecture
lean-ctx setup.The Engine puts Select, Control, Learn and Prove into the context paths of your existing AI tools. Your host keeps control of the task, agent loop and model.
Search and structural views help an agent find relevant information before reading entire files. Supported read and shell paths can return focused views of files and command output, with references for recovering detail.
auto, full, map, signatures, diff, aggressive, entropy, task, reference, lines:N-M), the anchored, full-compact, raw and density:X variants, and cognitive and mdl as aliases of map — eligible cached re-reads return a compact reference instead of repeating contentdensity:0.4): SDE-style budget compression — keeps the highest-entropy lines until ~40% of the original tokens remain, deterministicsignatures carries line spans and points at lines:N-M for targeted expansion — outline first, bodies on demandctx_expand or the reference API. Recovery depends on permissions, retention and the source remaining available. Read modes and detail →Review the security policy for defaults, supported controls and coverage limits. A filesystem boundary is not an operating-system sandbox.
Keep useful task records and discover relationships between code and local knowledge. Learning here means context continuity; it does not train your model.
.ctxpkg export is described under Research below.Inspect source references, recorded policy decisions and delivery evidence from
supported paths. lean-ctx inspect explains observed context operatio