Files
manual_slop/conductor/tracks/cost_token_analytics_20260306/spec.md
2026-03-06 14:52:10 -05:00

588 B

Track Specification: Cost & Token Analytics Panel

Overview

Real-time cost tracking panel for API usage by model and tier.

Current State Audit

Already Implemented

  • cost_tracker.py with MODEL_PRICING
  • estimate_cost() function
  • Token tracking in ai_client.py

Gaps to Fill

  • No GUI panel for cost display
  • No session totals

Goals

  • Cost per model display
  • Session totals
  • Breakdown by tier

Functional Requirements

  • Real-time cost updates
  • Per-model breakdown
  • Tier breakdown

Non-Functional Requirements

  • <10ms update latency
  • Clear visual formatting