FolioFolioDocs

Agent sessions

Folio separates storage from compute. Your files live durably on the shared drive, while compute targets attach to that drive on demand, run agentic harnesses or tools, save their outputs back to the drive, and sleep or shut off when idle without losing any work.

Each workspace includes a cloud machine that can run multiple sessions in parallel, mounting the same shared drive at different branches as needed. For example, you can run Claude Code, Codex, and a shell script at the same time on separate branches of the same project:

Three sessions on the same drive, each on its own branch: Claude Code renders a clip of every cut, Codex fixes a scene, a shell runs a scriptThree sessions on the same drive, each on its own branch: Claude Code renders a clip of every cut, Codex fixes a scene, a shell runs a script

Starting a session

Open Start agent session to launch a new terminal session attached to your workspace:

The Start agent session dialog: the agent, the machine, the working folder, and the branch the session works onThe Start agent session dialog: the agent, the machine, the working folder, and the branch the session works on
  • Agent: Pick Shell only (the default), Claude Code, Codex, or OpenCode. API keys configured in workspace Keys are injected into the session automatically.
  • Machine: Your workspace's cloud machine is shown by its hardware specs (for example, 4 CPU · 8 GB RAM · 69 GB disk). One cloud machine supports multiple concurrent sessions. Machines are billed per machine per month, not metered by usage.
  • Working folder: The folder inside the mounted drive where the session starts.
  • Branch: Start a new branch from main, continue an existing open branch, or work directly on main. Each session gets its own branch-bound mount. On a branch, saves become the branch's current version automatically; on main, saves add versions to history without moving main's current version until you accept them (see Pinning versions on mounts and sessions).

Session lifecycle and sleeping machines

  • Keep working after closing the browser: Closing your browser tab does not stop a running session, and active sessions survive workspace restarts. Reopening Folio reconnects you to the running session tabs.
  • Waking and sleeping: When no sessions are running, a cloud machine can go to sleep automatically. Starting a new session wakes it on demand.
  • Stopping a session: Click Stop in the session bar (or exit the agent or shell) to end the session and unmount its branch.
The shared drive and the workspace's cloud machine. The drive is durable and versioned, with the branches main, render-all-cuts and scene-pass. The machine runs three sessions at the same time: a shell on main, Claude Code on render-all-cuts and Codex on scene-pass. Each session reads and saves in place on its branch. The folder /tmp is on the machine only, and the machine clears it when it sleeps or stopsThe shared drive and the workspace's cloud machine. The drive is durable and versioned, with the branches main, render-all-cuts and scene-pass. The machine runs three sessions at the same time: a shell on main, Claude Code on render-all-cuts and Codex on scene-pass. Each session reads and saves in place on its branch. The folder /tmp is on the machine only, and the machine clears it when it sleeps or stops

Filesystem scope, scratch files, and chained agents

  • Mounted drive vs /tmp: Agents work directly inside the mounted workspace filesystem, so every file saved there is persisted, versioned, and visible across Folio. For temporary artifacts or intermediate build files that do not need long-term persistence, a session can write to /tmp (outside the mount), which stays local to the machine and is not persisted when the machine stops or resets.

  • Workspace scope: Today, a session's mount exposes the entire authorized workspace on its chosen branch; the working folder sets where the session starts, not an access boundary.

  • Chained agentic workflows: Separating storage from compute also makes multi-step agent handoffs clean. When one agent needs to kick off a long-running process on another sandbox, it does not need to copy files back and forth like email attachments. Instead, Folio's permission model is designed around passing a narrowed reference to the shared drive scoped to just the files that process needs. See Scoped references.

Agent A, a cloud session, passes Sandbox B a scoped reference to the shared drive on the branch scene-pass: a short-lived mount token, and no copies of the files. Sandbox B, a long job on a GPU, mounts the files it may use in place: it reads scene.blend and textures, saves stills/still.png as a new version, and cannot see other-projects. The file scope is in alphaAgent A, a cloud session, passes Sandbox B a scoped reference to the shared drive on the branch scene-pass: a short-lived mount token, and no copies of the files. Sandbox B, a long job on a GPU, mounts the files it may use in place: it reads scene.blend and textures, saves stills/still.png as a new version, and cannot see other-projects. The file scope is in alpha