rtk-ai / rtk

CLI proxy that slashes LLM token costs by 60-90% by compressing shell command outputs before agents read them

正常维护 Apache 2.0 Rust Tracked
84.6k 5.4k 1 小时前
CI
agentic-coding ai-coding anthropic claude-code cli command-line-tool cost-reduction developer-tools llm open-source productivity rust token-optimization

星标趋势

数据积累中,暂无足够数据生成趋势图

AI 分析

项目摘要

RTK is a high-performance CLI proxy that intercepts and compresses shell command outputs before they reach LLM coding agents, reducing token consumption by 60-90%. Implemented as a single Rust binary with zero dependencies, it supports 100+ commands with sub-10ms overhead.

为什么值得关注

With over 83K stars, RTK addresses a critical pain point in agentic coding: the massive token cost of shell command outputs. Its novel proxy approach is language-agnostic, works with any LLM agent, and delivers dramatic cost savings without requiring changes to existing workflows.

优势

  • Dramatic token reduction (60-90%) with minimal latency overhead (<10ms)
  • Single Rust binary with zero dependencies ensures easy deployment and portability
  • Broad command coverage (100+ commands) handles common dev workflows comprehensively
  • Language-agnostic proxy works with any LLM agent (Claude Code, Cursor, etc.) without integration changes

局限性

  • 857 open issues suggests potential stability gaps or incomplete edge-case handling
  • Limited to shell command output optimization; doesn't address other token consumption sources like conversation history or tool definitions

使用场景

  • Reducing API costs for AI coding agents running shell commands
  • Extending effective context window capacity by compressing verbose command outputs
  • Accelerating agent workflows by reducing token processing latency
目标用户: Developers and teams using AI coding agents (Claude Code, Cursor, etc.) who want to reduce costs and improve performance without changing their tools
学习曲线: 低
分析模型:LongCat-2.0 | 分析时间:12 天前