
This is basically a cheat sheet for keeping Claude Code sessions efficient and cheap. It breaks down what burns through tokens fast (file reads, spawning subagents, broad searches) and gives you rough budgets for different task types, like $0.50 for a bug fix or $5 for a refactor. The tool call budgets are especially handy since you can tell when you're halfway through your runway and should wrap up. Most useful if you're running lots of sessions or working on a tight budget and want to know where the money actually goes. The optimization list is practical stuff like reading files selectively and batching operations instead of spamming individual calls.
$ npx -y skills add rohitg00/pro-workflow --skill cost-tracker --agent claude-codeInstalls into .claude/skills of the current project.
Monitor and optimize Claude Code session costs.
Use when:
# Session cost is shown at the end of each session
# Mid-session: check the status bar or run /cost
| Operation | Relative Cost | Optimization |
|---|---|---|
| Large file reads | High | Use offset/limit params |
| Broad grep searches | Medium | Scope to specific dirs |
| Subagent spawning | High (new context) | Reuse agents via SendMessage |
| Repeated tool calls | Cumulative | Batch operations |
| MCP tool calls | Variable | Minimize round-trips |
| Model selection | 3-10x difference | Use haiku for simple tasks |
| Task | Typical Cost | Budget Alert |
|---|---|---|
| Bug fix | $0.10-0.50 | $1.00 |
| Feature (small) | $0.50-2.00 | $3.00 |
| Feature (large) | $2.00-8.00 | $10.00 |
| Refactor | $1.00-5.00 | $7.00 |
| Code review | $0.20-1.00 | $2.00 |
Set explicit budgets by task complexity:
Sponsors