← ClaudeAtlas

rtk-token-optimizerlisted

RTK CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Use when running git, cargo, npm, pytest, or any CLI tool inside an AI coding session. Rewrites verbose command outputs to compact summaries before they reach the context window. Supports Antigravity (Gemini), Claude Code, Cursor, Codex, Copilot, and 10+ other agents. Source: https://github.com/rtk-ai/rtk — offline-capable single Rust binary, zero deps.
williamcorrea23/sap-router-skill · ★ 0 · AI & Automation · score 69
Install: claude install-skill williamcorrea23/sap-router-skill
# RTK Token Optimizer Skill **RTK** is a CLI proxy that intercepts shell commands and returns compact, LLM-optimized summaries instead of raw verbose output — saving 60-90% of token consumption. ## Local Reference ``` sap-router-skill\bundled\tools\rtk\ ``` ## What RTK Does RTK wraps common dev commands and returns only what matters to the LLM: | Command | Without RTK | With RTK | |---------|------------|----------| | `git log --oneline -50` | 50 lines of SHAs + messages | 10-line summary | | `cargo test` | 200+ lines of test output | `PASSED: 47/47` or compact failure | | `npm install` | 300+ lines of progress | `installed 142 packages` | | `pytest -v` | Full verbose output | Summary table | ## Installation (Antigravity / Gemini) RTK supports **Google Antigravity** via `.agents/rules/antigravity-rtk-rules.md`: ```bash # Install RTK binary (Windows - via cargo) cargo install rtk # Or download pre-built binary # https://github.com/rtk-ai/rtk/releases # Initialize for Antigravity rtk init --agent antigravity ``` This creates `.agents/rules/antigravity-rtk-rules.md` in your project, which instructs Antigravity to route shell commands through `rtk`. ## Initialization for All Supported Agents ```bash rtk init -g # Claude Code (global) rtk init -g --gemini # Gemini CLI (global) rtk init -g --copilot # GitHub Copilot (global) rtk init -g --agent cursor # Cursor (global) rtk init -g --codex # Codex (global) rtk init --