rtk-ai/rtk

Description: 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 ↓

Summary Information

Updated 37 minutes ago
Added to GitGenius on April 23rd, 2026
Created on January 22nd, 2026
Open Issues & Pull Requests: 1,713 (+1)
Number of forks: 4,544
Total Stargazers: 72,827 (+16)
Total Subscribers: 184 (+0)

Issue Activity (beta)

Open issues: 831
New in 7 days: 53
Closed in 7 days: 10
Avg open age: 34 days
Stale 30+ days: 501
Stale 90+ days: 0

Recent activity

Opened in 7 days: 49
Closed in 7 days: 10
Comments in 7 days: 49
Events in 7 days: 126

Top labels

  • area:cli (762)
  • bug (623)
  • priority:medium (438)
  • enhancement (427)
  • help wanted (427)
  • good first issue (317)
  • priority:high (296)
  • priority:low (220)

Repository Insights (GitGenius)

Median issue/PR response: 0.3 hours
Mean response time: 2.1 days
90th percentile: 6.3 days
Tracked items: 1,247

Most active contributors

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.

According to GitGenius tracking data, the repository has grown to 68,490 stargazers as of July 2026, with consistent community engagement. The project maintains a median issue and pull request response latency of 0.7 hours across 1,119 tracked items, indicating active maintenance. The most active contributor, pszymkowiak, has logged 6,168 events, with additional significant contributions from aeppling and FlorianBruniaux. The most frequently tagged issues relate to CLI functionality (652 items), bug reports (545 items), and medium-priority work (404 items). 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.

rtk
by
rtk-airtk-ai/rtk

Repository Details

Fetching additional details & charts...