<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>Compaction Strategy - Tag - Daily Deep Think</title>
        <link>https://blog.baifan.site/en/tags/compaction-strategy/</link>
        <description>Compaction Strategy - Tag - Daily Deep Think</description>
        <generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>blog@baifan.site (ByF)</managingEditor>
            <webMaster>blog@baifan.site (ByF)</webMaster><lastBuildDate>Sat, 23 May 2026 09:00:00 &#43;0800</lastBuildDate><atom:link href="https://blog.baifan.site/en/tags/compaction-strategy/" rel="self" type="application/rss+xml" /><item>
    <title>Context Compaction: Four Ways to Give AI &#39;Infinite Memory&#39;</title>
    <link>https://blog.baifan.site/en/claude-code-context-compression/</link>
    <pubDate>Sat, 23 May 2026 09:00:00 &#43;0800</pubDate><author>
                    <name>ByF</name>
                </author><guid>https://blog.baifan.site/en/claude-code-context-compression/</guid>
    <description><![CDATA[<div class="featured-image">
                <img src="/pictures/note/claude-code-deconstruction-series.svg" referrerpolicy="no-referrer">
            </div><!-- more -->
<p>The Think-Act-Observe loop has a natural enemy: <strong>the context window is finite.</strong></p>
<p>Every loop iteration burns tokens — the model&rsquo;s thinking, the tool-call requests, the tool results. Reading one large file can cost thousands of tokens; a single test run&rsquo;s output can cost tens of thousands. A dozen rounds in, the context window is stuffed full.</p>
<p>What happens when the window fills? The model says &ldquo;sorry, this conversation exceeds my context limit&rdquo;. For casual chat, who cares — open a new window. For a coding assistant, it means <strong>amnesia</strong> — it forgets the project structure, the changes already made, the user&rsquo;s preferences.</p>]]></description>
</item>
</channel>
</rss>
