rtk

Proxy and filter command output to reduce LLM token consumption.

Updated Jan 14, 2026
One-click install
npx skills add https://github.com/oornnery/skills --skill rtk-oornnery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rtk
Source: https://github.com/oornnery/skills/tree/main/skills/rtk
Command: npx skills add https://github.com/oornnery/skills --skill rtk-oornnery

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

RTK acts as a fast, self-contained CLI proxy that reduces LLM token consumption by intercepting command output and returning only what's essential for the agent context window. This keeps logs compact and preserves exit codes for CI/CD, while offering a fail-safe fallback to raw output if filtering misbehaves.

Core Features & Use Cases

  • Single Rust binary, zero runtime dependencies
  • <10ms overhead per command
  • Fail-safe: falls back to raw output if the filter breaks
  • Preserves exit codes for CI/CD compatibility

Use Case: In a large development workflow, RTK minimizes token usage while keeping commands auditable and compatible with automated pipelines.

Quick Start

Install RTK with your preferred method and run rtk init -g to enable global command rewriting.

Frequently Asked Questions about rtk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce LLM token consumption when proxying CLI command outputs?

Reduce LLM token consumption by intercepting shell command outputs with a CLI proxy that filters results to return only essential context. This keeps logs compact and preserves exit codes for CI/CD compatibility.

What is the best way to minimize token usage in development workflows using Rust?

The best way to minimize token usage is using a self-contained Rust binary CLI proxy. It intercepts shell commands, Git operations, test runners, linters, and build tools, returning only essential output for the agent context window.

Does filtering command output for token savings break CI/CD pipeline exit codes?

Filtering command output for token savings does not break CI/CD pipelines because the proxy preserves original exit codes. It also includes a fail-safe fallback to raw output if the filtering mechanism misbehaves.

Can I use a CLI proxy to filter Git operations and test runner outputs without adding latency?

Yes, you can filter Git operations and test runner outputs without noticeable latency. The self-contained Rust binary adds sub-10ms overhead per command and has zero runtime dependencies, ensuring fast execution.

How do I set up global command rewriting to intercept shell commands for an LLM agent?

To set up global command rewriting, install the CLI proxy binary and run the initialization command with the global flag. This enables automatic interception and filtering of shell commands across your development environment.

What happens when a CLI proxy filter breaks during a build tool operation?

When a CLI proxy filter breaks during a build tool operation, the tool automatically falls back to returning the raw output. This fail-safe mechanism ensures you never lose command results or auditability.