Cost

Reports what Claude Code work cost at list prices, from the per-session metrics - by project, task type and size, model, main session against subagents, and eac

tauqeer13 Updated

File contents


name: cost description: Reports what Claude Code work cost at list prices, from the per-session metrics - by project, task type and size, model, main session against subagents, and each task's estimate against its actual. argument-hint: "[--days N] [--project NAME] [--task SLUG]" disable-model-invocation: true

Run python3 ../../hooks/dw.py cost $ARGUMENTS from this file's folder (default: the last 7 days, every project) and show its Markdown output as it is. Never state a figure the script did not print.

Then add at most 3 lines, only from what the output shows:

  • the biggest single cost (a project, a type and size, or a model);
  • tasks whose actual cost was more than twice their expected cost, by name;
  • one change worth trying, if the numbers point to one (for example a type of task that is sized standard but costs like straightforward work, or subagents costing more than the main session). Say it is a suggestion; do not change any setting.

The figures are list prices from hooks/prices.json. On a subscription plan they show the size of the work, not a bill. Sessions from before plugin 0.4.8 have tokens but no cost.

tauqeer13/claude-dev-workflow commit 93e1cb7a4c

Frequently asked questions

npx get-skill add tauqeer13/cost