story-kit: done 301_story_dedicated_token_usage_page_in_web_ui

This commit is contained in:
Dave
2026-03-19 11:36:16 +00:00
parent a6ac6497e9
commit 4545b57160
2 changed files with 21 additions and 26 deletions

View File

@@ -0,0 +1,21 @@
---
name: "Dedicated token usage page in web UI"
---
# Story 301: Dedicated token usage page in web UI
## User Story
As a project owner, I want a dedicated token usage page in the web UI that shows per-story and per-agent cost breakdowns with totals, so that I can analyse where tokens are being spent and identify optimisation opportunities.
## Acceptance Criteria
- [ ] New page/panel accessible from the main navigation
- [ ] Shows a table of all recorded agent sessions with story, agent name, model, token counts, and cost
- [ ] Sortable by cost, story, agent, or date
- [ ] Shows summary totals: total cost, cost by agent type (coder vs QA vs mergemaster), cost by model (opus vs sonnet)
- [ ] Data loads from the token_usage.jsonl log via API endpoint
## Out of Scope
- TBD