devbox/

directory
v0.6.76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2026 License: AGPL-3.0, Apache-2.0, MIT

Directories

Path Synopsis
api
v1
Package devboxv1 holds the generated devbox.v1 gRPC contract (from proto/devbox/v1 in the repository root, regenerate with `make devbox-proto`) plus the metadata conventions shared by console, KAS, devbox-gateway and devbox-daemon.
Package devboxv1 holds the generated devbox.v1 gRPC contract (from proto/devbox/v1 in the repository root, regenerate with `make devbox-proto`) plus the metadata conventions shared by console, KAS, devbox-gateway and devbox-daemon.
Package daemon is devbox-daemon, PID 1 in every DevBox sandbox (section 4.2).
Package daemon is devbox-daemon, PID 1 in every DevBox sandbox (section 4.2).
acp
Package acp is the daemon's ACP client layer: a raw JSON-RPC connection to a harness over stdio, converters between ACP JSON and the devbox.v1 protos, the v1 -> v2 entity normalizer, subagent lineage extraction and the live entity store.
Package acp is the daemon's ACP client layer: a raw JSON-RPC connection to a harness over stdio, converters between ACP JSON and the devbox.v1 protos, the v1 -> v2 entity normalizer, subagent lineage extraction and the live entity store.
agents
Package agents is the daemon's ACP session service (DBX-41, DBX-48): one ACP connection per agent type, shared by that agent's threads; threads mapped onto ACP's session built-ins; the prompt lifecycle with the per-instance running-thread limit; permission and elicitation interactions; config options (models included); slash commands; subagent lineage; and the live entity store whose normalized, v2-shaped changes are appended to the daemon's event log, with settled entities written to the box's transcript.
Package agents is the daemon's ACP session service (DBX-41, DBX-48): one ACP connection per agent type, shared by that agent's threads; threads mapped onto ACP's session built-ins; the prompt lifecycle with the per-instance running-thread limit; permission and elicitation interactions; config options (models included); slash commands; subagent lineage; and the live entity store whose normalized, v2-shaped changes are appended to the daemon's event log, with settled entities written to the box's transcript.
authn
Package authn validates `devbox-request-token`, the JWT the gateway attaches to every Daemon call, against the JWKS delivered in Initialize.
Package authn validates `devbox-request-token`, the JWT the gateway attaches to every Daemon call, against the JWKS delivered in Initialize.
browser
Package browser runs the sandbox's visible Chromium (DBX-45): Xvfb, Chromium with a CDP port the agent's Playwright MCP drives, x11vnc on localhost bridged to the /browser/vnc WebSocket, and the /preview/:port/* reverse proxy.
Package browser runs the sandbox's visible Chromium (DBX-45): Xvfb, Chromium with a CDP port the agent's Playwright MCP drives, x11vnc on localhost bridged to the /browser/vnc WebSocket, and the /preview/:port/* reverse proxy.
creds
Package creds manages the credentials that must live in the sandbox (sections 4.9 and 4.11): cloud OIDC token files with SDK configuration, and the Codex subscription bundle on tmpfs with compare-and-swap write-back.
Package creds manages the credentials that must live in the sandbox (sections 4.9 and 4.11): cloud OIDC token files with SDK configuration, and the Codex subscription bundle on tmpfs with compare-and-swap write-back.
derr
Package derr builds gRPC errors carrying a devbox.v1.ErrorDetail, so callers can branch on the reason.
Package derr builds gRPC errors carrying a devbox.v1.ErrorDetail, so callers can branch on the reason.
eventlog
Package eventlog is the daemon's offset-addressed event log (section 4.6).
Package eventlog is the daemon's offset-addressed event log (section 4.6).
fakeacp
Package fakeacp is a scripted ACP v1 agent for tests.
Package fakeacp is a scripted ACP v1 agent for tests.
files
Package files serves the filesystem and changes RPCs (DBX-43): listing, stat, reads with a content hash, compare-and-swap writes, recursive watches, and git changes grouped by checkout.
Package files serves the filesystem and changes RPCs (DBX-43): listing, stat, reads with a content hash, compare-and-swap writes, recursive watches, and git changes grouped by checkout.
gitutil
Package gitutil wraps the git CLI for checkout inspection, status and diffs (DBX-43).
Package gitutil wraps the git CLI for checkout inspection, status and diffs (DBX-43).
harness
Package harness builds the launch configuration for each agent harness (DBX-46, DBX-57): the ACP command, environment pointing model traffic at the console AI proxy with a placeholder key (or at the owner's plan), CA trust, home instruction files and the per-harness model boot flags used when an adapter has no ACP model control.
Package harness builds the launch configuration for each agent harness (DBX-46, DBX-57): the ACP command, environment pointing model traffic at the console AI proxy with a placeholder key (or at the owner's plan), CA trust, home instruction files and the per-harness model boot flags used when an adapter has no ACP model control.
idle
Package idle is the daemon's suspend detector (DBX-47, section 4.3a).
Package idle is the daemon's suspend detector (DBX-47, section 4.3a).
internal/clock
Package clock abstracts time so the daemon's timers (idle detection, settling, credential rotation) can be driven by a fake clock in tests.
Package clock abstracts time so the daemon's timers (idle detection, settling, credential rotation) can be driven by a fake clock in tests.
internal/fsutil
Package fsutil holds small filesystem helpers shared by the daemon's packages.
Package fsutil holds small filesystem helpers shared by the daemon's packages.
internal/gittest
Package gittest creates throwaway git repositories for tests.
Package gittest creates throwaway git repositories for tests.
proc
Package proc runs and supervises the daemon's child processes and, when the daemon is PID 1, reaps orphaned zombies without racing exec.Cmd.Wait for the children the daemon started itself.
Package proc runs and supervises the daemon's child processes and, when the daemon is PID 1, reaps orphaned zombies without racing exec.Cmd.Wait for the children the daemon started itself.
prs
Package prs readies a checkout for a pull request: it writes the title, body and commit message from the changes the box holds, branches off the default branch if needed, commits and pushes.
Package prs readies a checkout for a pull request: it writes the title, body and commit message from the changes the box holds, branches off the default branch if needed, commits and pushes.
terminal
Package terminal runs PTY sessions for the workbench terminal pane and `plural devbox ssh` (DBX-42).
Package terminal runs PTY sessions for the workbench terminal pane and `plural devbox ssh` (DBX-42).
transcript
Package transcript is the box's durable transcript: every settled entity revision, kept on the workspace volume (~/.plural/transcripts) so it survives suspends, snapshots and daemon restarts, and served to the gateway by Daemon.GetTimeline.
Package transcript is the box's durable transcript: every settled entity revision, kept on the workspace volume (~/.plural/transcripts) so it survives suspends, snapshots and daemon restarts, and served to the gateway by Daemon.GetTimeline.
trust
Package trust builds the sandbox's CA bundle: the system roots plus the egress gateway's interception CA, written to the writable trust store that SSL_CERT_FILE, NODE_EXTRA_CA_CERTS, REQUESTS_CA_BUNDLE and GIT_SSL_CAINFO point at.
Package trust builds the sandbox's CA bundle: the system roots plus the egress gateway's interception CA, written to the writable trust store that SSL_CERT_FILE, NODE_EXTRA_CA_CERTS, REQUESTS_CA_BUNDLE and GIT_SSL_CAINFO point at.
workspace
Package workspace hydrates and maintains the multi-repo home directory (DBX-44, section 4.2b): skeleton files, repository clones with the naming rule, the home instruction file, Project.md's managed table and stubs, AddRepository, per-thread worktrees, and uploaded git bundles.
Package workspace hydrates and maintains the multi-repo home directory (DBX-44, section 4.2b): skeleton files, repository clones with the naming rule, the home instruction file, Project.md's managed table and stubs, AddRepository, per-thread worktrees, and uploaded git bundles.
gateway
actors
Package actors is the gateway's Substrate client (DBX-32): the actor lifecycle, egress policies, tags and worker drain state, on top of the vendored substrate.ateapi.v1 bindings in pkg/devbox/substrate/ateapi.
Package actors is the gateway's Substrate client (DBX-32): the actor lifecycle, egress policies, tags and worker drain state, on top of the vendored substrate.ateapi.v1 bindings in pkg/devbox/substrate/ateapi.
actors/actorstest
Package actorstest is an in-memory substrate.ateapi.v1.Control server for gateway tests.
Package actorstest is an in-memory substrate.ateapi.v1.Control server for gateway tests.
core
Package core is the devbox gateway proper (sections 4.6 to 4.6b): it serves devbox.v1.Gateway through the KAS tunnel, drives instance lifecycles on Substrate, forwards daemon events to console, proxies history reads to the box that holds the transcript, executes suspends and backstops, and resolves actors for the egress package.
Package core is the devbox gateway proper (sections 4.6 to 4.6b): it serves devbox.v1.Gateway through the KAS tunnel, drives instance lifecycles on Substrate, forwards daemon events to console, proxies history reads to the box that holds the transcript, executes suspends and backstops, and resolves actors for the egress package.
egress
Package egress is the egress, credentials and MCP half of devbox-gateway (sections 4.4, 4.5, 4.7, 4.8, 4.9, 4.10 and 4.11 of the DevBoxes plan).
Package egress is the egress, credentials and MCP half of devbox-gateway (sections 4.4, 4.5, 4.7, 4.8, 4.9, 4.10 and 4.11 of the DevBoxes plan).
egress/credproviderv1
Package credproviderv1 holds Go bindings for Agent Substrate's substrate.credprovider.v1 plugin API, generated from a verbatim copy of substrate's api/credprovider/v1/credprovider.proto.
Package credproviderv1 holds Go bindings for Agent Substrate's substrate.credprovider.v1 plugin API, generated from a verbatim copy of substrate's api/credprovider/v1/credprovider.proto.
egress/scmpath
Package scmpath ties SCM HTTP requests to the repository they act on, from the host, method and raw path only (the egress ext_proc sees headers, never bodies).
Package scmpath ties SCM HTTP requests to the repository they act on, from the host, method and raw path only (the egress ext_proc sees headers, never bodies).
prober
Package prober is the gateway half of the agent probe handoff (pkg/devbox/probe): it watches the operator's probe request ConfigMaps, runs each probe in an actor resumed from the revision's golden tag and writes the result back.
Package prober is the gateway half of the agent probe handoff (pkg/devbox/probe): it watches the operator's probe request ConfigMaps, runs each probe in an actor resumed from the revision's golden tag and writes the result back.
router
Package router reaches devbox daemons through Substrate's atenet-router: gRPC (devbox.v1.Daemon) and HTTP (terminal, VNC and preview WebSockets) over mTLS, with the target actor in the ate-target-actor header.
Package router reaches devbox daemons through Substrate's atenet-router: gRPC (devbox.v1.Daemon) and HTTP (terminal, VNC and preview WebSockets) over mTLS, with the target actor in the ate-target-actor header.
tunnel
Package tunnel connects the gateway to KAS (DBX-31): a gRPC connection over WebSocket to KAS's devbox listener, carrying Ingest calls up and a pool of devbox.v1.Tunnel reverse tunnels that KAS sends devbox.v1.Gateway calls down.
Package tunnel connects the gateway to KAS (DBX-31): a gRPC connection over WebSocket to KAS's devbox listener, carrying Ingest calls up and a pool of devbox.v1.Tunnel reverse tunnels that KAS sends devbox.v1.Gateway calls down.
Package probe is the agent probe handoff between the deployment operator (internal/controller) and devbox-gateway (pkg/devbox/gateway/prober), section 4.2a of the DevBoxes plan.
Package probe is the agent probe handoff between the deployment operator (internal/controller) and devbox-gateway (pkg/devbox/gateway/prober), section 4.2a of the DevBoxes plan.
Package substrate is a thin client for the Agent Substrate control API (substrate.ateapi.v1.Control), used by the DevboxRunner controller and the devbox gateway.
Package substrate is a thin client for the Agent Substrate control API (substrate.ateapi.v1.Control), used by the DevboxRunner controller and the devbox gateway.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL