Alibaba Cloud Releases AgentScope Durable: Open-Source Framework for Reliable Long-Running AI Agents
AgentScope Durable provides open-source mechanisms for automatic recovery, session replay, and async tool execution in enterprise agents.
Alibaba Cloud has released the open-source implementation of AgentScope Durable, a framework component designed to help developers build reliable long-running enterprise AI agents. The project addresses the challenge of maintaining task continuity when user connections drop, services restart, or execution instances are replaced.
The core capability is 'Durable' execution, which organizes an agent's workflow into state that can be persistently saved, confirmed, and recovered. Unlike simple session history saving, this mechanism tracks specific logical checkpoints such as whether a test request was accepted, where an external operation is located, and whether results have been handed back. This allows the system to resume work from committed states rather than guessing progress from natural-language logs.
Architecturally, AgentScope Durable sits alongside ReActAgent (reasoning loop) and HarnessAgent (context management). It connects native agent checkpoints to persistent storage via a HarnessAdapter and supports asynchronous tool execution in independent sandboxes through an Executor. Key features include Turn-based task queuing, steering during execution (allowing users to adjust running tasks without restarting them), and explicit recovery rules for interrupted workflows.
The implementation is available on GitHub at https://github.com/agentscope-ai/agentscope-java ↗. While the framework provides the infrastructure for durable execution, it does not automatically guarantee exactly-once semantics for arbitrary business actions; safe retry logic still depends on the idempotency capabilities of the underlying tools.