Skip to main content
A session is one conversation with one harness on one machine. This page is about the session itself. For talking to the agent in it, see Conversations.

Start a session

A session’s harness, model, effort and working directory are chosen when it starts, and stay fixed.
The reference has every option, and Harnesses and models the models and effort levels.

Check on your sessions

list gives the open sessions, and with all the closed and failed ones too. A session runs one turn at a time. A machine can have several sessions, and they run side by side.

Close a session

A plain close ends the session at once. It interrupts a running turn, drops the messages that are still waiting, and stops the agent. With whenDone, nothing is cut short. The session stays open, and still takes messages, until no turn runs, no message waits, and no command that the agent left running is still going.

Sessions and the machine

Sessions live on the machine’s disk. A small service on every machine runs them. It starts with the machine, does nothing until it is called, and doesn’t keep the machine awake by itself.