5,066,537 AI resources indexedWorking toward the world’s largest AI resource index.

RTK Token Optimizer

Prefix shell commands with rtk to apply the token-optimizing proxy (60–90% savings on Git, pytest, ruff, Fabric CLI, file ops).

Installable skillMITBy scardoso-luUpdated Oct 31, 2026
INTENDED FORClaude CodeCodexInstall in a listed agent.

instructions.md

---
name: rtk-5876bcbf9ac0
description: Prefix shell commands with rtk to apply the token-optimizing proxy (60–90% savings on Git, pytest, ruff, Fabric CLI, file ops).
---

# RTK Token Optimizer

RTK reduces token consumption 60–90% by filtering and compressing shell output before it reaches the AI.

- **Claude Code:** The Bash hook intercepts commands automatically — no manual prefix needed.
- **Codex:** No hook is available — prefix commands manually with `rtk`.

## Golden Rule

Prefix every shell command with `rtk`. RTK applies its filter if one exists; otherwise the command runs unchanged.

## Key Commands for This Project

| Workflow | Command |
|---|---|
| Git | `rtk git status` · `rtk git log` · `rtk git diff` |
| Python / ruff | `rtk pytest` · `rtk ruff check` · `rtk pip` |
| Fabric helpers | `rtk fabric-vibe notebook ...` · `rtk fabric-vibe workspace ...` · `rtk fabric-vibe pipeline manage ...` |
| Files | `rtk ls` · `rtk find` · `rtk grep` |
| Build | `rtk tsc` · `rtk cargo build` |

## Analytics

- `rtk gain` — token savings summary for this session
- `rtk discover` — scan shell history to find new optimization opportunities
- `rtk session` — adoption tracking

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.