
  <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
      <title>Duncan Leung</title>
      <link>https://www.duncanleung.com/blog</link>
      <description>📚 Learning, 👨🏻‍💻 Building, 📝 Documenting...</description>
      <language>en-us</language>
      <managingEditor>duncan@leungs.email (Duncan Leung)</managingEditor>
      <webMaster>duncan@leungs.email (Duncan Leung)</webMaster>
      <lastBuildDate>Tue, 22 Sep 2026 00:00:00 GMT</lastBuildDate>
      <atom:link href="https://www.duncanleung.com/tags/openrig/feed.xml" rel="self" type="application/rss+xml"/>
      
  <item>
    <guid>https://www.duncanleung.com/blog/claude-code-precompact-postcompact-context-management</guid>
    <title>Surviving the Dumb Zone: A Checkpoint System for Claude Code&#39;s /compact</title>
    <link>https://www.duncanleung.com/blog/claude-code-precompact-postcompact-context-management</link>
    <description>Claude Code&#39;s /compact command compresses your conversation to free context, but it silently drops external state mutations, abandoned approaches, and behavioral constraints. I built a precompact/postcompact checkpoint system that writes ground truth to disk before compaction and cross-checks it afterward — including live reconciliation against git, CI, and external systems. Here&#39;s the design, the research behind it, the failure modes it prevents, and how OpenRig&#39;s native compaction system eventually superseded these custom skills.</description>
    <pubDate>Tue, 22 Sep 2026 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>ai</category><category>claude-code</category><category>openrig</category>
  </item>

  <item>
    <guid>https://www.duncanleung.com/blog/openrig-compaction-system-why-compact-instead-of-handoff</guid>
    <title>Why We Built a Compaction System Instead of Handing Off to New Agents</title>
    <link>https://www.duncanleung.com/blog/openrig-compaction-system-why-compact-instead-of-handoff</link>
    <description>When a long-running orchestrator hits context limits, the obvious move is to hand off to a fresh agent. We tried that. The startup overhead, lost momentum, and broken continuity made it worse than the problem it solved — for our use case. So we built a compaction system instead: one that writes ground truth to disk, restores from it, and distills session knowledge into a wiki page via an API call to Haiku. Recent research shows neither approach is categorically better — compaction drops behavioral constraints, handoff carries a &#39;handoff tax&#39; — but for same-model orchestrators that accumulate judgment over time, compaction with external ground truth wins. Here&#39;s how the system works and what the literature says.</description>
    <pubDate>Mon, 19 Oct 2026 00:00:00 GMT</pubDate>
    <author>duncan@leungs.email (Duncan Leung)</author>
    <category>ai</category><category>claude-code</category><category>openrig</category><category>multi-agent</category>
  </item>

    </channel>
  </rss>
