rtk-ai/rtk

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

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 7 minutes ago
Added to GitGenius on April 23rd, 2026
Created on January 22nd, 2026
Open Issues & Pull Requests: 1,948 (+0)
GitHub issues: Enabled
Number of forks: 5,008
Total Stargazers: 79,101 (+10)
Total Subscribers: 214 (+1)

Repository Insights (GitGenius)

Median issue/PR response: 0.3 hours
Mean response time: 2.8 days
90th percentile: 9.8 days
Tracked items: 1,489

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 94% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. 32% of tracked open issues have had no activity in three months. Only 4% of issues opened in the past year have been closed. Three people close 78% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 905
New in 7 days: 50
Closed in 7 days: 182
Avg open age: 35 days
Stale 30+ days: 637
Stale 90+ days: 293

Recent activity

Opened in 7 days: 44
Closed in 7 days: 175
Comments in 7 days: 227
Events in 7 days: 452

Top labels

  • area:cli (947)
  • bug (787)
  • priority:medium (515)
  • help wanted (481)
  • enhancement (469)
  • priority:high (410)
  • good first issue (369)
  • priority:low (245)

Detailed Description

RTK is a high-performance CLI proxy written in Rust that reduces LLM token consumption by 60-90% on common developer commands. It operates as a single binary with zero dependencies and is designed to integrate seamlessly with AI coding agents like Claude Code, GitHub Copilot, Cursor, and 11 other supported tools. The core functionality filters and compresses command outputs before they reach an LLM's context window, applying four optimization strategies: smart filtering to remove noise like comments and whitespace, grouping to aggregate similar items, truncation to preserve relevant context while cutting redundancy, and deduplication to collapse repeated log lines with counts.

The repository demonstrates substantial real-world impact through documented token savings. In a typical 30-minute Claude Code session on a medium-sized TypeScript or Rust project, RTK achieves approximately 80% total token reduction across common operations. Individual commands show dramatic improvements: git operations save 75-92% of tokens, test runners achieve 90% savings, file listing and grep operations save 80%, and build tool output like cargo test and npm test see 90% reductions. The tool supports over 100 commands across multiple categories including file operations, git workflows, GitHub CLI, test runners, build and lint tools, package managers, AWS CLI, container tools, and infrastructure-as-code utilities.

RTK's most effective deployment method is through an auto-rewrite hook that transparently intercepts Bash commands and rewrites them to rtk equivalents before execution, achieving 100% adoption across conversations and subagents with zero token overhead. The hook system works natively on Windows as of version 0.37.2, running as a native binary command rather than requiring Unix shell dependencies. Installation is straightforward through Homebrew, cargo, or pre-built binaries for macOS, Linux, and Windows platforms.

The repository overlaps with contributors from dbt-labs/dbt-core, anthropics/claude-code, and other projects, suggesting integration within a broader ecosystem of developer tools.

Configuration is managed through a TOML file located at ~/.config/rtk/config.toml on Linux and macOS, with macOS also supporting the standard Application Support directory. When commands fail, RTK preserves full unfiltered output so LLMs can read results without re-execution. The project is licensed under Apache 2.0 and maintains comprehensive documentation including a full user guide at rtk-ai.app/guide, architecture documentation, contribution guidelines, and security policies. The repository supports multiple languages in its README, including French, Chinese, Japanese, Korean, Spanish, and Portuguese, reflecting its international user base.