Claude Code Token Watch — Development skill for Claude Code
Claude Code hooks that warn when a session starts burning tokens on repeated Reads, recursive greps, or WebFetch streaks.
How to install Claude Code Token Watch
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open itchernetski/claude-code-token-watch and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Token Watch does
Claude Code hooks that warn when a session starts burning tokens on repeated Reads, recursive greps, or WebFetch streaks.
Alternatives in Development
- Reddit Fetch — Fetches Reddit content via Gemini CLI when WebFetch is blocked or returns 403 errors 6.5k ★
- Code Review Graph — Local knowledge graph for Claude Code 3.7k ★
- Doctor — Environment diagnostics with interactive fixes — providers, auth, RTK, hooks, token optimization 2.8k ★
README
Claude Code Token Watch
Three Claude Code hooks that warn when a session starts burning tokens on the same anti-patterns. The hooks don't block anything — they inject a system message that the model sees and usually self-corrects on the next turn (delegating to a sub-agent, switching to `Edit` instead of re-reading, etc).
Tested on macOS only. Should work on Linux (uses `bash`, `jq`). Windows is not supported.
What it does
| Hook | Triggers when | Hint it gives |
|---|---|---|
token-watch-read.sh |
The same file is Read 3+ times in one session |
Suggests keeping the file's structure in context and using Edit without re-reading |
token-watch-bash.sh |
3+ recursive searches per session (grep -r, find ... -name, rg ...) |
Suggests delegating the search to an Explore sub-agent |
token-watch-webfetch.sh |
3+ WebFetch calls per session |
Suggests delegating browsing to a general-purpose sub-agent |
Why
On a Claude subscription (Pro/Max), the 5-hour rate limit is consumed by tokens, and tokens are consumed by everything that lands in the conversation context — files, search results, fetched pages, history.
Three patterns disproportionately blow up context:
- Re-reading the same file — each
Readships the whole file again, even if it's already in cache. - Recursive
grep/findfrom the main thread — every match line ends up in the main context. - Long sequences of
WebFetch— each fetched page lands in the main context as a wall of HTML/markdown.
These hooks count occurrences per session and, after the third hit, post a system message. The model treats system messages as instructions, so on the next turn it usually self-corrects without you having to interrupt and remind it.
Prerequisites
- Claude Code with hooks support
bashjq—brew install jq(macOS) orapt install jq(Linux)
Installation
1. Clone and copy hooks
git clone https://github.
Related Skills
Cc Waste
Scans your local Claude Code session logs and generates a self-contained HTML report of token usage, cost, and
LeanKG
LeanKG: Stop Burning Tokens. Start Coding Lean.
Cc Agents Kit
Claude Code plugin marketplace. guard-hooks: five defensive hooks that block dangerous shell commands and secr
Spinwatch
Alarm when your coding agent spins instead of works — catches repeated identical tool calls and endless talk-w
Claude Session Recall
A Claude Code skill that reads your session's own transcript, so a fact that arrived through a compaction summ
Claude Token Lens
See exactly what's burning your Claude Code quota — live. Per-tool, per-agent, per-skill, per-MCP attribution.
Related Agents
Context Auditor
Use proactively when the user wants to cut Claude Code token cost or asks "why is this session so expensive /
System Critic
Adversarial design-system review with fresh context — hunts premature abstraction, domain leaks into primitive
Design System Author
Authors the design token system. Reads palette.json and typography.json, writes canonical tokens.json (W3C DTC