Skip to content

Recap line: show cache reads apart from new tokens - #55

Merged
LudaLunizz merged 1 commit into
Silvertree2010:mainfrom
LudaLunizz:token-split
Nov 21, 2026
Merged

LudaLunizz merged 1 commit into
Silvertree2010:mainfrom
LudaLunizz:token-split

Conversation

@LudaLunizz

Copy link
Copy Markdown
Collaborator

The end-of-turn line summed input, cache-creation, cache-read and output tokens into one number, e.g. 2609.6k tok for 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 an M via the existing free::short. The other backends (opencode, codex, agy) have no cache split and are unchanged.

Tests: cargo test --lib (new recap_splits_cached), clippy, fmt. Not run against a live session yet.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 59134ebb-6b60-45bf-9264-fbf7d0c06d5a
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@LudaLunizz
LudaLunizz merged commit c789c30 into Silvertree2010:main Nov 21, 2026
5 checks passed
@LudaLunizz LudaLunizz mentioned this pull request Nov 21, 2026
@LudaLunizz
LudaLunizz deleted the token-split branch November 27, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant