# Implementation Plan: Cost & Token Analytics Panel (cost_token_analytics_20260306) ## Phase 1: Panel Setup - [ ] Task: Initialize MMA Environment - [ ] Task: Create cost panel structure - WHERE: src/gui_2.py - WHAT: New panel for cost display - HOW: Add _render_cost_panel method - SAFETY: Non-blocking updates ## Phase 2: Cost Calculations - [ ] Task: Integrate cost_tracker - WHERE: src/gui_2.py - WHAT: Use cost_tracker.estimate_cost - HOW: Call with model and token counts - SAFETY: Cache expensive calculations - [ ] Task: Track session totals - WHERE: src/gui_2.py or app_controller - WHAT: Accumulate cost over session - HOW: Maintain running total - SAFETY: Thread-safe updates ## Phase 3: UI Implementation - [ ] Task: Render cost breakdown - WHERE: src/gui_2.py - WHAT: Show per-model and per-tier costs - HOW: imgui tables - SAFETY: Handle zero/empty states ## Phase 4: Verification - [ ] Task: Test cost calculations - [ ] Task: Conductor - Phase Verification