Skip to content

feat(tokenreport): dashboard, history, estimate, JSON/CSV export modes#292

Merged
azalio merged 1 commit into
mainfrom
feat/token-dashboard
Jun 26, 2026
Merged

feat(tokenreport): dashboard, history, estimate, JSON/CSV export modes#292
azalio merged 1 commit into
mainfrom
feat/token-dashboard

Conversation

@azalio

@azalio azalio commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Closes #289

Summary

Adds five new output modes to /map-tokenreport:

Flag Mode
--dashboard Box-drawing visual dashboard: subtask bar chart, per-agent/model breakdowns, vs-previous comparison
--history [N] Cost/cache-hit trend table over last N sessions
--estimate Weighted cost projection from historical data with range/median/remaining
--json / --csv Structured export for CI pipelines
--finalize Record current snapshot to .map/<branch>/token_history.jsonl

Changes

  • map_step_runner.py.jinja: +6 functions (record_session_snapshot, token_report_json, token_report_csv, token_report_dashboard, token_report_history, token_report_estimate), updated CLI dispatch
  • SKILL.md.jinja: documented all new modes, examples, troubleshooting
  • test_map_token_meter.py: +8 tests covering all new modes
  • Rendered templates: .claude/, .map/, src/mapify_cli/templates/

Verification

  • make check: ruff ✅, mypy ✅, pyright ✅, 2838 passed ✅
  • make check-render: generated trees match templates_src ✅

…modes

- Add token_report_dashboard() with box-drawing visual layout:
  session summary, per-subtask bar chart, per-agent/model breakdowns,
  vs-previous-session comparison
- Add record_session_snapshot() to persist token_history.jsonl
- Add token_report_history() for cost/cache-hit trend analysis
- Add token_report_estimate() for weighted cost projection
- Add token_report_json() / token_report_csv() for CI/export
- Add CLI flags: --dashboard, --history, --json, --csv, --estimate, --finalize
- Update map-tokenreport SKILL.md with new modes documentation
- Add 8 comprehensive tests for all output modes

Closes #289
@azalio azalio merged commit 911e730 into main Jun 26, 2026
6 checks passed
@azalio azalio deleted the feat/token-dashboard branch June 26, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Token accounting dashboard: visualize per-agent cost, cache-hit ratio, trends over time

1 participant