Project · Core contributor
RTK
CLI proxy that cuts the tokens in shell command output by 60-90%
Verbose Git, test, build, or infrastructure output consumes too much context.
CLI proxy that condenses command output to reduce LLM token consumption while preserving essential information.
Key Features
- 60-90% fewer tokens in the output of common CLI commands (RTK’s own per-command benchmark; not a measure of total session tokens)
- Command-aware condensing preserves critical information
- Multi-tool support: git, gh, pnpm, vitest, playwright, and more
- Zero configuration for most commands
- Production-ready, with comprehensive error handling
Supported Commands
Git (59-80% savings)
rtk git status- Condensed repository statusrtk git log- Compact commit historyrtk git diff- Streamlined diffs
GitHub (79-87% savings)
rtk gh pr view- Pull request summariesrtk gh pr checks- CI status overviewrtk gh run list- Workflow runs
Package Managers (70-90% savings)
rtk pnpm list- Dependency treertk pnpm outdated- Update candidates
Tests (90-99% savings)
rtk vitest run- Test results (failures only)rtk playwright test- E2E test summaries
Installation
brew install rtk
Usage
Prefix a CLI command with rtk <command>:
# Before
git status
# 2847 tokens
# After
rtk git status
# 571 tokens (80% reduction)
Run rtk gain to see the savings RTK recorded for the commands it handled. The README covers integration with coding agents and installation on other platforms.
My contribution
I joined Patrick, RTK’s creator, early on because I thought his idea was brilliant. I contributed heavily to the code, then spent more time spreading the word.
I no longer actively contribute to the codebase, but I still follow the project closely. Big up to Patrick, Thomas and Adrien. A great team, and probably relieved that its most talkative supporter is busy elsewhere.
Status
Active development. Used in production for Claude Code workflows.
RTK Pro
For teams looking beyond the local CLI, explore RTK Pro. Its product page describes controls for agent usage, security and costs across a team.