{
  "id": 14139582,
  "title": "Durable Sessions for the Claude Agent SDK, in One Prompt",
  "url": "https://urgent.news/2026/10/13/durable-sessions-for-the-claude-agent-sdk-in-one-prompt",
  "topic": "ai",
  "section": "AI",
  "published": "2026-10-13T06:52:34.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/casper_nielsen_47eb2e6023/durable-sessions-for-the-claude-agent-sdk-in-one-prompt-3mb3"
  },
  "original_language": "en",
  "account": "Claude Agent SDK now supports durable sessions and human approvals, allowing agents to survive crashes and resume tasks with intact sessions. To get started, install Dapr agents and initialize the environment using pip install dapr - agents dapr init. Then, add the following code snippet to your agent definition:\n\nfrom dapr_agents import DurableAgent\nfrom dapr_agents.executors import ClaudeAgentExecutor\nagent = DurableAgent(\nname = \"reviewer\"\n, executor = ClaudeAgentExecutor(session_store = statestore)\n, require_approval = [merge_pr, deploy]\n)\n\nOnce the agent is started, you can break it on purpose by killing the process mid-task. When you restart the agent, it will resume from the last saved point, and the previously completed steps will be retrieved from the journal instead of being re-run by Claude. You can also trigger an approval-gated tool, close your laptop, and approve the task later, and the wait time will still be remembered.\n\nThe behavior of this setup has been tested against the DaprAgents main branch, and the release notes provide the exact versions used: https://github.com/dapr/dapr-agents/releases. The same functionality works with LangChain Deep Agents, which was added to the diagrid python package earlier this year. Deep agents with long tasks particularly benefit from durable sessions.\n\nFor a guided introduction, check out the free Dapr Agents track on Dapr University: https://www.diagrid.io/university/dapr-agents. Give it a try and share your thoughts!",
  "summary": "We shipped a Claude Agent SDK executor in Dapr Agents with durable sessions and human approvals. Meaning: your Claude-built agent survives a crash mid-task, resumes with its session intact, and waits for an approval for as long as the approval takes – through restarts and deploys. Getting started is rather easy: pip install dapr - agents dapr init Then paste this into your agent definition: from…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}