From rtk-gain
RTK's token savings, live in Claude Code: animated bars for command savings and the context breakdown, with rtk proxy support
7 events · 14 calls
Ships in rtk-gain. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callprocess.runfs.existsenv.getsettings.readEach event it registers a hook on, with the matcher when it sets one
session.starttool.call{tool=Bash}turn.startturn.completecommand.run{command=rtk-gain}ui.closeui.render{component=Pane}ui.render{component=AbovePrompt}ui.render{component=Spinner}Every mods API method its source calls, by namespace
aftereverynowregistergetexistsrunsurfacesusagereadcloseinvalidateopenresolveHOMELANGLC_ALLLC_MESSAGESRTK_GAIN_ANIMATIONRTK_GAIN_LANGRTK_GAIN_VIKINGRTK_PROXY_DBXDG_CONFIG_HOMEWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.js (written ./register.js)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub rtk-ai/rtk-gain-mod --plugin rtk-gain