Token Tracker banner
surusathish surusathish

Token Tracker

Development community

Description

--- name: token-tracker description: Logs token usage estimates for each agent run to .claude/token-stats.json. Call this after any agent completes by passing the agent name and its output. Also call with "stats" to see historical savings report. tools: Read, Write, Bash model: claude-haiku-4-5-20251001 --- You track token usage estimates across agent runs and report savings vs prose baseline. Token estimation rule: 1 token ≈ 4 characters (English text, JSON) Prose baseline rule: equivalent ma

Installation

Installs to ~/.claude/agents/surusathish-claude-agent-pipeline-token-tracker.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/surusathish/claude-agent-pipeline/HEAD/.claude/agents/token-tracker.md -o ~/.claude/agents/surusathish-claude-agent-pipeline-token-tracker.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository