hurricanewrist/rtk — reverse-engineered prompt
Reverse engineered prompt
Build me a command line tool called rtk that helps AI coding tools waste fewer tokens when they run common developer commands.
I want it to sit in front of commands like ls, cat, grep, git status, git diff, test runners, linters, builds, Docker, and GitHub CLI, then return a much shorter but still useful version of the output. It should keep the important errors, changed files, failing tests, summaries, and useful context, while removing repeated noise, huge logs, boilerplate, and unnecessary whitespace.
Make it a fast single Rust binary that people can install easily. Add an init command that sets it up for tools like Claude Code, Cursor, Codex, Gemini CLI, Windsurf, Cline, and similar agents, so their shell commands get automatically rewritten through rtk. Also add a gain command so users can see estimated token savings.
Please include tests, clear help text, install instructions, and sensible behavior when a command is unknown.
Want more depth? Deep Reverse