Working in a cloned workspace
An agent can clone a workspace to a local folder: the jobs, the automations, the accumulated skills, and the open issues, in files it can read and diff. The clone includes a generatedAGENTS.md with the workspace’s rules and the phase loop for the work.
Inside a clone, the contract is:
- Call
session_startfirst. It returns the workspace rules, the current state of the work, and whatever a previous session left behind, so the agent resumes rather than restarts. - Checkpoint as you go.
session_checkpointpersists progress at meaningful points. - Call
session_endbefore finishing. It writes the final state so the next agent, on any machine, picks up where this one stopped.
Handoffs
Session state syncs to the workspace itself, not just the local folder. That is what makes multi-agent work practical: an agent on another machine, a scheduled run overnight, or a person in the dashboard all see the same record of what was done, what broke, and what was decided. Two conventions carry the context:- Issues hold durable notes: quirks of the target system, decisions made, problems encountered. Read them before starting; write them when you learn something the next agent needs.
- Skills hold reusable automation patterns learned from previous builds, per workspace. Load the relevant ones before writing automation code, and save new ones when you solve something general.
Treatsession_startandsession_endas non-negotiable bookends. The cost is two calls; the payoff is that no agent ever starts from zero on work another agent already did.