Skip to content

Instantly share code, notes, and snippets.

View fxcl's full-sized avatar
:dependabot:
Working from home

okk fxcl

:dependabot:
Working from home
  • Mashan
View GitHub Profile
@fxcl
fxcl / compaction.md
Created February 22, 2026 09:06 — forked from badlogic/compaction.md
Context Compaction Research: Claude Code, Codex CLI, OpenCode, Amp

Context Compaction

Research on how other coding assistants implement context compaction to manage long conversations.

Overview

Context compaction (also called "handoff" or "summarization") is a technique to manage the context window in long coding sessions. When conversations grow too long, performance degrades and costs increase. Compaction summarizes the conversation history into a condensed form, allowing work to continue without hitting context limits.

Claude Code