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.Documentation Index
Fetch the complete documentation index at: https://docs.opencomputer.dev/llms.txt
Use this file to discover all available pages before exploring further.
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
| Attach | Resume | |
|---|---|---|
| Session state | Still running | Ended or running |
| What happens | Reconnect to event stream | New session, continues conversation |
| SDK support | TypeScript, Python | TypeScript only |
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.