story-kit: create 296_story_track_per_agent_token_usage_for_cost_visibility_and_optimisation

This commit is contained in:
Dave
2026-03-19 09:03:46 +00:00
parent 1d20cfc679
commit 11afd21f17

View File

@@ -10,7 +10,6 @@ As a project owner, I want to see how many tokens each agent consumes per story,
## Acceptance Criteria ## Acceptance Criteria
- [ ] Research existing libraries/APIs for monitoring Claude API token usage per session (check Claude Code output, Anthropic SDK usage events, or third-party tools)
- [ ] Implement per-agent token tracking that captures input tokens, output tokens, and cache tokens for each agent run - [ ] Implement per-agent token tracking that captures input tokens, output tokens, and cache tokens for each agent run
- [ ] Token usage is recorded per story and per agent (e.g. coder-1 on story 293 used X tokens) - [ ] Token usage is recorded per story and per agent (e.g. coder-1 on story 293 used X tokens)
- [ ] Running totals are visible — either via MCP tool, web UI, or both - [ ] Running totals are visible — either via MCP tool, web UI, or both