How to Restart an Agent Run Without a Duplicate Write After a Crash
Restart a crashed agent run safely by checking which writes already landed before re-running any step.
THE FIELD GUIDE
Build, connect, and test tool-using agents and repeatable AI workflows with practical examples.
Restart a crashed agent run safely by checking which writes already landed before re-running any step.
Recover an agent run after a tool timeout by checking what the tool did, then retrying once with a shorter request.
Give an agent a fallback answer to use when no tool returns a result, so it says it cannot help instead of…
Give an agent a second tool to try when its first tool fails, so one broken tool does not end the run.
Catch a rate-limit error on an agent run, wait for the stated delay, and retry the run once before alerting anyone.
Retry a failed agent tool call with a growing pause between attempts, and only for transient errors such as rate limits.
Set a wall-clock time limit on a long agent task so it ends with a partial result instead of running all day.
Run independent agent subtasks in parallel so a list of items is processed at the same time instead of one by one.
Split a long agent task into smaller subtasks with one deliverable each, so a failure loses one subtask, not the whole run.
Save an agent result into session state under a named key so the next agent can read it without re-running the work.