Skip to content

    ← All posts

    What the context loses at compaction

    When the context window fills up, Claude Code replaces the conversation with a summary. What survives (CLAUDE.md, memory, reloaded files), what goes, and how to keep the state on disk: tracking file, commits, a SessionStart compact hook.

    Spotted an error, something to add?

    Tell me: I read every message and correct the article when needed.

    Your name only appears below the article with this consent, and only if the remark is used. Your address is never published.