bennybennison/agent-toolkit/cost-tracking
Claude Code and agent skill by bennybennison/agent-toolkit
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Awareness of token usage and cost to make informed decisions about model selection, context management, and when to compact.
Install
npx vskill@latest install bennybennison/agent-toolkit/cost-trackingSKILL.md
The same SKILL.md was published earlier as bennybennison/agent-toolkit/cost-tracking.
Skill: Cost Tracking
Awareness of token usage and cost to make informed decisions about model selection, context management, and when to compact.
Principles
- Track per-session — know roughly how many tokens you've used and how much the session costs
- Model routing — use the cheapest model that can handle the task (see
skills/model-routing.md) - Prompt caching — system prompts and instruction files are cached; avoid unnecessary modifications
- Fail-fast on budget — if a task is consuming disproportionate tokens, stop and re-evaluate approach
Cost Awareness Rules
When to Compact
- Context is filling up and the current work is well-defined
- You're about to start a new, unrelated task
- Research phase is complete and implementation is starting
- See
skills/strategic-compact.mdfor what to preserve
When to Use Subagents
- Exploratory research that may consume many tokens
- Tasks that don't need the full conversation context
- Parallel independent subtasks
When to Stop and Re-Evaluate
- Same error has been attempted 3+ times (token waste)
- Exploring broad codebase without narrowing (use targeted search instead)
- Generating large amounts of code that will need to be rewritten
Relative Model Costs (GitHub Copilot Pro+)
| Tier | Multiplier | Models | Use For | |
|---|---|---|---|---|
| Free | 0.33x | Gemini 3 Flash, Claude Haiku 4.5 | Simple lookups, formatting, verification, cleanup | |
| Standard | 1x | Claude Sonnet 4.6, GPT-4.1 | Most development tasks (~90% of work) | |
| Premium | 3x | Claude Opus 4.6 | Architecture decisions, complex debugging, adversarial review | |
| Ultra | 30x | Claude Opus 4.5 | Manual selection only -- exceptional cases |
See skills/model-routing.md for the full decision framework.
Token-Efficient Patterns
- Targeted reads — read specific files/sections, not entire directories
- Grep before read — find the right file first, then read it
- Batch operations — make multiple independent tool calls in parallel
- Avoid re-reading — reference files already in context instead of reading again
- Concise output — shorter responses use fewer output tokens
Anti-Patterns
- Reading every file in a directory "just in case"
- Repeatedly reading the same file across multiple tool calls
- Using premium models for simple tasks
- Generating verbose explanations when the user asked for code
- Re-exploring codebase context that was already gathered
See Also
- model-routing — Model selection with cost awareness
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cost-tracking/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bennybennison/agent-toolkit/cost-tracking)