Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Production Agent Systems

Free · sign in to start and track progress

1 · Architecture

  • 1Multi-agent systems
  • 2Durable, long-running agents

    Exercise answers

    • Answer: Build and break an idempotent outbox
    • Answer: An eve workflow tool that waits for a search result
  • 3Security and prompt injection

2 · Operating agents

  • 4Compliance and auditability
  • 5Observability and cost
  • 6Continuous improvement
CapstoneProduction-readiness review and hardeningReference implementation

Module 1 · Architecture · Lesson 2

Durable, long-running agents

Real cases last weeks. How durable sessions, checkpoints, parked waits, retries and idempotency keys let an agent wait on the outside world and survive crashes and deploys without doing anything twice.

80 min 1 video 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodeNode.js, pnpm and TypeScriptDurable agents with eveGet an OpenRouter keyLocal models with Ollama

By the end of this lesson you can

  • Explain sessions, turns, steps and checkpoints, and what replays after a crash in eve
  • Design waits on external events (search results, replies, approvals, deadlines) that hold no compute
  • Compute the expected duplicate side effects of a retry policy and remove them with idempotency keys and an outbox
  • Decide what state belongs in the agent session and what belongs in the business's system of record
  • Plan for deploys and model changes during long-lived sessions

On this page

  • Intuition: the matter file, not the clerk's memory
  • The mechanism in eve
  • Waiting on the outside world
  • Wait for a callback
  • Wait for a person, with a deadline
  • Wake up on a schedule
  • Real deadlines are domain facts
  • Retries, and why they duplicate
  • A worked example
  • The fix: idempotency keys and an outbox
  • What lives where
  • The Claude side
  • Misconceptions and limits
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Intuition: the matter file, not the clerk's memory
  2. 02The mechanism in eve
  3. 03Waiting on the outside world
  4. 04Retries, and why they duplicate
  5. 05What lives where
  6. 06The Claude side
  7. 07Misconceptions and limits
  8. 08Connections
  9. 09Summary

Sources & further reading

  • How we built our multi-agent research systemLab research · Hadfield, Zhang, Lien, Scholz, Fox, Ford · Anthropic · 2025The "production reliability" section. Errors compound in stateful agents, so resume from where the failure happened, and use rainbow deployments so running agents aren't broken by updates.
  • eve Execution Model and DurabilityDocs · VercelThe core reference. Read sessions, turns and steps; resuming after a crash (what replays, what doesn't, and why external effects are not exactly-once); parked work; and deployment handoff and stranded sessions.
  • eve Workflows as ToolsDocs · VerceldefineWorkflowTool, "use workflow" and "use step", createWebhook, sleep, ctx.ask with deadlines, tasks, and the rule that side effects belong in steps.
  • Agent SDK sessionsDocs · AnthropicContinue, resume and fork in the Claude Agent SDK, and resuming across hosts with a session store. The Claude-side equivalent of a durable conversation.
  • Implementing Stripe-like Idempotency Keys in PostgresArticle · Brandur Leach · 2017The clearest practical treatment of idempotency keys, foreign state mutations, atomic phases and recovery points. The ideas transfer directly to agent tools.
  • A new programming model for durable executionArticle · Pranay Prakash · Vercel · 2026The Workflow SDK model under eve: "use workflow", "use step", an event log as the source of truth, and suspending for minutes to months without compute.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 9 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks