Directories
¶
| Path | Synopsis |
|---|---|
|
_old
|
|
|
cmd/gen-contract
command
Command gen-contract writes the TypeScript and Swift mirrors of the Studio API's wire shapes from the Go types that define them.
|
Command gen-contract writes the TypeScript and Swift mirrors of the Studio API's wire shapes from the Go types that define them. |
|
cmd/sandbox-cli
command
Command sandbox runs AI coding agents and arbitrary commands inside a disposable, isolated Docker container.
|
Command sandbox runs AI coding agents and arbitrary commands inside a disposable, isolated Docker container. |
|
cmd/sandbox-studio-api
command
Command sandbox-studio-api runs the local HTTP control plane for sandbox-cli — see internal/studioapi and docs/studio-api/README.md.
|
Command sandbox-studio-api runs the local HTTP control plane for sandbox-cli — see internal/studioapi and docs/studio-api/README.md. |
|
internal/agentctx
Package agentctx knows where each agent keeps its conversation transcripts, and remembers what it found.
|
Package agentctx knows where each agent keeps its conversation transcripts, and remembers what it found. |
|
internal/cli
Package cli wires the cobra command tree for the `sandbox-cli` binary.
|
Package cli wires the cobra command tree for the `sandbox-cli` binary. |
|
internal/contract
Package contract generates the TypeScript mirror of the Studio API's wire shapes from the Go types that define them.
|
Package contract generates the TypeScript mirror of the Studio API's wire shapes from the Go types that define them. |
|
internal/detect
Package detect decides how an agent is doing, from evidence rather than from prose.
|
Package detect decides how an agent is doing, from evidence rather than from prose. |
|
internal/doctor
Package doctor asks whether a host can deliver what a profile promises.
|
Package doctor asks whether a host can deliver what a profile promises. |
|
internal/history
Package history is a queryable index over the audit log.
|
Package history is a queryable index over the audit log. |
|
internal/image
Package image lazily builds the embedded sandbox base image on first use.
|
Package image lazily builds the embedded sandbox base image on first use. |
|
internal/metrics
Package metrics renders a live, one-line resource gauge (memory, CPU, elapsed time, and the workspace's git branch) for a running sandbox container.
|
Package metrics renders a live, one-line resource gauge (memory, CPU, elapsed time, and the workspace's git branch) for a running sandbox container. |
|
internal/netpolicy
Package netpolicy is a seam for network egress control.
|
Package netpolicy is a seam for network egress control. |
|
internal/protocol
Package protocol is the wire format between sandbox-cli's clients — the CLI, Studio, an SDK — and the session server that owns the catalog of running sandboxes.
|
Package protocol is the wire format between sandbox-cli's clients — the CLI, Studio, an SDK — and the session server that owns the catalog of running sandboxes. |
|
internal/rescue
Package rescue is the crash safety net for the user's work.
|
Package rescue is the crash safety net for the user's work. |
|
internal/runtime
Package runtime executes a normalized RunSpec inside a container backend.
|
Package runtime executes a normalized RunSpec inside a container backend. |
|
internal/sandbox
Package sandbox composes config, image building, and the runtime backend into a single Session that resolves a request and runs it in an isolated container.
|
Package sandbox composes config, image building, and the runtime backend into a single Session that resolves a request and runs it in an isolated container. |
|
internal/session
Package session owns the catalog of sandboxes for one repository: which worktrees exist, which containers are in them, and how each is doing.
|
Package session owns the catalog of sandboxes for one repository: which worktrees exist, which containers are in them, and how each is doing. |
|
internal/studioapi
Package studioapi is the HTTP control plane for sandbox-cli: a local API server a frontend ("Sandbox Studio") talks to instead of shelling out to the CLI itself.
|
Package studioapi is the HTTP control plane for sandbox-cli: a local API server a frontend ("Sandbox Studio") talks to instead of shelling out to the CLI itself. |
|
internal/worktree
Package worktree makes "one sandbox per git branch" a one-liner.
|
Package worktree makes "one sandbox per git branch" a one-liner. |
|
cmd
|
|
|
sandbox-cli
command
Command sandbox-cli runs AI coding agents and arbitrary commands inside a disposable, isolated sandbox.
|
Command sandbox-cli runs AI coding agents and arbitrary commands inside a disposable, isolated sandbox. |
|
sandbox-gateway
command
Command sandbox-gateway is one address in front of many sandboxd nodes (package gateway).
|
Command sandbox-gateway is one address in front of many sandboxd nodes (package gateway). |
|
sandbox-guestd
command
Command sandbox-guestd is the guest agent: the only thing inside a sandbox VM that the host talks to (internal/guestproto).
|
Command sandbox-guestd is the guest agent: the only thing inside a sandbox VM that the host talks to (internal/guestproto). |
|
sandboxd
command
Command sandboxd serves Sandbox API v1 (docs/api/v1.md) for one machine.
|
Command sandboxd serves Sandbox API v1 (docs/api/v1.md) for one machine. |
|
internal
|
|
|
agentctx
Package agentctx reads agents' conversation transcripts.
|
Package agentctx reads agents' conversation transcripts. |
|
agenthome
Package agenthome is what an agent finds in its home directory in a sandbox: its saved login, copied in when a run starts and back out when it ends, and the tools volume an image without the agent installs it into.
|
Package agenthome is what an agent finds in its home directory in a sandbox: its saved login, copied in when a run starts and back out when it ends, and the tools volume an image without the agent installs it into. |
|
agents
Package agents describes the AI coding agents sandbox-cli knows how to start, as data rather than as code duplicated per subcommand.
|
Package agents describes the AI coding agents sandbox-cli knows how to start, as data rather than as code duplicated per subcommand. |
|
agentstate
Package agentstate says how an agent is doing — working, waiting for you, idle, finished — from evidence rather than from prose.
|
Package agentstate says how an agent is doing — working, waiting for you, idle, finished — from evidence rather than from prose. |
|
api
Package api is the Sandbox API v1: its wire types, a Go client, and — in api/conformance — the suite that defines what every endpoint must do.
|
Package api is the Sandbox API v1: its wire types, a Go client, and — in api/conformance — the suite that defines what every endpoint must do. |
|
api/conformance
Package conformance is the definition of "the same API in every mode".
|
Package conformance is the definition of "the same API in every mode". |
|
audit
Package audit is the server's event log: what each sandbox was asked to do, and what happened to it.
|
Package audit is the server's event log: what each sandbox was asked to do, and what happened to it. |
|
backend
Package backend is the seam between what a sandbox should be and the thing that makes one: a VM under the macOS `container` runtime, a Firecracker microVM, or the in-memory fake.
|
Package backend is the seam between what a sandbox should be and the thing that makes one: a VM under the macOS `container` runtime, a Firecracker microVM, or the in-memory fake. |
|
backend/fake
Package fake is an in-memory backend, so the API, the policy and the server can be tested — and the conformance suite run — with no VM and no daemon.
|
Package fake is an in-memory backend, so the API, the policy and the server can be tested — and the conformance suite run — with no VM and no daemon. |
|
backend/firecracker
Package firecracker is the Linux backend, for self-hosted and cloud: every sandbox is a Firecracker microVM.
|
Package firecracker is the Linux backend, for self-hosted and cloud: every sandbox is a Firecracker microVM. |
|
backend/macos
Package macos is the local backend: on a Mac (macOS 26+, arm64) each sandbox is a lightweight VM run by the native `container` runtime — its own kernel, one per sandbox.
|
Package macos is the local backend: on a Mac (macOS 26+, arm64) each sandbox is a lightweight VM run by the native `container` runtime — its own kernel, one per sandbox. |
|
cli
Package cli is cobra wiring and nothing else.
|
Package cli is cobra wiring and nothing else. |
|
creds
Package creds is the credential broker.
|
Package creds is the credential broker. |
|
egressproxy
Package egressproxy enforces the egress allowlist by **name** rather than by address.
|
Package egressproxy enforces the egress allowlist by **name** rather than by address. |
|
gateway
Package gateway is sandbox-gateway: one address in front of any number of sandboxd nodes (docs/roadmap/task-7-fleet-gateway.md).
|
Package gateway is sandbox-gateway: one address in front of any number of sandboxd nodes (docs/roadmap/task-7-fleet-gateway.md). |
|
githard
Package githard neutralises the parts of a git repository's own configuration that make git run commands.
|
Package githard neutralises the parts of a git repository's own configuration that make git run commands. |
|
guestproto
Package guestproto is how the host talks to sandbox-guestd inside a VM — the only way it does.
|
Package guestproto is how the host talks to sandbox-guestd inside a VM — the only way it does. |
|
hostpath
Package hostpath holds the refusals that apply to every host path sandboxd reads or mounts: never the filesystem root, never the user's home, never an ancestor of it — compared by identity, not by string.
|
Package hostpath holds the refusals that apply to every host path sandboxd reads or mounts: never the filesystem root, never the user's home, never an ancestor of it — compared by identity, not by string. |
|
image
Package image turns an OCI image into what a backend boots: on Linux, a read-only ext4 root disk for Firecracker.
|
Package image turns an OCI image into what a backend boots: on Linux, a read-only ext4 root disk for Firecracker. |
|
metrics
Package metrics writes the Prometheus text exposition format by hand, for sandboxd's and sandbox-gateway's GET /metrics.
|
Package metrics writes the Prometheus text exposition format by hand, for sandboxd's and sandbox-gateway's GET /metrics. |
|
policy
Package policy defines the sandbox configuration schema and its layered discovery/merge rules: built-in defaults < user config < project config < flags.
|
Package policy defines the sandbox configuration schema and its layered discovery/merge rules: built-in defaults < user config < project config < flags. |
|
publicnet
Package publicnet keeps a connection the host makes on a client's behalf — to a URL the client named — on the public internet.
|
Package publicnet keeps a connection the host makes on a client's behalf — to a URL the client named — on the public internet. |
|
routing
Package routing decides which agent a run actually uses when the first choice is unavailable.
|
Package routing decides which agent a run actually uses when the first choice is unavailable. |
|
server
Package server serves Sandbox API v1 (docs/api/v1.md) for one machine, over whichever backend that machine has.
|
Package server serves Sandbox API v1 (docs/api/v1.md) for one machine, over whichever backend that machine has. |
|
spec
Package spec turns an API request into a fully resolved backend.Spec, against the server's policy, and refuses what the policy does not permit.
|
Package spec turns an API request into a fully resolved backend.Spec, against the server's policy, and refuses what the policy does not permit. |
|
state
Package state records what no later command could otherwise recover about a sandbox: its repository, branch, agent and base.
|
Package state records what no later command could otherwise recover about a sandbox: its repository, branch, agent and base. |
|
studio
Package studio is the local server behind `sandbox-cli studio`: it serves the browser UI and a small API, and holds the one thing the browser must not — the token of the sandboxd the current context points at.
|
Package studio is the local server behind `sandbox-cli studio`: it serves the browser UI and a small API, and holds the one thing the browser must not — the token of the sandboxd the current context points at. |
|
termsafe
Package termsafe strips the characters a terminal reads as commands from strings that came from somewhere untrusted.
|
Package termsafe strips the characters a terminal reads as commands from strings that came from somewhere untrusted. |
|
version
Package version holds build metadata and the base image tag.
|
Package version holds build metadata and the base image tag. |
|
vsock
Package vsock is the host<->guest socket: listening on a vsock port inside a Linux guest, and dialling one from the host through Firecracker's unix-socket bridge.
|
Package vsock is the host<->guest socket: listening on a vsock port inside a Linux guest, and dialling one from the host through Firecracker's unix-socket bridge. |
|
scripts
|
|
|
m3/m3tool
command
Command m3tool is the helper for the M3 measurements (scripts/m3/README.md).
|
Command m3tool is the helper for the M3 measurements (scripts/m3/README.md). |
Click to show internal directories.
Click to hide internal directories.