Repository navigation
Recap line: show cache reads apart from new tokens - #55
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Merged
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.
The end-of-turn line summed input, cache-creation, cache-read and output tokens into one number, e.g.
2609.6k tokfor a $0.86 turn. Almost all of that is cache reads (the whole context is re-read on every API call), so the number looked far bigger than what Claude Code itself shows.Now the line reads
188.4s · 14.2k new · 2.60M cached · $0.86:new= input + cache-creation + output,cached= cache reads (left out when 0). Millions get anMvia the existingfree::short. The other backends (opencode, codex, agy) have no cache split and are unchanged.Tests:
cargo test --lib(newrecap_splits_cached), clippy, fmt. Not run against a live session yet.🤖 Generated with Claude Code