Commit 792505c
feat: add daily token usage analyzer workflow (#1557)
* feat: add daily token usage analyzer workflow
Adds an agentic workflow that runs daily to mine token-usage.jsonl
from recent workflow runs, compute per-workflow statistics (tokens,
cache rates, costs, model mix), identify optimization opportunities,
and create a summary issue.
The workflow:
- Discovers completed runs from the past 24 hours
- Downloads agent-artifacts and extracts token-usage.jsonl
- Computes per-workflow stats (cache hit rate, I/O ratio, cost)
- Flags inefficiencies (zero cache hits, high I/O ratios)
- Compares with previous reports for historical trends
- Creates a structured issue with progressive disclosure
Gracefully handles missing data since token tracking is a new feature.
Closes #1551
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Update .github/workflows/token-usage-analyzer.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update .github/workflows/token-usage-analyzer.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update .github/workflows/token-usage-analyzer.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update .github/workflows/token-usage-analyzer.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent d7c812d commit 792505c
File tree
3 files changed
+1346
-0
lines changed- .github
- aw
- workflows
3 files changed
+1346
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
0 commit comments