agent-send flags.
Prerequisites
A sandbox in the
active / running / started state. See
Create a sandbox.CLI: pick or start a session at agent-send time
The CLI doesn’t expose session CRUD directly. To control which session a prompt runs in, use the flags onagent-send.
SDK: full session lifecycle
The SDK exposes create / list / get / get-latest / update on sessions.Create a session
List or fetch sessions
getLatestSession is the only call where a 404 from the server is normal —
it means “no session yet” and the SDK returns null rather than throwing.
You don’t need an error handler for this case.