Skip to content

RTK (Rust Token Killer)

RTK is an independent project under the Apache 2.0 license, created and maintained by Patrick Szymkowiak and contributors. It is not part of maestria.

RTK (Rust Token Killer) is a CLI proxy between your AI coding agent and the shell. It intercepts commands, executes them, and filters or compresses the output before it reaches the LLM context window.

Typical token savings range from 60-90% on command output. RTK supports 100+ commands across git, test runners, build tools, package managers, and cloud CLIs, and includes a dedicated OpenCode plugin.

maestria-powered agents run builds, tests, git, and deployment commands through the shell. RTK cuts the token cost of that output, leaving more of the context window for the agent’s own work.

macOS (Homebrew):

Terminal window
brew install rtk

Other platforms: Download the standalone installer from the GitHub releases page.

Run rtk init -g to set up global shell hooks. RTK works with OpenCode, Claude Code, Cursor, Copilot, and other AI coding agents; no per-agent configuration needed.