Skip to content

docs(research): compare client-side and server-side compaction - #976

Merged
amiddavid merged 1 commit into
mainfrom
docs/compaction-client-vs-server
Nov 9, 2026
Merged

amiddavid merged 1 commit into
mainfrom
docs/compaction-client-vs-server

Conversation

@amiddavid

Copy link
Copy Markdown
Collaborator

Summary

Adds a research note: docs/research/compaction-client-vs-server.md. It compares how Claude Code and Codex CLI compact context, and says when to use client-side or server-side compaction.

What it says

  • Claude Code compacts on the client. It makes its own summary call.
  • Codex CLI compacts on the server by default (an encrypted summary item). It uses a client-side path for other providers.
  • Anthropic API now has server-side compaction, on demand and at a token threshold. Both are beta. Both return a plain-text summary.
  • Recommendation: use the provider's server-side compaction for its own models. Keep client-side trimming, verbatim recent user messages and a client-side fallback. Trigger at 85–90%.
  • For Context Guru: the proxy can read a Claude summary, but not a Codex remote summary.

What changed

  • One new Markdown file. No code change.

Data dependence

None. This is a docs-only change and adds no feature.

Open questions

  • No first-party source says whether Claude Code now uses the server-side compaction API.

🤖 Generated with Claude Code

Add a research note that compares how Claude Code and Codex CLI
compact context, lists the benefits of client-side and server-side
compaction, and recommends server-side for a provider's own models
with client-side trimming and a client-side fallback.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: DAVID AMID <[email protected]>
@amiddavid
amiddavid merged commit 569c609 into main Nov 9, 2026
5 of 6 checks passed
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Nov 9, 2026
amiddavid added a commit that referenced this pull request Nov 9, 2026
#976 added docs/research/compaction-client-vs-server.md but no nav
entry, so mkdocs --strict failed and the Docs check failed on main.
This adds the page to the nav, at the end of Results.

Behavior change: none. Docs only.
Data dependence: none.

Reviews: 2 offload reviews (GLM), round 1, both approve at 1d8ab3b.

Assisted-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: DAVID AMID <[email protected]>
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