Research explainer · Agents & automation
What should an AI agent leave for its next session?
A handoff pattern for jobs that outlast a single context window.

Leave evidence of progress
Anthropic describes agents working incrementally and leaving artefacts across sessions. A compact handoff can carry the active objective, completed work, verification evidence and known failures. Store it beside the artefact it describes so the next session can check both.
Make recovery measurable
Interrupt a job before a write, immediately after a write and after verification. On restart, compare the recorded state with what actually exists. Use a stable job identifier and an operation key to prevent a retry from creating the same side effect twice.
Give the next session a stopping rule
Define when it should finish, alert a person or wait for approval. Measure completed jobs, duplicated actions and recovery time. Those numbers are more useful than how many tool calls the agent made.

