Sandcastle includes three agent providers beyond Claude Code:Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mattpocock/sandcastle/llms.txt
Use this file to discover all available pages before exploring further.
codex for OpenAI Codex, opencode for OpenCode, and pi for Pi. All three follow the same pattern — call the factory with a model string, pass the result as the agent option to run(), and Sandcastle handles the rest.
Session capture and
resumeSession are Claude Code-specific features. The codex, opencode, and pi providers do not capture sessions and ignore resumeSession.Codex
Thecodex provider invokes codex exec inside the sandbox with JSON output mode. It streams command executions and agent messages from stdout.
Import and signature
Options
Reasoning effort level passed to Codex via
-c model_reasoning_effort=<value>.Environment variables injected by this agent provider at launch time.
Usage
OpenCode
Theopencode provider invokes opencode run inside the sandbox. OpenCode does not emit structured JSON, so its output is passed through as raw stdout — Sandcastle does not parse it into stream events.
Import and signature
Options
Provider-specific reasoning variant passed via
--variant. The accepted values depend on the model and provider (e.g. "high", "max", "low", "minimal").Environment variables injected by this agent provider at launch time.
Usage
Pi
Thepi provider invokes the pi CLI inside the sandbox in JSON mode. It parses message_update and agent_end events from stdout to extract text and result content.
Import and signature
Options
Environment variables injected by this agent provider at launch time.