January 27, 2026
Async, automatic, non-blocking context compaction for long-running agents.
Last week I gave a talk called Space Machine Sandboxes at the @daytonaio AI builders meetup about patterns for long-running agents. I work a lot on voice AI agents, which are fundamentally multi-turn, long-context loops. I also build lots of other AI agent stuff, often as part of bigger systems that include voice.
One of the patterns I showed in the talk is non-blocking compaction. Here's a short clip.
The full video is here:
Here's a pointer to source code. This is not a clean example! It's part of the code of the game I talked about in the talk. But let me know if you have questions:
And Claude's summary:
This is a…