ClaudeCodeMod

All shelves / Mods / Usage

token-pilot

By Digital-Threads

token-pilot is a Claude Code usage mod by Digital-Threads.

For Token Pilot, which cuts what Claude reads from code, draws tokens saved and the 5-hour and 7-day limits above the prompt, and outlines a big file Read.

DrawsHolds a command

Install

The marketplace name is token-pilot.

In your shell
claude plugin marketplace add https://github.com/Digital-Threads/token-pilot
claude plugin install token-pilot@token-pilot
Open the repo

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
1.0.4
Repo stars
5
Last change
2026-10-06

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Holds a command
  • Sees tool calls

Needs the Claude Code plugin on 2.1.275 or later for the band and the in-process hooks. Older versions keep the command hooks. deny is the default and blocks heavy Grep and Bash patterns. With the module, a whole-file Read of a large code file comes back as that file's outline, and the first line says it is an outline and how to get exact lines. The hooks guide counts a Read as large from 300 lines by default, and that threshold can be changed. The window title becomes a badge of tokens saved for the project. During a turn the band is the savings line, with the 5-hour and 7-day limits, refreshed after each turn. The token-pilot guidance is added to the system prompt once per session and then left unchanged, so the prompt cache keeps it. Claude can call the structural reads the plugin adds, including smart_read, read_symbol, and read_for_edit. The author measured outline savings on public repos: 92 percent across 104 files, from 244,743 raw tokens to 19,764 outline tokens.

The marketplace name is token-pilot. The marketplace source is ./. The tokens saved and the 5-hour and 7-day limits are why this page files it under usage. read-cap refuses a whole-file read over 1,000 lines once, points Claude at an outline of that file, and counts the reads it capped. context-diet replaces a huge tool output with a short digest and the path of a file that still holds the full text, and /diet opens a panel of what it saved. This one returns the outline as the Read result itself, and draws tokens saved beside the 5-hour and 7-day limits.

Demo

The table of what changes when the token-pilot module runs: a large Read returns the file's outline, Edit, Bash, Grep, and Agent keep their rules, the guidance moves into the system prompt, and the status band shows the savings line with the 5-hour and 7-day limits.
Screenshot of the author's GitHub page.

What it hooks into

  • classic.SessionStartA Claude Code event
  • session.startWhen a session starts

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Hooks 13

  • PreToolUse · Readsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-read
  • PreToolUse · Editsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-edit
  • PreToolUse · MultiEditsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-edit
  • PreToolUse · Bashsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-pre-bash
  • PreToolUse · Grepsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-pre-grep
  • PreToolUse · Agent|Tasksh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-pre-task
  • PreToolUse · mcp__(plugin_token-pilot_)?token-pilot__.*sh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-mcp-path
  • PreToolUse · Writesh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-edit
  • SessionStartsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-bootstrap
  • SessionStartsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-session-start
  • UserPromptSubmitsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-user-prompt
  • PostToolUse · Bashsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-post-bash
  • SubagentStopsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-subagent-stop

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
Digital-Threads
Category
Usage
Marketplace
token-pilot
Repo
Digital-Threads/token-pilot
Version
1.0.4
Repo stars
5
Last change
2026-10-06
Language
TypeScript
Files
473

Other mods in Usage

laya-routermarcreichelRoutes the session once from its first prompt to a model and effort, and draws that route on the status line.cache-clockray-amjadDraws a line above the prompt with the time until the prompt cache goes cold, the context fill, and a subagent clock, and has Claude write a handoff first.antiburnantiburnDraws the five-hour and weekly limits above the prompt with reset times and even-pace markers, in the terminal and the desktop Code tab.context-metermidudevDraws how full the context window is at the right end of the band above the prompt: gray, then yellow from 50 percent, then red from 75.sub-metermidudevDraws your 5-hour and weekly subscription usage at the bottom right, on the permission mode's line, with a bar and the time until it resets.token-metermidudevEnds the hint line under the prompt with the last turn's input, output, and cache tokens, and the session's running total, in color.use-haikumidudevRuns a prompt that starts with _ on Haiku, subagents included, and shows it as you type, while it runs, and under the answer.agent-usage-guardrbartoliHolds a commandAsks before a subagent starts, a heavy prompt is sent, or a tool loop runs on, from the 5-hour and weekly usage, and refuses when nobody can answer.optim-jevOqura-aiHas TypeSafe's Jev drop stale tool calls and their output when the session compacts, keeping the rest word for word, and draws a dashboard above the prompt.secondwindorchetronCompresses Bash output of 512 bytes or more through the local secondwind binary, keeps the full text one call away, and draws a pane of the net tokens saved.session-hudbradtraversyDraws a strip above the prompt with the git branch, warned on main, context used against a target you set, and weekly usage, and a Details pane of the rest.time-blamekaranb192Splits each turn's time between Claude, each tool, your approvals, and the rest, under the answer, and /blame opens a panel of the whole session's split.
All 183 in Usage