EveryDev.ai
Subscribe
Home
Tools

4,506+ AI tools

  • New
  • Trending
  • Featured
  • Rate tools
  • Compare
  • Arena
Categories
  • Agents3274
  • Coding2275
  • Infrastructure1000
  • Projects696
  • Marketing636
  • Research587
  • MCP532
  • Design508
  • Analytics506
  • Testing394
  • Security376
  • Data327
  • Integration244
  • Prompts244
  • Communication235
  • Extensions217
  • Voice193
  • Learning190
  • Commerce170
  • DevOps153
  • Web103
  • Finance36
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • Users
  • Rate Tools
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai © 2026
    1. Home
    2. Tools
    3. LeanCTX
    LeanCTX icon

    LeanCTX

    Context Engineering

    Open-source context gateway that selects, controls, and records the context AI coding tools and agents read.

    Visit Website

    At a Glance

    Pricing
    Open Source

    Open-source LeanCTX Engine runs locally through CLI, MCP, hooks and proxy paths under the Apache License 2.0. The README badge says the repository uses mixed licensing, so this applies only to the Apache-2.0-licensed core.

    Engagement

    Available On

    Windows
    macOS
    Linux
    Web
    API

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    Context EngineeringMCP ServersAI Coding Assistants

    Alternatives

    GraftContext ModeOpen Index
    Developer
    Yves GuggerZürich, Switzerland

    Listed Oct 2026

    About LeanCTX

    LeanCTX is a context gateway for AI systems. It sits between AI tools and the files, repositories, tool results and configured providers they read. It selects task-relevant context, applies configured access and content controls, and records the context operations and delivery evidence it can observe. The open-source LeanCTX Engine runs locally through CLI, MCP, hooks and a proxy, and a separate LeanCTX SDK embeds supported Engine capabilities in applications.

    What It Is

    LeanCTX works on two paths. On the read path, an MCP server exposes ctx_* tools and shell hooks compress common command output. On the wire path, an opt-in local proxy routes supported model requests, so configured transformations can reduce eligible prompt, history and tool-result content. The host application keeps its own agent loop and model.

    The README frames the workflow as Select, Control and Prove: choose the context a task needs, apply path permissions, content filters and budgets, then inspect source references, policy decisions and usage evidence.

    How Context Is Selected and Compressed

    • File reads offer 16 modes, including full, map, signatures, diff, line ranges and target-density views. Eligible cached re-reads return a compact reference.
    • Shell-output patterns compress git, npm, cargo, docker, kubectl, terraform and similar commands.
    • Tree-sitter AST analysis provides structural understanding for 27 languages.
    • Compact views keep source or archive references that can be expanded again, depending on permissions, retention and source availability.
    • Session memory and a knowledge graph persist tasks, facts and decisions across chats, and can be exported as .ctxpkg packages.

    Measurement and Evidence

    The CLI and a browser dashboard (the Context Manager) track token usage, compression stats and cost locally. lean-ctx savings keeps a per-event ledger. Shadow Mode estimates what the same work would have cost without LeanCTX using a simulated baseline; the README states it does not measure answer quality. The project also proposes Cost per Accepted Outcome (CPAO) as its comparison metric.

    Setup Path

    Install with a shell script, Homebrew, npm or cargo, then run lean-ctx wrap cursor (or claude, codex) to register the MCP server and supported transport for that agent. lean-ctx unwrap reverses it and lean-ctx doctor checks the setup. The agent compatibility matrix lists many agents and IDEs, split into hybrid (MCP plus shell hooks) and MCP-only modes.

    Current Status

    The latest listed release is v3.11.4. The README labels several areas as experimental research, including addons, multi-agent handoff, context time machine snapshots and team-server paths. Licensing is mixed: the repository lists Apache-2.0 for the core, while some modules may carry commercial source-visible terms.

    LeanCTX - 1

    Community Discussions

    Be the first to start a conversation about LeanCTX

    Share your experience with LeanCTX, ask questions, or help others learn from your insights.

    Pricing

    OPEN SOURCE

    LeanCTX Engine (open source)

    Open-source LeanCTX Engine runs locally through CLI, MCP, hooks and proxy paths under the Apache License 2.0. The README badge says the repository uses mixed licensing, so this applies only to the Apache-2.0-licensed core.

    • Runs locally via CLI, MCP, hooks and proxy paths
    • Apache License 2.0 (repository license declaration)
    • README license badge shows "Mixed" license; scope limited to the Apache-2.0 core
    • Hosted team/cloud services are not publicly available

    Capabilities

    Key Features

    • Context gateway: select, control and prove flow
    • 16 file read modes including map, signatures, diff and density
    • Shell output compression for 85+ command patterns
    • Tree-sitter AST structural analysis for 27 languages
    • Source recovery via ctx_expand and ctx_retrieve
    • Session memory and knowledge graph persisting across chats
    • Property graph for impact analysis and search ranking
    • Opt-in local request proxy for model requests
    • Path permissions, content filters and context budgets
    • Local cost, savings ledger and Shadow Mode estimates
    • Browser dashboard (Context Manager)
    • Signed local addon packages (research preview)
    • Web, PDF and YouTube transcript reading into context
    • Configurable telemetry and update checks

    Integrations

    Cursor
    Claude Code
    Codex CLI
    Gemini CLI
    Windsurf
    GitHub Copilot
    Cline
    Roo Code
    Aider
    Continue
    JetBrains IDEs
    VS Code
    Zed
    Neovim
    Emacs
    Sublime Text
    Kiro
    Amazon Q
    OpenCode
    Amp
    API Available
    View Docs

    Ratings & Reviews

    No ratings yet

    Be the first to rate LeanCTX and help others make informed decisions.

    Rate other tools you’ve used

    Developer

    Yves Gugger

    Zürich, Switzerland
    Read more about Yves Gugger
    WebsiteGitHubLinkedIn
    1 tool in directory

    Similar Tools

    Graft icon

    Graft

    Open-source context layer for large codebases that builds a graph of your code so AI coding agents run faster, cheaper, and more accurately.

    Context Mode icon

    Context Mode

    An MCP server that optimizes AI coding agent context windows by sandboxing tool output, achieving up to 98% context reduction across 14 platforms.

    Open Index icon

    Open Index

    Open-source structured context layer for AI agents that lets you build domain-specific, searchable knowledge graphs (brains) agents can read from and write to via MCP.

    Browse all tools

    Related Topics

    Context Engineering

    Techniques for optimizing context windows to improve AI responses.

    77 tools

    MCP Servers

    Model Context Protocol servers that extend AI capabilities.

    319 tools

    AI Coding Assistants

    AI tools that help write, edit, and understand code with intelligent suggestions.

    971 tools
    Browse all topics
    Back to all toolsSuggest an edit
    ratings
    discussions