You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer, I want to see tokens and estimated cost per chat, agent and provider, and set a budget, so that orchestrations do not surprise me.
Acceptance criteria
Usage per message, session and agent, with an editable price table.
Each answer keeps the provider, model and token usage it was produced with, so a chat's spend can be reviewed later without guessing.
The estimated cost (tokens × the local price table) is labelled separately from the actual cost when the provider reports one (e.g. OpenRouter's per-request cost). The two are never mixed in one figure.
Estimated cost should be labeled separately from settled cost. I would keep provider, model, and token usage attached to each chat so the budget can be reviewed without guessing.
Thanks for the suggestion, @roy-tong! Keeping estimated and actual cost separate, and keeping provider, model and token usage on each chat, are now part of this story's acceptance criteria.
Keeping estimate and actual separate is the right call. The test should assert that a retry or fallback keeps the same chat id while changing the actual cost, otherwise the estimate looks accurate by accident. Is that in the acceptance criteria?
Activity
roy-tong commentedon Nov 26, 2026
Estimated cost should be labeled separately from settled cost. I would keep provider, model, and token usage attached to each chat so the budget can be reviewed without guessing.
aMonteSl commentedon Nov 26, 2026
Thanks for the suggestion, @roy-tong! Keeping estimated and actual cost separate, and keeping provider, model and token usage on each chat, are now part of this story's acceptance criteria.
Generated by Claude Code
feat(ide): usage, estimated and reported cost, monthly budget (A13 #202)
Merge pull request #218 from Code-XR-Project/claude/project-thread-0h…
roy-tong commentedon Dec 1, 2026
Keeping estimate and actual separate is the right call. The test should assert that a retry or fallback keeps the same chat id while changing the actual cost, otherwise the estimate looks accurate by accident. Is that in the acceptance criteria?