Follow-up Prompts
UsesendPrompt() 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 theclaude_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:Reconfiguring Mid-Session
Change model, tools, or working directory while the session is running: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.