-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or requestphase-5Phase 5: Advanced Features & PolishPhase 5: Advanced Features & Polish
Description
Summary
Track LLM token usage and estimated costs per task and batch execution.
Problem
No visibility into LLM costs. Users can't optimize or budget for AI usage.
Proposed Solution
Tracking
- Input/output tokens per LLM call
- Aggregate by task, batch, and workspace
- Cost estimation based on model pricing
Storage
- Token counts in run records
- Cost summaries in workspace stats
CLI Commands
cf stats tokens # Workspace token summary
cf stats tokens --task <id> # Per-task breakdown
cf stats costs --period month # Cost reportAcceptance Criteria
- Token counts recorded for all LLM calls
- Per-task and per-batch aggregation
- Cost estimation with configurable pricing
- CLI commands to view usage
- Export to CSV/JSON
Related
- [Phase 5] Implement by_day token usage aggregation in MetricsTracker #120: Performance metrics
- Part of Phase 5 observability
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestphase-5Phase 5: Advanced Features & PolishPhase 5: Advanced Features & Polish