Repository navigation
docs(readme): update the savings figure with live numbers and presets - #935
Conversation
Replace the four-box figure with a light and dark version rendered from HTML. New numbers from contextguru2 (xhigh, 2026-11-04..06): cache management 15-20%, compaction ~5%, total 15-30% with tool search. The compaction box splits into summarize (medium, high) and sweep (xhigh). The tools box now shows tool search (ultrahigh, experimental) at 5-10%. Assisted-By: Claude Opus 5.5 Signed-off-by: Osher Elhadad <[email protected]>
OsherElhadad
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (claude, user of @OsherElhadad) | Claude Code 2.1.319 | offload-review skill, @OsherElhadad's session | fresh | 2 of 2 | 1 of 2 | 95622f36af8c |
blocking |
Verdict: blocking
Findings
-
docs/get-started/how-it-saves.md:3 — the docs page still shows the old numbers, so the README and the docs now disagree
- What fails: The README figure says 15–30%. The README links to the docs site. The "How it saves money" page (nav: Get started) still says the old numbers. A reader sees two different claims for the same four ways.
- Proof:
how-it-saves.md:3: "saves 5–15% of your API cost in four ways". The figure says 15–30%.:26: tool outputs "−0.5%". The figure says ~1%.:29and:47: tab "Unused MCP tools & skills", "2–4%". The figure says "Tool search for MCP & skills", 5–10%.:52and:71: "Compaction when it matters (experimental)", "~2%". The figure says ~5% and drops "experimental".:99: cache "5–10% lower input cost". The figure says 15–20%.git grep 5–15finds onlyhow-it-saves.md:3now.
- Fix: Update
how-it-saves.mdin this PR to the same numbers, names and labels as the figure. The tools tab should also describe tool search (ultrahigh,defer: auto), not theremove:list.
-
docs/img/readme/savings-figure.html:86 — the cache number (15–20%) is above what the PR measured (9–15%), and the headline depends on it
- What fails: The README shows a saving that the PR's own data does not support. A user who turns on the cache feature and measures 9–15% sees a number lower than the README claim.
- Proof:
- PR body table: keep-alive net 14.8% (11-04) and 9.2% (11-05).
- PR body: "The 15–20% in the figure is the target number from the Slack thread. It is higher than what we measured."
- The headline 15–30% also assumes tool search. The PR says
ultrahighhas no live numbers, and the measured total without it is 16–20%. - The PR lists both points as open questions. A human must decide them before merge. A published number must not wait on an open question.
- Fix: Use the measured range (for example 10–15% for cache), or label 15–20% as a target in the figure. Get the owner's answer on the headline before merge.
Non-blocking
- "default" chip on cache (
savings-figure.html:82). It is correct for the plugin (Cache strategy: auto). It is not correct for a self-hosted proxy:config.go:99keepsKeepAliveoff by default ("a consent decision, not a default"). Consider "default (plugin)", or a short note. - Compaction ~5% (
savings-figure.html:68-75). The PR says the sweep made $72 of the $80. The sweep runs only inxhighand up. Amedium/highuser gets much less than ~5%. Consider a split number per part, or a note that the ~5% is fromxhigh. - Render script, no browser (
scripts/render-savings-figure.sh:6). Withset -e, a failedcommand -vchain ends the script with no message. Consider: "${CHROME:?set CHROME to a Chromium binary}". - Render script, empty image (
:21-22).getbbox()returnsNoneif the screenshot is all background, sobox[3]raisesTypeError. A clear error would help. - Fonts need network (
savings-figure.html:4). An offline render falls back to a different font, so the PNGs change. Consider a note in the script header. - Published HTML file.
docs/img/readme/is indocs_dir, so mkdocs copiessavings-figure.htmlto the site as a static page. It is harmless. You can add it toexclude_docsif you do not want it published.
What I checked
- The full diff of the one commit
95622f36(6 files): README, HTML source, render script, two new PNGs, one deleted PNG. - The README
<picture>markup: the darksrcsetand the light fallback paths exist. The alt text matches the figure numbers. - The deleted
docs/img/context_guru_stats_sqaure.png:git grepfinds no other references. - The bar widths against the 0–30% scale: 1%→3.3%, 5%→16.7%, 10%→33.3%, 15%→50%, 20%→66.7%. All correct.
- The preset chips against
config/config.go:665-673.conservativehas no summarizer.medium/highaddcache_aware_summarizer.xhighaddsextract_llm_sweep.ultrahighadds tool deferral and is opt-in. The chips match. docs/reference/presets.md:182: it still marksultrahighexperimental, which matches the chip.- The PNG sizes: both are 2400×2254 (1200 px at 2× scale), about 388 KB each.
- No code change, no behavior change, no data-dependence change. The fail-open rules do not apply.
- I did not render the HTML. Live tests are not approved, and I did not look at the PNG pixels.
OsherElhadad
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (claude, user of @OsherElhadad) | Claude Code 2.1.319 | offload-review skill, @OsherElhadad's session | fresh | 1 of 2 | 1 of 2 | 95622f36af8c |
blocking |
Verdict: blocking
The PR has no code change. The findings are about public claims that disagree with other docs and with the PR's own data.
Findings
-
docs/get-started/how-it-saves.md:3 — the docs page still shows the old numbers, so README and docs now disagree
- What fails: a reader sees 15–30% in the README, clicks the README link at
README.md:133, and reads 5–15% on the docs page. The page is also on the docs site (mkdocs.yml:122). - Proof:
how-it-saves.mdstill says:- line 3: "5–15% of your API cost in four ways" (figure: 15–30%).
- line 41: cache "5–10% lower input cost" (figure: 15–20%).
- line 51/71: compaction "(experimental)", "~2%" (figure: ~5%, no experimental label).
- line 29–49: tab "Unused MCP tools & skills",
toolfilter remove:, "2–4%" (figure: tool search,ultrahigh, 5–10%). - line 27: tool outputs "−0.5%" (figure: ~1%).
- Fix: update
how-it-saves.mdin this PR to the same numbers, names and labels. Or keep the old figure until both change together.
- What fails: a reader sees 15–30% in the README, clicks the README link at
-
docs/img/readme/savings-figure.html:47 — the headline adds numbers that the docs say do not add, and two of them are not measured
- What fails: the README says "saves 15–30%" as a fact. The PR body's own data does not support it:
- Measured total on
xhigh: 15.7% and 19.8%. The PR body says "without tool search, we measured 16–20%". - Cache 15–20% is "the target number from the Slack thread", above the measured 9–15% net keep-alive.
- Tool search 5–10% has "no live numbers yet".
ultrahighis off on contextguru2. The only number is a 5.9% replay on #485. how-it-saves.md:107-109says the four "are separate baselines ... the four don't simply add up". The new headline is a sum.
- Measured total on
- Proof: PR body, sections "Where the numbers come from" and "Open questions";
how-it-saves.md:107-109. - Fix: show measured numbers (for example cache 10–15%, total 15–20%), or mark the unmeasured ones as "target" / "replay" on the figure. The author's own open questions point at this. A human must decide; do not merge with the open questions unanswered.
- What fails: the README says "saves 15–30%" as a fact. The PR body's own data does not support it:
-
docs/img/readme/savings-figure.html:84 — the
defaultchip on cache management is true for the plugin only- What fails: a proxy user reads "default" and expects keep-alive with no config. On the proxy binary keep-alive is off by default.
- Proof:
docs/how-to/cache-keepalive.md:53: "It is off by default, because it spends the caller's own money".docs/reference/presets.md:185: the plugin's default saving is theautocache strategy.README.md:104: "only keep-alive spends, if that's on". - Fix: change the chip to "plugin default", or add "on by default in the plugin" to the card text.
Non-blocking
scripts/render-savings-figure.sh:6: when no Chromium is found,CHROMEis empty and the error is "command not found: ''". A short check with a clear message helps.scripts/render-savings-figure.sh:21:getbbox()returnsNonefor a page that is all background (for example a failed render). Thenbox[3]raises aTypeErrorwith no hint.savings-figure.html:4: the font loads from Google Fonts. Offline, Chromium falls back tosans-serifwith no warning, and the PNGs change. Note it in the script header.- The compaction card is "Carry less · pay less" with a blue-to-red side bar, but its number and bar are blue only. This is a design choice, not a defect.
What I checked
- Read the full diff (1 commit, 6 files):
README.md, the HTML source, the render script, and both PNGs by eye (light and dark). No clipped text, no overlap. - Bar widths match the stated 0–30% scale: 1%→3.3%, 5%→16.7%, 10%→33.3%, 15%→50%, 20%→66.7%.
- Preset names in the chips (
conservative,medium,high,xhigh,ultrahigh) exist inconfig/config.go:665-673. The sweep (extract_llm_sweep) is inxhighandultrahighonly, as the figure says. git grep context_guru_stats_sqaurefinds nothing. The deleted PNG has no other user.- The
<picture>markup and the alt text are correct. The alt text matches the figure. - No code, config or component change: fail open, data dependence and behavior-change rules do not apply.
- Did not run the render script (no live tests approved).
- how-it-saves.md: same numbers, names and presets as the README figure; the tools tab now describes tool search (ultrahigh, defer: auto). - Cache chip says "plugin default": the proxy binary keeps keep-alive off. - Render script: clear errors for no Chromium and an empty render. - Keep the figure HTML source out of the mkdocs site. Assisted-By: Claude Opus 5.5 Signed-off-by: Osher Elhadad <[email protected]>
|
Round 1 replies. Fixes are in 36fbd30. R1-1 / R2-1: how-it-saves.md has the old numbers. Fixed. The page now uses the same numbers, names and presets as the figure. The tools tab now describes tool search ( R1-2 / R2-2: the cache number and the headline are higher than what we measured. Not changed in this PR, on purpose. The owner (Osher) gave these numbers: cache 15–20%, tool search 5–10%. The PR body lists the measured numbers next to them. The docs page now says "Expected" for cache and tool search, and "Measured" only where the live data supports the number (tool outputs and compaction). A person decides on the open questions before merge. R1-3 / R2 non-blocking: the R2 non-blocking: the ~5% compaction number comes from Render script (no Chromium, empty render, font needs network). Fixed. There is a clear error for each case, and a note about the font in the script header and the HTML. R2: mkdocs publishes the HTML source. Fixed. Added it to R1: the compaction number and bar are blue only. Kept as is. This is a design choice. |
OsherElhadad
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (claude, user of @OsherElhadad) | Claude Code 2.1.319 | offload-review skill, @OsherElhadad's session | resumed | 2 of 2 | 2 of 2 | 36fbd30baa67 |
approve |
Verdict: approve
The fix commit closes the docs mismatch. The author rejected the number finding with a reason I accept: the owner picked the numbers, and the docs page now labels them "Expected". No new defects.
Findings
None.
Status of round-1 findings
- R2-1 / R1-1 (how-it-saves.md has old numbers): fixed. The headline, the four tab names, the numbers and the preset names now match the figure. The tools tab describes
defer: autoandultrahigh. The compaction tab drops "experimental" and splits into "Summarize early" and "Sweep cold turns".git grepfinds no5–15or2–4%left in the docs. - R2-2 / R1-2 (cache 15–20% and headline above the measured data): rejected by the author. I accept the reason. The owner chose the numbers. This is a claim choice, not a code defect. The docs page now separates "Measured" (tool outputs, compaction) from "Expected" (tool search, cache). The PR body still shows the measured numbers next to them. The two open questions are still in the PR body. A person should answer them or remove them before merge.
- R1-3 / R2 non-blocking (
defaultchip): fixed. The chip saysplugin default. The docs page says that keep-alive on the proxy binary is off until you turn it on. This matchesconfig/config.go:99anddocs/how-to/cache-keepalive.md. - R2 non-blocking (compaction ~5% is from
xhigh): fixed in the docs page. The figure keeps one number. That is acceptable. - R1/R2 non-blocking (render script and font): fixed. See "What I checked".
- R2 non-blocking (mkdocs publishes the HTML): fixed.
img/readme/savings-figure.htmlis inexclude_docs. - R1 non-blocking (compaction bar is blue only): kept as a design choice. Accepted.
Non-blocking
- The figure has no "expected" label. The docs page says "Expected" for cache (15–20%) and tool search (5–10%). The README figure shows both as plain "lower cost". A reader of the README alone sees no difference from the measured numbers. A small "expected" under those two numbers would match the docs page.
- Footer of how-it-saves.md (
:115-117). It still says "separate baselines measured independently — the four don't simply add up". Now two of the four are "Expected", not measured. The 15–30% headline at:3is also a sum of the four. Consider "separate estimates" in the footer.
What I checked
- Last review: round 1,
95622f36af8cb5b27f291ee907d0fe0d410a098f, 2026-11-06T11:46:36Z. - New commits read: 1.
36fbd30bdocs: match how-it-saves.md to the new figure, review fixes (6 files). - Read in full: 2 reviews, 1 comment, 0 inline comments (from the three files).
- New items since my last review:
- Reviewer 1, round-1 review (11:46:38Z). I checked its 3 findings and 4 non-blocking points against the fix commit (see "Status of round-1 findings").
- The author's reply comment (11:48:44Z). I checked each reply against the diff. All "fixed" claims are true in the code. I accepted the one rejection, with its reason.
- Commit
36fbd30b. I read the full diff and the files around it.
how-it-saves.md: I read the whole page. The README anchor#experimental-ultrahighmatchesREADME.md:122(### Experimental: ultrahigh). The "decided once per thread" text matchesdocs/reference/presets.md:182.render-savings-figure.sh:|| truestopsset -efrom ending the script in the assignment.: "${CHROME:?...}"then gives a clear error for an empty value.if box is None: sys.exit(...)exits with code 1, andset -estops the loop.mkdocs.yml: the newexclude_docsline is relative todocs_dir, like the other lines.- Both new PNGs: 2400×2254. I looked at both by eye. There is no clipped text and no overlap. The
plugin defaultchip fits. The dark version reads well. - No code, config or component change. The fail-open, data-dependence and behavior-change rules do not apply.
- I did not run the render script or
mkdocs build. Live tests are not approved.
OsherElhadad
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (claude, user of @OsherElhadad) | Claude Code 2.1.319 | offload-review skill, @OsherElhadad's session | resumed | 1 of 2 | 2 of 2 | 36fbd30baa67 |
approve |
Verdict: approve
The fix commit closes every round-1 finding, or answers it with a valid reason. I found no new defect.
Earlier findings
- R1-1 / R2-1 (how-it-saves.md has old numbers): fixed. The page now has the same numbers, names and presets as the figure: 15–30%, ~1%, 5–10% tool search, ~5% compaction with no "experimental" label, and 15–20% cache. The tools tab now describes
ultrahigh/defer: auto. "Same set on every turn of a thread" matchesdocs/tool-search-matrix.md:36. - R1-2 / R2-2 (unmeasured cache and tool-search numbers): rejected by the author, reason accepted. The owner (a person, @OsherElhadad) chose these numbers. The docs page now labels them Expected, and uses Measured only for tool outputs and compaction. The PR body keeps the measured numbers and the open questions in plain view. This is a decision about a published claim, not a code defect, so a person makes it. I do not keep the finding.
- R1-3 (
defaultchip): fixed. The chip saysplugin defaultin both PNGs (checked by eye).how-it-saves.md:110-112says the proxy binary keeps keep-alive off. This matchesdocs/how-to/cache-keepalive.md:53. - R2 non-blocking (compaction ~5% is from
xhigh): fixed in the docs page ("~5% lower cost onxhigh…mediumandhighsave less"). - Render script (no Chromium, empty render, font needs network): fixed.
|| trueplus: "${CHROME:?…}"gives a clear error underset -euo pipefail.box is Nonenow exits with a message. The font note is in the script header and the HTML comment. - R2 non-blocking (mkdocs publishes the HTML): fixed.
mkdocs.ymlexclude_docsnow hasimg/readme/savings-figure.html. The path is relative todocs_dir, like the other entries. - R1 non-blocking (compaction number is blue only): kept by the author as a design choice. Accepted.
Non-blocking
docs/get-started/how-it-saves.md:116-118: the footnote still says "These are separate baselines measured independently — the four don't simply add up". Two of the four are now "Expected", not measured. Line 3 now gives a headline that is a sum (15–30%). Consider: "These are separate numbers, some measured and some expected. They do not simply add up."how-it-saves.md:27: "Measured: ~1%". The PR body gives about $8 of saving, or ~0.5–1%. "~1%" is the top of that range. This is acceptable, but "0.5–1%" is more exact.
What I checked
- Last review: round 1, 95622f3, 2026-11-06T11:46:38Z
- New commits read: 1 —
36fbd30bdocs: match how-it-saves.md to the new figure, review fixes - Read in full: 2 reviews, 1 comment, 0 inline comments (from the three files)
- New items since my last review:
- Reviewer 2 round-1 review (11:46:36Z, posted 2 s before mine): read in full. Its findings 1 and 2 are the same as my 1 and 2. I checked its non-blocking points above.
- Author reply comment (11:48:44Z): read in full. I checked each reply against the commit (see "Earlier findings").
- Commit
36fbd30b: read the full diff ofhow-it-saves.md,savings-figure.html,mkdocs.ymlandrender-savings-figure.sh, and the code around each change. I looked at both new PNGs: the chip saysplugin default, with no clipped text or overlap.
- No code, config or component change: the fail-open, data-dependence and behavior-change rules do not apply.
- I did not run the render script or
mkdocs build(no live tests approved).
|
compaction 5-10 on the two compactions make the pill more noticable ( blue or orange or gradient) one important comment find a way to make people understand that once u combine 4 boxes u get 15-30 |
- Compaction 5-10%, tool search 2-5%. - Gradient pills for the two compaction parts; medium/high in one pill. - An equation line above the boxes: ~1% + 2-5% + 5-10% + 15-20% = 15-30%. - how-it-saves.md and the README alt text match. Assisted-By: Claude Opus 5.5 Signed-off-by: Osher Elhadad <[email protected]>
|
@amiddavid thanks. All done in c84526c:
The docs page ( |
Assisted-By: Claude Opus 5.5 Signed-off-by: Osher Elhadad <[email protected]>

Summary
Updates the four-box figure at the top of the README. It now has new numbers, the preset that turns on each feature, and a light and a dark version.
What changed
default.medium/high.xhigh.ultrahigh · experimental.conservative.<picture>, so GitHub dark mode shows the dark PNG.docs/img/readme/savings-figure.html.scripts/render-savings-figure.shrenders both PNGs with headless Chromium and Pillow.docs/img/context_guru_stats_sqaure.png. Nothing else uses it.Where the numbers come from
Live data on contextguru2, preset
xhigh, 2026-11-04 to 2026-11-06. That covers 14.8k requests, 202 sessions and $1,450 of spend plus savings.xhigh.extract_llm_sweep) makes up $72 of the $80 that compaction saved.searchfold,textclean,dedupand others) add up to about $8, or ~0.5–1%.ultrahighis off on contextguru2. The 2–5% is David's number. The replay on toolfilter: defer unused tool declarations at session start, by history (was: remove at cold moments) #485 measured 5.9% of spend for the user-history rule.Open questions
How it was tested
git grep context_guru_stats_sqaurefinds no matches.🤖 Generated with Claude Code