Salar Saeedi

Automation & agents · Analysis

Give a long-running agent state it can resume from

Store completed work, unresolved decisions and evidence outside the conversation so a new context can pick up correctly.

Salar Saeedi1 min read
Three-stage illustration — Give a long-running agent state it can resume from

An assistant has reviewed eleven invoices. The chat includes twenty minutes of exploration but no reliable list of what was verified. Opening a larger context merely preserves the ambiguity. The next worker needs the job state and evidence references.

Write a small recovery record

Record completed item IDs, unresolved questions, source links and the next expected action. Keep temporary reasoning and verbose tool output outside this record. Anthropic describes compacting useful context and using external artifacts across sessions.

Source · Anthropic · Context engineering · Anthropic · Long-running agent harnesses

Track actions in the system

Write a state change when an item actually completes. An orchestration history can track workflow execution independently of what a model remembers or summarizes.

Source · Temporal · Workflow execution

Practice a clean handoff

Stop after a partial review, remove the prior conversation and restart from the record. The first action should use the next pending item. Check for both skipped items and repeated work.

What to take away

A checkpoint should survive a handoff to another worker. Clear links and a next state usually matter more than preserving every message.

References

Related work in the portfolio