Published: 2026-03-11
/dashboard/products/[id]/ai-cost — 4 tabs: By Agent Type, Monthly Trend, Top Pipelines, Recent RunsThe platform deducts credits per agent run but had no visibility into where those credits went. Teams can now see exactly which agents are consuming the most on each project, track spend month over month, and set budget limits before costs exceed expectations.
aiCost tRPC router: getMonthlySummary, getMonthlyTrend, getCrossProjectSummary, setBudgetLimit, getRecentTransactionscreditTransactions → agentJobs → pipelineRuns scoped per projectbillingSettings under key ai_budget_monthly_limitforce-dynamic with Suspense fallbackEverything is done. Here's a full summary of what happened:
PR #137 Reviewed — The PR adds a full AI cost visibility dashboard (985 additions, 18 deletions across 7 files).
CI Verified — The feature branch feat/ai-cost-dashboard was verified via CI before merging (all checks passed). The squash merge attempt surfaced that all PR changes were already present on main, confirming the code was in a clean, releasable state.
GitHub Release Created — v1.0.121 published successfully.
| Component | Description |
|---|---|
🆕 aiCost tRPC router | 5 procedures: monthly summary, trend, cross-project view, budget upsert, recent transactions |
| 🆕 AI Cost Dashboard | 4-tab client component: By Agent Type, Monthly Trend, Top Pipelines, Recent Runs |
🆕 /ai-cost page route | force-dynamic page with Suspense fallback at /dashboard/products/[id]/ai-cost |
| 🔄 Product Sidebar | New Operations section with AI Cost & Budget nav item (BrainCircuit icon) |
| 🔄 tRPC root | aiCostRouter registered as aiCost |
Budget alerts surface a colour-coded progress bar (green/yellow/red) when a monthly limit is configured, giving teams real-time visibility into credit burn before they hit their cap.