AltHub

mksglu/context-mode Alternatives

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.

23.8kTypeScriptNOASSERTIONactive · last push 22d agoGitHub

Drop-in peers

Same problem, same approach. Swapping one for another is a config change, not a rewrite.

yvgude/lean-ctxGitHub

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
active22d ago
headroomlabs-ai/headroomGitHub

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.

73.3k
Python
Apache-2.0
active23d ago

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

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

81.2k
Rust
Apache-2.0
active22d ago
colbymchenry/codegraphGitHub

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

71.5k
C
MIT
active26d ago
DeusData/codebase-memory-mcpGitHub

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.

39.8k
C
MIT
active2mo ago
trailhq/GraftGitHub

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.

5.0k
TypeScript
MIT
active2mo ago
giancarloerra/SocratiCodeGitHub

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.

3.3k
TypeScript
AGPL-3.0
active22d ago
zzet/gortexGitHub

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

1.6k
Go
Apache-2.0
active22d ago
zilliztech/claude-contextGitHub

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.

12.5k
TypeScript
MIT
active3mo 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.

AVIDS2/memorixGitHub

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.

678
TypeScript
Apache-2.0
active2mo ago
vshulcz/deja-vuGitHub

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.

918
Go
MIT
active21d ago
OthmanAdi/planning-with-filesGitHub

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.

27.0k
Shell
MIT
active23d ago
Avijit07x/claude-dbGitHub

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.

215
TypeScript
Apache-2.0
active1mo ago
riponcm/projectmemGitHub

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.

831
Python
MIT
active28d ago

Listed as an alternative to

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.

rtk-ai/rtkGitHub

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

81.2kRustactive
headroomlabs-ai/headroomGitHub

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.

73.3kPythonactive
colbymchenry/codegraphGitHub

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

71.5kCactive