What do you want to do?
3 use cases
-
Cut your coding agent's token use from command output
Install RTK and hook it into your agent so command output is compressed before it hits context.
View prompt
Install rtk-ai/rtk, run `rtk init -g` for Claude Code, do a session with tests and git commands, then report `rtk gain` savings.
-
Set up RTK for Codex, Gemini CLI or Cursor
Use the agent-specific init flags to add RTK hooks to other agents.
View prompt
Configure RTK for <agent> with the matching rtk init flag and confirm the hook is active by running a command and checking `rtk gain`.
-
Use the Apache-only edition for license-sensitive teams
Pick rtk-oss for hooks and filters under Apache-2.0 only.
- REPO
rtk-ai/rtk - Software and DevOps
- Beginner
View prompt
Install the rtk-oss edition, configure it for <agent>, and confirm `rtk --version` reports the OSS build.
- REPO
Quick start with RTK
- Check you have what it needs: macOS, Linux or Windows; A supported coding agent.
- Open rtk-ai/rtk on GitHub and read the README and license.
- Install with
brew install rtk(orwinget install rtk-ai.rtk) - Hook it into Claude Code with
rtk init -g - Check with
rtk --versionandrtk gain - Work as usual and watch the savings
These steps come from our top use case, Cut your coding agent's token use from command output, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for rtk-ai/rtk
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forDevelopers using coding agents who want to cut token usage from noisy command output.
- Why it is hot84k stars
- LanguageRust
- Sourcegithub.com/rtk-ai/rtk · Back to Hot repos
Requirements
- macOS, Linux or Windows
- A supported coding agent
Add this badge to your README
Maintain RTK? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/rtk-ai-rtk/?utm_source=github&utm_medium=badge&utm_campaign=rtk-ai-rtk)
HTML
<a href="https://dedupedai.com/use-cases/rtk-ai-rtk/?utm_source=github&utm_medium=badge&utm_campaign=rtk-ai-rtk"><img src="https://dedupedai.com/badge/rtk-ai/rtk.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about RTK
What is RTK?
RTK is a single Rust binary that filters and compresses the output of 100 plus common dev commands before it reaches an AI coding agent's context, with hooks for many agents and a savings dashboard. It is an open-source project on GitHub: https://github.com/rtk-ai/rtk.
Who is RTK for?
Developers using coding agents who want to cut token usage from noisy command output.
What can I do with RTK?
3 use cases so far, for example: Cut your coding agent's token use from command output; Set up RTK for Codex, Gemini CLI or Cursor; Use the Apache-only edition for license-sensitive teams. Each has steps and a copy-paste agent prompt.
What do I need to run RTK?
macOS, Linux or Windows; A supported coding agent.
What are alternatives to RTK?
Other hot AI repos in Software and DevOps: Deep Infer, Harness2, Orca, Opencode, Graphify.
Is RTK safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.