Structure: - Move docs/README.md → .github/docs-pipeline-contract.md (interface contract is not user-facing content) - Rewrite docs/guide/index.md as a proper landing page with RTK intro, flow diagram, and navigation (replaces empty nav stub) - Move configuration.md → getting-started/configuration.md (sidebar order 4, after supported-agents per Adrien's suggestion) Missing content: - Add docs/guide/analytics/discover.md: rtk discover (missed savings analysis) and rtk session (adoption tracking across sessions) - Add uninstall instructions to installation.md (rtk init -g --uninstall, cargo uninstall, brew uninstall) - Add global flags section to what-rtk-covers.md (-u/--ultra-compact, -v/--verbose) - Add rtk smart command to what-rtk-covers.md Files section Agents: - Update supported-agents.md: 10 agents (was 9) - Add OpenClaw (TypeScript plugin, before_tool_call) - Add Mistral Vibe (planned, issue #800) - Fix GitHub Copilot: VS Code = transparent rewrite via PreToolUse, Copilot CLI = deny-with-suggestion (upstream limitation) Signed-off-by: Florian BRUNIAUX <florian@bruniaux.com>
2.3 KiB
title, description, sidebar
| title | description | sidebar | ||
|---|---|---|---|---|
| RTK Documentation | RTK (Rust Token Killer) — reduce LLM token consumption by 60-90% on common dev commands, with zero workflow changes |
|
RTK — Rust Token Killer
RTK is a CLI proxy that sits between your AI assistant and your development tools. It filters command output before it reaches the LLM, keeping only what matters and discarding boilerplate, progress bars, and noise.
Result: 60-90% fewer tokens consumed per command, without changing how you work. You run git status as usual — RTK's hook intercepts it, filters the output, and the LLM sees a compact 3-line summary instead of 40 lines.
How it works
Your AI assistant runs: git status
↓
Hook intercepts (PreToolUse)
↓
rtk git status (transparent rewrite)
↓
Raw output: 40 lines → Filtered: 3 lines
~800 tokens → ~60 tokens (92% saved)
↓
LLM sees the compact output
Zero config changes to your workflow. The hook handles everything automatically.
What RTK optimizes
60+ commands across 9 ecosystems — Git, Cargo/Rust, JavaScript, Python, Go, Ruby, .NET, Docker/Kubernetes, and more. See What RTK Optimizes for the full list with savings percentages.
Get started
- Installation — Install RTK and verify you have the right package
- Quick Start — Connect to your AI assistant in 5 minutes
- Supported Agents — Claude Code, Cursor, Copilot, Gemini, and 7 more
Measure your savings
rtk gain # total savings across all sessions
rtk gain --daily # day-by-day breakdown
rtk gain --weekly # weekly aggregation
See Analytics for export formats and analysis workflows.
Further reading
- Configuration — config.toml, global flags, env vars, tee recovery
- Troubleshooting — common issues and fixes
- ARCHITECTURE.md — system design for contributors