What is RTK?
RTK filters and compresses command output before it enters an agent’s context. It formats common development commands more compactly so the agent reads less repetitive terminal output.
Edited by AhaFrame · Definition source: Official project ↗
How it works
RTK targets token-heavy shell output in coding-agent workflows. Output compression can save context but also hide diagnostics when troubleshooting.
Core features
Compact output for common development commands
Filtering for Git, search, builds and test output
Agent-agnostic native command-line tool
Usage estimates for reduced shell-output volume
Feature reference: Official documentation ↗
What can you use it for?
- Reduce verbose build/test output in long agent sessions
- Compact repository exploration output
- Compare filtered and original command results
Your first guided walkthrough
A supported terminal platform; integration with the shell commands your agent runs.
A repeatable test or lint command with captured original output.
- Check the README for supported shell integrations and exclusions.
- Run the exact command without RTK and archive stdout, stderr and exit code.
- Repeat through RTK and compare useful diagnostics, not just output size.
- Disable compression for failure cases where meaningful context is lost.
Use the same failing test suite as input, then locate the failing assertion in both outputs.
EXPECTED RESULT · VERIFY INDEPENDENTLYBefore/after output sizes with preservation of the correct failure diagnosis.
Editorial guide authored: 2026-10-27. No independent functionality test.
Pricing & running costs
Apache-2.0 software. It does not replace your model subscription or guarantee a particular bill reduction.
Check official pricing details ↗Pricing checked 2026-10-27. Confirm currency, billing period, included usage and taxes on the official page.
License & limitations
License applies to this project; connected models and services have separate terms.
- Shell-output reduction is not the same percentage reduction in the entire model bill.
- Token counts are estimates; filtering may remove context needed for a particular task.
Frequently asked questions
Does it compress all model tokens?
No. Its documented savings primarily concern command output before the agent reads it.
Is the reported token count exact?
The project documents a byte-based estimate rather than a full tokenizer.
Official links & sources
Based on the official sources above. Use cases are editorial examples; source checks are not independent functional tests.
Open upstream repository ↗