> ## Documentation Index
> Fetch the complete documentation index at: https://psychiatrist.sudo.la/llms.txt
> Use this file to discover all available pages before exploring further.

# Like sandcastle

> What the SDK shares with sandcastle, and what is ours.

The agent is a provider value and `run()`'s result resumes and forks, as in [sandcastle](https://github.com/mattpocock/sandcastle) ([ADR 0009](https://github.com/psychiatrist/psychiatrist/blob/main/docs/adr/0009-agents-and-sandboxes-as-provider-values.md)), so code moves between the two with few changes. A harness without session records cannot resume, as a sandcastle provider without session storage cannot.

Ours alone: sessions you steer mid-turn and send turns of their own effort and output, `onTurn` in place of fixed iterations, `branch` in place of `branchStrategy` (nothing is merged back), and the guard on every session.

Sandboxes as provider values (`seatbelt()`, `bwrap()`, `noSandbox()`) and `captureSessions` arrive with the native sandbox Planned · #14.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.