← Use cases · Building agents

AI agents for running claude or codex agents as a durable service

Short answer: Agno 3.1.3 makes ClaudeAgent sessions resumable on any replica via database-stored transcripts, with background runs and cancellation for Claude and Codex agents. For a simple single-process agent it's overkill.

Tools for this job

#ToolWhy for this jobAgentPick ScoreLink
#1AgnoResumable ClaudeAgent sessions across replicas (3.1.3)91/100Official source ↗
#2OpenAI Agents SDKLighter option for OpenAI-only multi-agent flows86/100Official source ↗

Ordered by AgentPick Score. Links may become affiliate links; they never change order. Disclosure.

How to do it

  1. Store transcripts in a database, not memory.
  2. Run long tasks in the background with a cancel path.
  3. Scale to more than one replica only after one works.
  4. Alert on stuck runs.

Starter prompt

Wrap my [Claude/Codex] agent so each session is stored in [database] and can resume on any replica. Add a background-run endpoint and a cancel endpoint, with tests.
Get one use case like this every week. Tools, prompt and our verdict in AgentPick Weekly. Free. Get the weekly digest

Related use cases

Running several coding tasks in parallel →

Coding

Refactoring a codebase without leaving VS Code →

Coding

Trying a coding agent without paying first →

Coding

Building a typed Python agent with structured output →

Building agents

AgentPick Weekly

The week's new agent tools with a verdict on each, every week. Free. We'll email you a link to confirm, and you can unsubscribe any time. See our Privacy Policy.