AltHub

yvgude/lean-ctx Alternatives

AI context gateway / context engineering

LeanCTX is a local context gateway that sits between AI coding tools and their data sources, selecting task-relevant context, applying access/content controls, and recording delivery evidence via CLI, MCP, hooks, and proxy paths.

4.0kRustApache-2.0active · last push 5d agoGitHub

Same job, different approach

Solves the same problem with a different architecture or at a different layer. Expect to rewrite the integration.

rtk-ai/rtkGitHub

Choose it when token bloat comes from shell command output and you want a zero-dependency Rust proxy rather than a context-selection layer with policy and evidence.

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

81.2k
Rust
Apache-2.0
active2mo ago
headroomlabs-ai/headroomGitHub

Choose it when the bloat is tool logs, JSON and RAG chunks and you want a compression library/proxy rather than selection plus controls and audit.

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.

73.3k
Python
Apache-2.0
active2mo ago
DeusData/codebase-memory-mcpGitHub

Choose it when you want code, docs and infra joined in one persistable graph with change-aware test selection instead of a context firewall.

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.

39.8k
C
MIT
active3mo ago
mksglu/context-modeGitHub

Choose it when you want a Claude Code plugin that parks bulky tool output in SQLite and pulls it back via FTS5, without running a proxy.

Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing across 17 platforms via MCP + hooks.

23.8k
TypeScript
NOASSERTION
active2mo ago
trailhq/GraftGitHub

Choose it for low-setup codebase indexing when you don't need the evidence trail, hooks or policy controls the seed offers.

Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebase.

5.0k
TypeScript
MIT
active3mo ago
giancarloerra/SocratiCodeGitHub

Choose it for 40M-LOC monorepos needing hybrid semantic search and call graphs, at the cost of AGPL-3.0 and a TypeScript runtime.

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.

3.3k
TypeScript
AGPL-3.0
active2mo ago
colbymchenry/codegraphGitHub

Choose it for a pre-indexed, auto-syncing code graph when your need is navigation and fewer tool calls rather than governance of what context is delivered.

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

71.5k
C
MIT
active2mo ago
zzet/gortexGitHub

Choose it for 257-language code intelligence exposed over CLI/MCP/API in Go, if you only need retrieval and not content filters or budgets.

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

1.6k
Go
Apache-2.0
active2mo ago
Graphify-Labs/graphifyGitHub

Choose it when PDFs, SQL schemas and docs must land in the same graph as code, and you can accept a skill-driven workflow instead of a gateway.

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

119.7k
Python
Apache-2.0
active2mo ago
jgravelle/jcodemunch-mcpGitHub

Choose it when you want symbol-level fetches instead of whole-file reads to cut lookup tokens, with a narrower scope than full context governance.

Cut AI token costs 95%+ on code exploration. The leading MCP server for precise, symbol-level GitHub code retrieval via tree-sitter AST. Works with Claude Code, Cursor & any MCP client. 313B+ tokens saved.

2.7k
Python
NOASSERTION
active2mo ago
aoci-spec/aoci-codeGitHub

Choose it for a Git-versioned repository index agents must read before editing, written in Go and local-first.

A persistent, Git-versioned map of your whole codebase and database schema that coding agents read before they touch anything. Local-first MCP server + CLI in Go: a governed repository index of code knowledge that gives Claude Code, Codex, Cursor, and opencode long-term context, memory, and code intelligence.

2.7k
Go
NOASSERTION
active2d ago

Older generation, or narrower

An earlier or more limited way to do the job. Still the right call when you need something small, proven, or CPU-only.

zilliztech/claude-contextGitHub

Choose it for plain semantic code search only, accepting the extra vector-DB dependency and no control or audit features.

Code search MCP for Claude Code. Make entire codebase the context for any coding agent.

12.5k
TypeScript
MIT
active4mo ago
kunal12203/GrapeRootGitHub

Choose it for a small PowerShell-based MCP graph memory on Windows, but you give up policy enforcement and delivery evidence.

Compounding Context for AI Coding Assistants — MCP graph engine for Claude Code, Cursor, Copilot, Gemini, OpenCode

1.0k
PowerShell
Apache-2.0
active3mo ago
0xK3vin/MegaMemoryGitHub

A persistent project memory MCP that stores notes for agents but adds no context selection controls or audit trail.

Persistent project knowledge graph for coding agents. MCP server with semantic search, in-process embeddings, and web explorer.

737
TypeScript
MIT
slowing7mo ago
AVIDS2/memorixGitHub

A cross-agent memory MCP that stores and shares context but enforces no permissions, budgets or evidence.

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.

678
TypeScript
Apache-2.0
active3mo ago

Listed as an alternative to

These projects were analysed and named lean-ctx among their alternatives. The relationship is not symmetric — how lean-ctx rates them is a separate judgement, made when lean-ctx is analysed in its own right.

mksglu/context-modeGitHub

calls lean-ctx “Rust binary with the same context control and memory; choose it if you prefer a lightweight standalone over TypeScript hooks.”

Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing across 17 platforms via MCP + hooks.

23.8kTypeScriptactive
rtk-ai/rtkGitHub

calls lean-ctx “broader context layer with memory/guards, not just output compression.”

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

81.2kRustactive
headroomlabs-ai/headroomGitHub

calls lean-ctx “Choose it when you want a single Rust binary that filters and remembers context instead of a Python/TS compression library.”

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.

73.3kPythonactive
colbymchenry/codegraphGitHub

calls lean-ctx “choose if you need an agent context guard/memory layer with permissions rather than graph indexing.”

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

71.5kCactive