01 · Terminal output filter
RTK / Rust Token Killer
Like a filter that removes noisy terminal lines before AI reads them. Directly reduces noisy output from common Git, test, lint and build commands.
Runtime: Install the RTK executable separately in each OS environment. Windows PowerShell:
winget install rtk-ai.rtk
macOS/Linux with Homebrew:
brew install rtk
Confirm the correct package and capture a baseline:
rtk --version
rtk gain
Scope: The following recipes use user-wide hook setup (-g), not project-only setup. Read the dry-run output to identify files and preserve existing hooks. A rules-file fallback asks the model to prefer RTK; it is not the same as automatic command rewriting.
Before use: Never replace full logs when details are essential. There is another unrelated `rtk` project: check `rtk gain`.
Compatibility, versions and evidence
| Environment | Status | Qualification |
|---|---|---|
| Claude Code CLI | Documented | Publisher documents the integration; installation and live use not executed in this review. |
| Codex CLI | Documented | Publisher documents the integration; installation and live use not executed in this review. |
| GitHub Copilot CLI | Documented | Publisher documents the integration; installation and live use not executed in this review. |
| VS Code Copilot Chat | Documented | Publisher documents the integration; installation and live use not executed in this review. |
| Copilot app (canvas) | Unverified | This edition has no confirmed setup recipe for this host. |
Reviewed: 2026-11-27 · Package / minimum version: Publisher minimum not established; record installed release before testing. · OS: Windows / macOS / Linux paths depend on host and runtime; no live OS matrix executed.
Evidence: Publisher setup / source · Per-agent hook support and fallback
Execution status: Integration setup not run in this review. Record your actual OS, assistant version, package version and smoke-test result using the validation template below.
Claude Code CLI
Configure
Preview the user-wide setup:
rtk init -g --dry-run
Review the named files, then apply:
rtk init -g
Restart this assistant; inspect its hook manager and complete trust prompts. On Windows confirm your exact RTK release and host support this hook; use the publisher’s WSL or rules fallback if documented for that release.
Prove rewriting
Capture rtk gain, run one supported repository command through the assistant and inspect the actual command in its tool trace:
Run git status in this practice repository without editing files. Show the executed command.
Run rtk gain again. Require both RTK-wrapped command activity and a corresponding new usage entry. If the command was not rewritten, inspect the hook instead of claiming savings.
Codex CLI
Configure
Preview the user-wide setup:
rtk init -g --codex --dry-run
Review the named files, then apply:
rtk init -g --codex
Restart this assistant; inspect its hook manager and complete trust prompts. On Windows confirm your exact RTK release and host support this hook; use the publisher’s WSL or rules fallback if documented for that release.
Prove rewriting
Capture rtk gain, run one supported repository command through the assistant and inspect the actual command in its tool trace:
Run git status in this practice repository without editing files. Show the executed command.
Run rtk gain again. Require both RTK-wrapped command activity and a corresponding new usage entry. If the command was not rewritten, inspect the hook instead of claiming savings.
GitHub Copilot CLI
Configure
Preview the user-wide setup:
rtk init -g --copilot --dry-run
Review the named files, then apply:
rtk init -g --copilot
Restart this assistant; inspect its hook manager and complete trust prompts. On Windows confirm your exact RTK release and host support this hook; use the publisher’s WSL or rules fallback if documented for that release.
Prove rewriting
Capture rtk gain, run one supported repository command through the assistant and inspect the actual command in its tool trace:
Run git status in this practice repository without editing files. Show the executed command.
Run rtk gain again. Require both RTK-wrapped command activity and a corresponding new usage entry. If the command was not rewritten, inspect the hook instead of claiming savings.
VS Code Copilot Chat
Configure
Preview the user-wide setup:
rtk init -g --copilot --dry-run
Review the named files, then apply:
rtk init -g --copilot
Restart this assistant; inspect its hook manager and complete trust prompts. On Windows confirm your exact RTK release and host support this hook; use the publisher’s WSL or rules fallback if documented for that release.
Prove rewriting
Capture rtk gain, run one supported repository command through the assistant and inspect the actual command in its tool trace:
Run git status in this practice repository without editing files. Show the executed command.
Run rtk gain again. Require both RTK-wrapped command activity and a corresponding new usage entry. If the command was not rewritten, inspect the hook instead of claiming savings.
Disable or remove RTK / Rust Token Killer
Record the hook files shown by the dry run. Disable/remove the RTK hook in each configured host, restore only its changes, and confirm ordinary commands work. Consult the publisher’s OS uninstall instructions to remove the executable; retain or erase usage history deliberately.