yvgude/lean-ctx

LeanCTX — Context Gateway for AI Systems. Control what your AI can see. Open-source Engine for context selection, supported controls, and evidence.

About the project

LeanCTX is a local Rust program that controls the repository context an AI coding agent receives, including selecting, compressing, remembering, and tracking information. Developers use it alongside coding agents to reduce repeated context and manage what those agents read and execute, while the catalogue entries provide related rules, skills, and instructions.

This repository also configures its own agents. See what lean-ctx tells them →

3.9kStars on the repository
10Mods indexed here, across every type
todayLast push, which is what freshness is scored on
Apache-2.0Licence, which decides whether bodies are shown

compression-safety

01

yvgude/lean-ctx

Cursor rule Cursor

Cursor rule "compression-safety" from yvgude/lean-ctx, covering compression safety — prevent lean-ctx marker corruption, the problem, rules for all agents, never write compressed content to files and file restoration commands.

not rated 3.9k +9 today A 399 tokens original Apache-2.0

yvgude/lean-ctx

Cursor rule Cursor

Shows lean-ctx (MCP) token metrics for this session at the end of each reply.

not rated 3.9k +9 today A 388 tokens original Apache-2.0

lean-ctx

03

yvgude/lean-ctx

Cursor rule Cursor

Token optimization via lean-ctx Hybrid (Shell Hook + MCP).

not rated 3.9k +9 changed 13d ago A 969 tokens original Apache-2.0

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: