Add a telos usage command for token/cost visibility#5
Open
akshayakula wants to merge 3 commits into
Open
Conversation
Per-session token and cost reporting from the session store's existing usage fields. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey! Was good chatting yesterday. We're trying Telos out for our deploy agent's background work — running pi with Cerebras GLM 4.7 as the model — and the first thing we reached for was a quick way to see token burn across sessions.
listhas the COST column, but with a custom provider the pricing comes back zero, so the raw token counts are what actually matter for us.This adds a small, purely additive
telos usagecommand:list(root session tree when delegated, local store otherwise); child sessions stay in the report so totals don't undercount--jsonemits rows plus aggregated totals (we feed this into our usage dashboard)-gofmt clean,
go build ./...andgo test ./...pass locally.Happy to rename/reshape (e.g. fold it into
list --usage) if you'd prefer. Also noticed usage totals only land in the store at game_end, so running sessions show nothing — happy to take a swing at live running totals as a follow-up if that'd be welcome.🤖 Generated with Claude Code