Verbatim context handoff: swapping an agent's conversation without it noticing

MoonL88537 · x · 2026-12-02

A developer shares a practical context-continuity scheme for agents: instead of auto-compaction, pause and write a note to your future self, then have a separate process build a fresh conversation — foundation docs first, a first-person summary of older history, then the most recent stretch copied verbatim. It validates the new conversation, restarts, and confirms the model actually answers there; any failure means no swap. Most memory lives outside the window (notes, tracker, full transcript on disk), so the summary only needs to say where to look. Reportedly the model can't tell the swap happened.

Original post →

More from coding & agent

coding & agent channel →