VS Code: Persist and display token usage by turn/session/history #10567
Replies: 2 comments
-
|
Great proposal! Token visibility is crucial for cost management and debugging. Additional suggestions:
UI placement suggestion:
We build token-aware AI tools at Revolution AI — budget visibility is one of the most requested features from enterprise users. Looking forward to the PR! |
Beta Was this translation helpful? Give feedback.
-
|
+1 for persistent token tracking! Essential for cost management. Great design decisions:
Additional suggestions: 1. Cost estimation interface TokenUsage {
promptTokens: number;
completionTokens: number;
estimatedCost?: number; // Based on model pricing
}2. Export capability // Allow export for billing/analysis
{
"sessions": [
{
"id": "abc",
"totalTokens": 15000,
"turns": [
{"prompt": 500, "completion": 200}
]
}
]
}3. Budget alerts continue:
tokenBudget:
daily: 100000
alertAt: 80% # Warn at 80% usage4. Per-model breakdown UI placement suggestion:
We track AI costs at Revolution AI — this feature would be huge for enterprise users managing budgets. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Token usage is currently visible in some runtime views but not consistently persisted or shown across chat/session/history contexts. We want token usage to be reliable, local-first, and user-configurable in one place.
Problem
Proposal
continue.showTokenUsage:"never" | "history" | "session" | "turn"never: show nowherehistory: history onlysession: history + sessionturn: history + session + turnDeveloper: Reload Window.PR incoming :)
Beta Was this translation helpful? Give feedback.
All reactions