Token Tracker — Development agent for Claude Code
Logs token usage estimates for each agent run to .claude/token-stats.json.
How to install Token Tracker
Installs to ~/.claude/agents/surusathish-claude-agent-pipeline-token-tracker.md
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.
What Token Tracker does
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
Alternatives in Development
- Gitnexus PR Facts Historian — GitNexus PR facts and repository-history investigator 45.8k ★
- Correction Sweep — Find every note restating a corrected fact and classify each as authoritative, restatement, or historical 4.6k ★
- Lumen Learning — Use this agent when the user wants to capture knowledge for later retention, review spaced-repetition facts, q 523 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Usage Reporter
Reads real Claude Code usage from ~/.claude/stats-cache.json. Reports daily/weekly token usage by model, cache
Config Estimates
crux-config stage S5 (estimates). Asks whether the team estimates tickets and, only when the tracker has no na
Cost Estimator
Estimates Cloudflare Workers costs before deploying. Reads wrangler.toml, counts D1 tables/rows, estimates KV/
Notes Scribe
Reads the build log, run logs, and validation stats, and drafts the NOTES.md write-up the assignment asks for.
Pipeline Analyst
Use to see what is working: weekly review, funnel by agent and by source, stuck agents, usage and budget. Trig
Auto Improve Meta Agent
Background meta-agent that analyzes failure traces from SmartMemory and proposes targeted improvements to Skil
Related Skills
Estimate Assistant
Generate accurate task estimates using historical data, complexity analysis, and team velocity metrics
Aegis Activity Logger
Append-only JSONL audit log of every Edit/Write/Bash mutation, one file per UTC day. Provides historical repla
Project Hello W Name
by disler - Creates customizable greeting components with name input, demonstrating argument passing, componen