â back
Breaking the Chain: Agent Continuations for Resumable AI Workflows - Greg Benson
Takeaway
Agent continuations let you snapshot, persist and resume in-flight agent state across hosts so HITL approval and long-running workflows survive process restarts.
Summary
- Benson (SnapLogic chief scientist, USF prof) introduces 'agent continuations' â borrow programming-language continuations to snapshot the entire state of a running agent (including sub-agents and LLM/tool call history) so it can pause and resume.
- Solves two production pains: human-in-the-loop approval for high-stakes tool calls without keeping the agent loop running, and resilience for long-running agents to survive failures and rate-limit errors.
- Key insight: the LLM messages array already logs interaction history; agent continuations build on top of it with the extra runtime state needed for full resume, so the loop process can fully shut down between resumes.
- Multi-level agent configurations (orchestrator + sub-agents) are supported, and the framework uses tool decorators similar to other agent SDKs.
agentshuman-in-the-loopdurable-execution
Original description
AI agents are powerfulâbut brittle. Once an agent chain starts, you either let it run or you tear it down and lose state. Agent Continuations change that contract. Borrowing from programmingâlanguage continuations, we capture an agentâs entire call stackâtools, goals, partial responsesâin a compact JSON blob combined with the familiar messages array. The result is a protocolâlevel "Agent State" that lets you: - Pause anytime for human-in-the-loop approval gates, rateâlimit resets, or progressive UI updates. - Migrate agents across nodes, clouds, even different agent execution platforms - Checkpoint longârunning multiâagent plans using offâtheâshelf storage and enable restarting in the presence of agent failure - Resume seamlessly through standard LLM functionâcalling APIs, so every framework that speaks OpenAI JSON can speak continuations. Our approach works with single-level agent loops and multi-level agents in which agents can call subagents. Attendees will leave with openâsource Python snippets and a mental model that turns âmonolithicâ agents into restartâable, humanâaware servicesâshrinking failure windows and unlocking new UX patterns for AI products. **Key Takeaways** - Why Continuations are a good construct for Agent State - Protocol spec and reference JSON examples and a - Python implementation Live demo: suspend a threeâlayer agent with suspending for human approval ** Links ** https://github.com/SnapLogic/agent-continuations https://agentcreator.com