yvgude

    yvgude/lean-ctx

    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.

    ai
    ai-agents
    developer-tools
    llm
    agentic-coding
    ai-coding
    ai-governance
    ai-security
    audit-trail
    Rust
    Apache-2.0
    3.9K stars
    363 forks
    3.9K GitHub watchers
    Updated Nov 6, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    5 releases in the last 90 days, the latest today, with 53 contributors on GitHub.

    Use Cases & Benefits

    • Provides a local context engineering layer that controls, compresses, remembers, and verifies what AI agents read and send to models.
    • Reduces token usage by 60–90% with zero configuration, enabling longer sessions and lower API costs while keeping context local and portable.
    • Use for optimizing token consumption and context management in AI coding assistants like Copilot, Claude Code, and Gemini.
    • Use for maintaining persistent session memory and knowledge graphs across multiple AI chat sessions to avoid context resets.
    • Use for multi-agent collaboration with shared context, role-based budgets, and verifiable context usage in team or CI environments.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    LeanCTX — Lean Context Engineering for AI agents

    LeanCTX — short for Lean Context — is the context engineering layer for AI agents. It runs as a single local binary between your agents and everything they touch — your code, shell, data, and the model itself: it decides what they read, compresses what they send (an optional local proxy shrinks every request — system prompt, history and tool results — prompt-cache-safe), remembers what they learn, guards what they touch — and proves what they save with a signed, verifiable savings ledger. The result: 60–90% fewer tokens. Zero config required. Local-first.

    Control what your AI can see. LeanCTX — short for Lean Context — is the context engineering layer for AI agents: one local Rust binary that decides what your agents read, compresses what they send to the model, remembers what they learn, guards what they touch — and proves what they save.

    Token savings are the receipt. Intelligence is the product. Works with Cursor, Claude Code, Copilot, Windsurf, Codex, Gemini and 30+ other agents — no config needed.

    All GIFs are generated from reproducible VHS tapes in demo/.

    Saves you tokens? Give it a star — it helps others discover LeanCTX.

    Excerpt from the yvgude/lean-ctx README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    363+39

    Open issues

    14-6

    Compared with peers in AI

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    yvgude/lean-ctx compared with AI repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    thedotmack/claude-mem113.6K+8.8K35today
    D4Vinci/Scrapling98.1K+6.9K651 day ago
    Leonxlnx/taste-skill110.7K+5.2K551 day ago
    calesthio/OpenMontage77.2K+4.2K40—
    heygen-com/hyperframes79.6K+4.1K45today
    yvgude/lean-ctx3.9K—45today
    Category median98.1K+5.2K45—

    Discover Repositories

    Search across tracked repositories by name or description