Rust binary with the same context control and memory; choose it if you prefer a lightweight standalone over TypeScript hooks.
LeanCTX — Context Intelligence for AI systems.
- 3.8k
- Rust
- Apache-2.0
AI coding agent context optimization
Context window optimization for AI coding agents: sandboxes tool output to cut tokens, persists session memory, and enforces routing across 17 platforms via MCP + hooks.
Same problem, same approach. Swapping one for another is a config change, not a rewrite.
Rust binary with the same context control and memory; choose it if you prefer a lightweight standalone over TypeScript hooks.
LeanCTX — Context Intelligence for AI systems.
Python library/proxy/MCP that compresses outputs across the stack; choose for a Python-native same-approach alternative.
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Solves the same problem with a different architecture or at a different layer. Expect to rewrite the integration.
CLI proxy reducing token consumption on dev commands; choose it for a transparent proxy rather than MCP-based integration.
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
Pre-indexed code knowledge graph; choose it when your token waste is from fetching code context, not tool output.
Pre-indexed code knowledge graph, auto syncs on code changes, for Claude Code, Codex, Gemini, Cursor, OpenCode, AntiGravity, Kiro, CoPilot, and Hermes Agent — fewer tokens, fewer tool calls, 100% local
Code intelligence MCP with 158-language indexing; choose for sub-millisecond code queries and 99% token reduction on code retrieval.
High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.
Provides codebase-specific context augmentation; choose if your main cost is code understanding, not tool-call volume.
Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebase.
Enterprise codebase intelligence with semantic search and impact analysis; choose for 40M+ LOC repos needing deep analysis.
Enterprise-grade (40m+ LOC) codebase intelligence, zero-setup, local & private Plugin/Skill/Extension or MCP: hybrid semantic search, polyglot dependency graphs, symbol-level impact analysis & call-flow, interactive HTML viewer, cross-project & branch-aware search, DB/API/infra knowledge. 61% less tokens, 84% fewer calls, 37x faster. Cloud in beta.
Graph-based code intelligence engine with 257-language support; choose for multi-repo analysis over context compression.
High-performance code-intelligence engine for AI agents and IDE, supports 257 languages, multi repositories, based on graph, with access via CLI, MCP Server, and API. AI coding agents teammate - expose only needed information, cutting token usage up to 50x. 100% local. Discord: https://discord.gg/39MFHu3J5d
Code search MCP for Claude Code; choose when you want a dedicated code-context search over general context management.
Code search MCP for Claude Code. Make entire codebase the context for any coding agent.
An earlier or more limited way to do the job. Still the right call when you need something small, proven, or CPU-only.
Cross-agent memory layer via MCP; choose if you only need persistent memory and not output compression.
Open-source cross-agent memory layer for coding agents via MCP. Compatible with Claude Code, Codex, Cursor, Windsurf, Gemini CLI, Antigravity, OpenClaw, Hermes Agent, Oh-my-Pi, Pi, Copilot, Kiro, OpenCode, and Trae.
Searchable session history index; choose if you prefer on-demand recall over automatic memory injection.
One memory shared by Claude Code, Codex, Cursor, Copilot CLI, OpenClaw and 28 more coding agents, built from the session history already on disk. A fix found in one agent comes back in any of them, including months of sessions from before you installed it. No LLM, no embeddings, one local Go binary.
File-based persistent planning to combat context loss; choose if your main issue is planning state, not tool output size.
Persistent file-based planning for AI coding agents and long-running tasks. Crash-proof markdown plans, session recovery after /clear and compaction, per-turn re-injection against context rot, deterministic completion gate. Manus-style. Install from npm, the Claude Code plugin marketplace, or npx skills. Codex, Cursor, OpenCode, 60+ agents.
Bring-your-own-database memory for Claude Code; choose for SQL/NoSQL persistence instead of integrated memory.
Persistent memory for Claude Code. Bring your own database.
Memory that records prior attempts and warns against repeats; choose for failure-avoidance memory specifically.
Open-source coding agents memory. Records issues, attempts, fixes and decisions, then warns your agent before it repeats an approach that already failed. Native MCP server for Claude Code, Cursor, Antigravity and Codex. 100% local, no cloud, no telemetry. MIT.
These projects were analysed and named context-mode among their alternatives. The relationship is not symmetric — how context-mode rates them is a separate judgement, made when context-mode is analysed in its own right.
calls context-mode “sandboxed output compression with session memory and multi-platform routing via MCP/hooks.”
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
calls context-mode “Choose it when you need a TypeScript agent-layer with sandboxed tool output and session memory rather than standalone compression.”
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
calls context-mode “choose for sandboxed tool output and session memory rather than a graph-based code index.”
Pre-indexed code knowledge graph, auto syncs on code changes, for Claude Code, Codex, Gemini, Cursor, OpenCode, AntiGravity, Kiro, CoPilot, and Hermes Agent — fewer tokens, fewer tool calls, 100% local