Repository navigation
Conversation
2 tasks done
KuSh
marked this pull request as ready for review
September 19, 2026 16:21
KuSh
force-pushed
the
lex/09-estimate-marker
branch
from
September 19, 2026 21:14
a78e98c to
8795af7
Compare
KuSh
force-pushed
the
lex/09-estimate-marker
branch
from
September 20, 2026 23:23
8795af7 to
6c05375
Compare
KuSh
force-pushed
the
lex/09-estimate-marker
branch
from
September 25, 2026 22:55
6c05375 to
13fce4c
Compare
KuSh
force-pushed
the
lex/09-estimate-marker
branch
from
September 25, 2026 23:15
13fce4c to
39583c2
Compare
KuSh
force-pushed
the
lex/09-estimate-marker
branch
2 times, most recently
from
September 25, 2026 23:29
827ead3 to
e01d73f
Compare
KuSh
force-pushed
the
lex/09-estimate-marker
branch
from
September 26, 2026 17:56
e01d73f to
c82205d
Compare
KuSh
force-pushed
the
lex/09-estimate-marker
branch
from
September 26, 2026 21:30
c82205d to
9290135
Compare
KuSh
force-pushed
the
lex/09-estimate-marker
branch
2 times, most recently
from
October 1, 2026 16:20
14bb3b7 to
4e61b6e
Compare
KuSh
force-pushed
the
lex/09-estimate-marker
branch
4 times, most recently
from
October 2, 2026 15:07
a7329b1 to
7d44e92
Compare
KuSh
force-pushed
the
lex/09-estimate-marker
branch
from
October 5, 2026 22:36
7d44e92 to
03ce493
Compare
KuSh
force-pushed
the
lex/09-estimate-marker
branch
from
October 7, 2026 07:16
03ce493 to
34156a1
Compare
KuSh
force-pushed
the
lex/09-estimate-marker
branch
2 times, most recently
from
October 15, 2026 12:03
06a1a9c to
bc9cdc5
Compare
KuSh
force-pushed
the
lex/09-estimate-marker
branch
3 times, most recently
from
October 26, 2026 11:29
cfc5573 to
22d514b
Compare
KuSh
force-pushed
the
lex/09-estimate-marker
branch
2 times, most recently
from
October 28, 2026 23:54
8769ef9 to
15b653a
Compare
KuSh
force-pushed
the
lex/09-estimate-marker
branch
2 times, most recently
from
November 1, 2026 15:19
4135d69 to
3d0321b
Compare
TaKO8Ki
force-pushed
the
lex/09-estimate-marker
branch
from
November 2, 2026 11:31
3d0321b to
e9bfed6
Compare
KuSh
force-pushed
the
lex/09-estimate-marker
branch
2 times, most recently
from
November 3, 2026 06:27
c1ef67c to
686557b
Compare
KuSh
marked this pull request as draft
November 4, 2026 07:41
KuSh
force-pushed
the
lex/09-estimate-marker
branch
from
November 5, 2026 11:48
686557b to
a004478
Compare
KuSh
marked this pull request as ready for review
November 5, 2026 12:22
KuSh
force-pushed
the
lex/09-estimate-marker
branch
2 times, most recently
from
November 18, 2026 01:06
807eea2 to
f7be617
Compare
KuSh
force-pushed
the
lex/09-estimate-marker
branch
2 times, most recently
from
November 21, 2026 09:57
91f4776 to
a14a65a
Compare
…aged
`Total: 681 commands -> ~108.3K tokens saveable` reads as one number of one
kind. It is not. A figure comes either from the output size the transcript
recorded for that tool call, or from a flat per-category constant used when
there is nothing to measure — and the two look identical in the table.
The split is not incidental. `output_len` measures what the last command of a
line wrote, so a command feeding a pipe is never the one it describes: every
opportunity that is an opportunity *because* it feeds a pipe is averaged, by
construction. Each table now says how much of it was averaged, next to its
total, the way the report already discloses estimated coverage at the top.
On this project's history that reads:
Total: 852 commands -> ~98.6K tokens saveable
769 of 852 sized by per-category average, the rest measured
Total: 681 commands -> ~108.3K tokens saveable by changing how they are run
524 of 681 sized by per-category average, the rest measured
The first line is the surprise: the missed-savings table is nine tenths
averaged too, not just the opportunities one. Whether the per-category constants
deserve that weight is a separate question, and a report that hides which
numbers rest on them cannot even raise it.
`strip_disabled_prefix` becomes `split_env_prefix`. It splits off any env
prefix; that one caller then looks for `RTK_DISABLED=` in what came back is the
caller's business, and the old name described the caller rather than the
function.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
KuSh
force-pushed
the
lex/09-estimate-marker
branch
from
November 25, 2026 02:13
a14a65a to
164cef5
Compare
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.
Total: 681 commands -> ~108.3K tokens saveablereads as one number of onekind. It is not. A figure comes either from the output size the transcript
recorded for that tool call, or from a flat per-category constant used when
there is nothing to measure — and the two look identical in the table.
The split is not incidental.
output_lenmeasures what the last command of aline wrote, so a command feeding a pipe is never the one it describes: every
opportunity that is an opportunity because it feeds a pipe is averaged, by
construction. Each table now says how much of it was averaged, next to its
total, the way the report already discloses estimated coverage at the top.
On this project's history that reads:
Total: 852 commands -> ~98.6K tokens saveable
769 of 852 sized by per-category average, the rest measured
Total: 681 commands -> ~108.3K tokens saveable by changing how they are run
524 of 681 sized by per-category average, the rest measured
The first line is the surprise: the missed-savings table is nine tenths
averaged too, not just the opportunities one. Whether the per-category constants
deserve that weight is a separate question, and a report that hides which
numbers rest on them cannot even raise it.
strip_disabled_prefixbecomessplit_env_prefix. It splits off any envprefix; that one caller then looks for
RTK_DISABLED=in what came back is thecaller's business, and the old name described the caller rather than the
function.
Test plan
cargo fmt --all && cargo clippy --all-targets && cargo test --all— 5915 passing, clippy clean, at this commit rather than only at the tip of the stackN of M sized by per-category average, a wholly averaged one says so outright, and a fully measured one says nothingPart of #4315 (#4129 → #4138). Based on #4136. Each commit gates green on its own, so the stack is bisectable.
🤖 Generated with Claude Code