WhoBuilt

Breaking the Chain: Agent Continuations for Resumable AI Workflows

Jun 3, 2025· 27 min· 2.4K views·Watch on YouTube

Speaker

Greg Benson, professor of computer science at the University of San Francisco and chief scientist at SnapLogic, explains agent continuations developed by SnapLogic’s Agent Creator research group.

Why agents need approval and recovery

Benson identifies two production challenges: giving people a chance to review consequential actions and preserving work when long-running agents fail. Examples of actions needing approval include transferring money, deleting an account, and authorizing account privileges. Agents may also run across distributed systems and involve several layers of subagents.

How agent continuations work

Inspired by programming-language continuations, the mechanism captures an agent’s state so execution can pause and resume later. It builds on the messages array that records interactions with language models, adding metadata needed to restore the agent and identify where to continue. Once state is captured, the agent loops can shut down while approval is pending.

Approval and nested agents in practice

In the prototype, developers mark tools that require approval and use a `ContinuationAgent`. When such a tool is reached, the agent returns a continuation object; the application can inspect it, record the human’s decision, and send it back so execution resumes before the tool call. The format supports nested agents, as shown in an HR workflow where an account subagent pauses for approval to authorize an account.

Prototype and next steps

Benson says the prototype uses the OpenAI Python API without other dependencies, and that broader suspension options include pausing after a time limit or number of turns. The team is exploring how to extend frameworks such as Strands and Pydantic AI rather than create a separate framework. The work was also prototyped in SnapLogic’s visual AgentCreator platform.

Takeaways

  • Capture agent state at approval points so a person can decide before a consequential tool runs.
  • Persist enough state to stop agent loops during long waits and resume without restarting the workflow.
  • Include nested agent state in the continuation format when subagents may pause for approval.
  • Keep approval decisions in the application layer, where they can be presented to a person and passed back to the agent.

Mentioned in this talk

Search inside this talk

What was claimed 9

Show all 9 facts

Related talks