🧩continue Option
Also known as continue_conversation, Agent SDK continue, Claude Agent SDK continue
The option that picks up the last session in the folder. No ID is needed.
Think of it like
It is like a book you open at the bookmark.
Example
Leo's script crashed mid-task. He runs it again with continue set to true, and the agent picks up where it was.
Why it matters
It is the easiest way to survive a restart, with nothing to store.
Definition
Example code
typescript
query({ prompt: "Carry on", options: { continue: true } })Common mistake
Key takeaways
- 1Latest in the folder. No ID.
- 2One chat at a time. Best fit.
- 3Otherwise use resume. By ID.