All shelves / Mods / Usage
rtk-gain
By rtk-ai
rtk-gain is a Claude Code usage mod by rtk-ai.
Draws what RTK saves while Claude works: a band above the prompt, the saving in the spinner, and a /rtk-gain pane where a viking breaks the saved tokens.
Draws
Install
The marketplace name is rtk.
/plugin marketplace add rtk-ai/rtk-gain-mod /plugin install rtk-gain@rtk
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.5.0
- License
- Apache-2.0
- Repo stars
- 6
- Last change
- 2026-10-09
What it can reach
- Draws in the session
- Reads usage or context figures
- Sees tool calls
- Calls another program on this machine
Claude Code 2.1.287 or later in the terminal, 2.1.286 in the desktop app, rtk on your PATH, and the RTK hook installed with rtk init -g; without the hook no command goes through RTK, and the pane says so. The band and the spinner saving start at once. Type /rtk-gain to open the pane, which does not open on its own; /rtk-gain again, or Esc, closes it. The viking shows in the terminal only. For one session without installing: git clone https://github.com/rtk-ai/rtk-gain-mod.git, then claude --plugin-dir ./rtk-gain-mod. Two sessions on one project mix their numbers, and RTK counts bytes / 4 with no tokenizer, so absolute values are approximate, as the pane says. Nothing draws in the VS Code extension's panel or in a cloud session.
The marketplace name is rtk, and it lists this one plugin, from the repository. rtk-ai also makes vox. The tokens RTK keeps out of the context are why this page files it under usage. output-diet trims long shell, search, and subagent results itself and counts the savings on the status line. context-bar draws the context window as one stacked bar, a color per category. This one trims nothing itself: RTK's hook rewrites the commands, and after each one the mod reads rtk gain again for that command's saving and the session's, beside a context bar that adds what RTK kept out. With RTK's LLM proxy running, the pane adds what the proxy removed from requests, read from its database with sqlite3.
Demo

What it hooks into
session.startWhen a session startstool.callAround a tool call, where it can hold oneBashturn.startWhen Claude starts a turnturn.completeWhen a turn endscommand.runWhen you run its slash command/rtk-gainui.closeWhen its pane closesui.renderDraws into the sessionPaneAbovePromptSpinner
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/rtk-gain
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- rtk-ai
- Category
- Usage
- Marketplace
- rtk
- Version
- 0.5.0
- License
- Apache-2.0
- Repo stars
- 6
- Last change
- 2026-10-09
- Language
- JavaScript
- Files
- 23