Repository navigation
token-bar 0.4.0: breakdown by effort, and cost from your own prices - #11
Merged
Merged
Conversation
The breakdown now shows how many requests each model took, and, when the logs record an effort level, the share by effort. Whatever values appear are shown as they are, so nothing is tied to particular models or levels. New cost command: token-bar ships with no prices (they change and differ by account), so it prints how to create ~/.claude/token-bar/prices.json with your own prices per million tokens. With one, it shows what the input, output and cache tokens would cost, by model and by effort. An id ending in * matches a family, a model with no price is listed and never guessed, and a mistake in the file is explained. The scan now keeps the effort level and the four kinds of token per request, so the scan cache moves to version 2 and is rebuilt once. Tests, README and skill updated, version 0.4.0.
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.
What's new
Breakdown by effort.
/token-bar:token breakdownnow shows how many requests each model took, and, when the logs record an effort level, the share of usage by effort. Whatever values appear (medium, high, and so on) are shown as they are, so nothing is tied to particular models or levels. The effort section only appears when the logs have it.cost, optional./token-bar:token costshows what your tokens would cost, by model and by effort.~/.claude/token-bar/prices.jsonwith your own prices per million tokens, and lists the model ids found in your logs.*matches a family of models.The scan now keeps the effort level and the four kinds of token for each request, so the scan cache moves to version 2 and is rebuilt once on the first run after updating.
Checks
costprinted the setup message.