RTK CLI

A Rust CLI proxy that compacts output from git, tests and other commands so the agent spends fewer tokens reading the terminal

  • 84,886 ★ on the repository
  • Last commit
  • Apache-2.0
CLI

Extended access

Why this level

  • The hook rewrites the agent's shell commands before execution
All reasons and checks

rtk-ai/rtk

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add cli/rtk

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • The hook rewrites the agent's shell commands before execution

This is third-party code. Review the repository files before installing.

What it does

RTK sits between the agent and the shell: a hook rewrites commands like git status into rtk git status, and the agent gets compact output without noise. rtk init wires up a hook or plugin for Claude Code, Copilot, Gemini CLI, Codex, Cursor, Windsurf, Cline and other agents. rtk gain shows how much output was saved. It is a single dependency-free binary installed via Homebrew, winget, a script or Cargo.

Who it is for. For developers whose agent works heavily in the terminal and quickly hits context or subscription limits.

Good fit when

  • The agent often runs git, tests and builds with long output
  • The session context fills up with command noise
  • You want one solution across several agents

Not a fit when

  • The agent mostly reads files with built-in tools rather than bash
  • You need full untrimmed command output for debugging

Example request

Set up RTK for Claude Code and show how many tokens it saved today

Limitations

The hook only applies to Bash calls: Claude Code built-ins such as Read, Grep and Glob bypass it. crates.io has an unrelated rtk package, so install from the git repository when using Cargo.

How to disable. Remove the RTK hook from the agent settings and delete the binary, for example brew uninstall rtk or remove it from ~/.local/bin.

FAQ

Does the agent need to call rtk explicitly?

No, the hook or plugin rewrites commands before they run.

Does it work on Windows?

Yes, there is a winget package and a Windows build; hooks work natively and in WSL.

Discussion

No questions or reviews yet.

CLI tools

A Go CLI proxy that shrinks git, test and build output with YAML filters before it reaches the agent. The author estimates 60-90% token savings

CLIBroad access472Repository stars

A Rust CLI that packs a codebase into one prompt with a file tree, templates and token estimates

CLIExtended access7.7KRepository stars

A Rust SDK for coding agents and the ready-made abstract CLI: REPL, 34 tools, MCP, graph memory, Anthropic and OpenAI, JSON output for CI

CLIBroad access461Repository stars

A tool that cuts an agent's token bill on three axes: terser prose, less speculative code, compressed tool output

CLIExtended access724Repository stars

A Rust binary for agents and the terminal that uses tree-sitter to find a symbol's definition, its calls and file dependencies

MCP serverMinimal access357Repository stars

README in short

The README lists install options: Homebrew, winget, a Linux and macOS script, Cargo from git and prebuilt binaries. Quick start is rtk init with the flag for your agent and a restart. It explains hook-based versus plugin-based agents, the built-in tools limitation and a warning about a same-named package. Apache-2.0 licensed.

README badge

Report a problem

Foxx AIRTK
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.