Skip to content

docs(benchmark): add "vs competitors" summary page (SWE-bench Verified) - #21

Merged
OsherElhadad merged 1 commit into
mainfrom
docs/vs-competitors
Aug 9, 2026
Merged

OsherElhadad merged 1 commit into
mainfrom
docs/vs-competitors

Conversation

@OsherElhadad

@OsherElhadad OsherElhadad commented Aug 9, 2026 •

Copy link
Copy Markdown
Collaborator

What

Adds a mechanism-first summary page — docs/results/vs-competitors.md — explaining what
context-guru does differently from headroom and rtk on SWE-bench Verified, and why
those design choices produced the better result. The existing comparison page
keeps the per-task tables and plots; this page is the "why", not another table.

Docs-only: three files (docs/results/vs-competitors.md, a pointer in docs/RESULTS.md, one
nav entry).

The page

  • Where the three layers intercept, as a diagram — rtk is a shell hook that compresses Bash
    output before it enters the transcript; headroom is a proxy that rewrites the live zone;
    context-guru is a proxy that compacts the whole messages array and then freezes each
    decision and replays it byte-identically
    .
  • Why removing the least content per request still wins. context-guru removes 1.09%/req vs
    headroom's 2.64% and is still the cheapest arm, because a frozen decision is subtracted from
    every subsequent cache-read while the cached prefix stays byte-stable → cache-read −17.8%,
    cache-write within 1% of baseline.
  • Why cache-write discipline matters even here, where it costs nothing: one cache-write is
    priced at 11.5 cache-reads, so mutating already-cached content rarely breaks even.
  • fail open / never worse / reversible — the three invariants, and why they are what make
    aggressive compaction safe to ship (the Offload type enforces reversibility).
  • Whole-request reach vs rtk's Bash-only ceiling, and the −13.9% step reduction that
    does most of the work behind the −13.2% cost win.
  • What each competitor owns and pays for — crediting rtk's operate-at-the-source idea and
    headroom's lossless tool-schema layer as things worth adopting, not dismissing them.

Headline it explains

dimension baseline context-guru headroom rtk
solved / 50 43 44 40 43
total billed cost $31.98 $27.77 (−13.2%) $30.30 (−5.3%) $29.09 (−9.0%)
cache-read tokens 102.8M 84.5M (−17.8%) 96.4M 91.7M
mean steps / task 36.1 31.1 35.1 33.2

On the claims

The honest-read section states plainly that:

  • the reward spread (43 / 44 / 40 / 43 out of 50, n=1 per task) is within run-to-run noise,
    and the cost claim rests on the deterministic cache-write / cache-read / per-component signals;
  • SWE-bench is the favourable regime for compaction — localized tasks, smaller contexts,
    cache-read dominating the bill — and no claim is made that −13.2% transfers to
    long-horizon, large-context workloads;
  • compaction is not free money in general: fixed per-request overhead can make short
    conversations a net loss for any arm.

Terminal-Bench results are deliberately not part of this PR.

Verification

  • mkdocs build --strict — clean, no warnings, no broken internal links.
  • Diff vs main is 3 files; no runtime code, no harness scripts.
  • Branched from origin/main; unrelated local WIP (the cacheinject/sticky-anchor Go work) is
    excluded.

Adds a mechanism-first summary of the four-arm SWE-bench Verified study for
readers who want to understand *why* the numbers came out as they did, rather
than another table. The existing comparison page keeps the per-task detail.

New page `results/vs-competitors.md`:
- where the three layers intercept, as a diagram — rtk is a shell hook that
  compresses Bash output before it enters the transcript, headroom is a proxy
  that rewrites the live zone, context-guru is a proxy that compacts the whole
  messages array and then freezes each decision and replays it byte-identically;
- why removing the *least* content per request still wins: 1.09%/req vs
  headroom's 2.64%, yet cheapest overall, because one frozen decision is
  subtracted from every subsequent cache-read while the cached prefix stays
  byte-stable — cache-read -17.8%, cache-write within 1% of baseline;
- why cache-write discipline matters even where it costs nothing (one
  cache-write is priced at 11.5 cache-reads);
- fail-open / never-worse / reversible, and why they make aggression safe;
- whole-request reach vs rtk's Bash-only ceiling, and the -13.9% step
  reduction that does most of the work behind the -13.2% cost win;
- what each competitor owns and pays for, crediting rtk's operate-at-the-source
  idea and headroom's lossless tool-schema layer as things worth adopting.

The honest-read section states plainly that the reward spread (43/44/40/43 at
n=1) is within run-to-run noise, that the cost claim rests on the deterministic
cache signals, and that SWE-bench is the favourable regime for compaction — no
claim is made that -13.2% transfers to long-horizon workloads.

Docs-only. `mkdocs build --strict` clean.

Assisted-By: Claude Opus 5 (1M context) <[email protected]>
Signed-off-by: Osher-Elhadad <[email protected]>
@OsherElhadad OsherElhadad changed the title docs(benchmark): add Terminal-Bench 2.0 arm + "vs competitors" summary page docs(benchmark): add "vs competitors" summary page (SWE-bench Verified) Aug 9, 2026
@OsherElhadad
OsherElhadad merged commit 7ea768d into main Aug 9, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant