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-tracking

SKILL.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

  1. Track per-session — know roughly how many tokens you've used and how much the session costs
  2. Model routing — use the cheapest model that can handle the task (see skills/model-routing.md)
  3. Prompt caching — system prompts and instruction files are cached; avoid unnecessary modifications
  4. 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.md for 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+)

TierMultiplierModelsUse For
Free0.33xGemini 3 Flash, Claude Haiku 4.5Simple lookups, formatting, verification, cleanup
Standard1xClaude Sonnet 4.6, GPT-4.1Most development tasks (~90% of work)
Premium3xClaude Opus 4.6Architecture decisions, complex debugging, adversarial review
Ultra30xClaude Opus 4.5Manual selection only -- exceptional cases

See skills/model-routing.md for the full decision framework.

Token-Efficient Patterns

  1. Targeted reads — read specific files/sections, not entire directories
  2. Grep before read — find the right file first, then read it
  3. Batch operations — make multiple independent tool calls in parallel
  4. Avoid re-reading — reference files already in context instead of reading again
  5. 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

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bennybennison/agent-toolkit/cost-tracking/badge)](https://verified-skill.com/skills/bennybennison/agent-toolkit/cost-tracking)

Something wrong with this skill or its page? Tell us.