Skip to main content
Agent conversations can extend beyond a single prompt. Send follow-up prompts within the same session, resume a conversation in a new session, or reconnect to a running agent.

Follow-up Prompts

Use sendPrompt() to continue a conversation within the same running session:

Resuming Across Sessions

Resume continues a previous conversation in a new agent session. This is useful when the original session has ended or you want to fork the conversation. Capture the claude_session_id from the turn_complete event, then pass it as resume when starting a new session:
resume is available in the TypeScript SDK only. Python SDK support is planned — use the HTTP API directly to pass the resume field.

Attach vs Resume

Interrupting

Stop the agent’s current turn:
The agent stops working but the session stays alive — you can send a new prompt to continue.

Reconfiguring Mid-Session

Change model, tools, or working directory while the session is running:
The new configuration takes effect on the next turn.

Managing Sessions

Listing Sessions

Attaching to a Running Session

Reconnect to an agent session that’s already running — useful after a network disconnect or when monitoring from a different client:
Agent sessions are SDK-only — there is no CLI command for agents yet.
Back to Agents overview. See also: Events · Tools.