AltHub

rtk-ai/rtk Alternatives

LLM token optimization / command output compression for AI coding agents

rtk is a CLI proxy written in Rust that reduces LLM token consumption by filtering and compressing command output before it is sent to AI coding agents.

81.2kRustApache-2.0active · last push 22d agoGitHub

Drop-in peers

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

headroomlabs-ai/headroomGitHub

when you need a Python-based compressor proxy that also handles logs, files, and RAG chunks.

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
active24d ago

Same job, different approach

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

yvgude/lean-ctxGitHub

broader context layer with memory/guards, not just output compression.

LeanCTX — Context Intelligence for AI systems.

3.8k
Rust
Apache-2.0
active22d ago
mksglu/context-modeGitHub

sandboxed output compression with session memory and multi-platform routing via MCP/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.8k
TypeScript
NOASSERTION
active23d ago

Listed as an alternative to

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

headroomlabs-ai/headroomGitHub

calls rtk “Choose it when you want a zero-dependency single Rust binary proxy instead of Python/TypeScript libraries.”

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 rtk “choose for a zero-dependency single-binary token-reduction proxy instead of a code graph.”

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
mksglu/context-modeGitHub

calls rtk “CLI proxy reducing token consumption on dev commands; choose it for a transparent proxy rather than MCP-based integration.”

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
affaan-m/ECCGitHub

calls rtk “A narrow token-reduction proxy, addressing only one aspect of performance.”

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242.0kJavaScriptactive