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.
claude plugin marketplace add https://github.com/Digital-Threads/token-pilot claude plugin install token-pilot@token-pilot
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

What it hooks into
classic.SessionStartA Claude Code eventsession.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-readPreToolUse · Editsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-editPreToolUse · MultiEditsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-editPreToolUse · Bashsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-pre-bashPreToolUse · Grepsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-pre-grepPreToolUse · Agent|Tasksh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-pre-taskPreToolUse · mcp__(plugin_token-pilot_)?token-pilot__.*sh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-mcp-pathPreToolUse · Writesh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-editSessionStartsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-bootstrapSessionStartsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-session-startUserPromptSubmitsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-user-promptPostToolUse · Bashsh "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" hook-post-bashSubagentStopsh "${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
- Version
- 1.0.4
- Repo stars
- 5
- Last change
- 2026-10-06
- Language
- TypeScript
- Files
- 473