Skip to content
BENIBIX Learn

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

continue is the Agent SDK option that picks up the most recent session in the current folder. In Python it is continue_conversation. You do not need a session ID, because the SDK finds the latest one for you. It suits an app that runs one chat at a time. To pick a session that is not the latest, use resume.

Example code

typescript
query({ prompt: "Carry on", options: { continue: true } })
Go on with the latest session in this folder.
continue, resume and forkSession side by side.

Common mistake

Using it when several chats run in one folder. It takes the latest, which may be the wrong one.

Key takeaways

  1. 1
    Latest in the folder. No ID.
  2. 2
    One chat at a time. Best fit.
  3. 3
    Otherwise use resume. By ID.

Compare