Extend Outpost
Find the contract to implement when adding an agent, sandbox, model service, store or queue.
Choose a contract to implement
Section titled “Choose a contract to implement”Choose the contract that matches the integration you want to add. Each contract has one responsibility, so you can implement an agent adapter, sandbox provider or storage transport without replacing the rest of Outpost.
- Add a CLI agentBuild the command that starts the CLI and decode its output lines.
- Native conversation formatsFind, capture and restore the transcripts a CLI writes.
- Add a sandbox providerAllocate an environment, run commands, transfer files, release it.
- Model providersSend the built-in harness’s requests to a model API.
- Where data livesRead, list and conditionally write versioned bytes for every durable store.
- Job queuesPersist jobs, fence worker leases and keep their results.
- Secret sourcesResolve declared names on the host before allocating a sandbox.
Validate an integration
Section titled “Validate an integration”Test what a user observes when things go wrong: a nonzero exit status, output that closes before the process, a cancelled or timed-out run, a release called twice. Check who owns each resource and that temporary files disappear on success, failure and cancellation.
For a sandbox provider, diagnose() runs a bounded probe against a real sandbox: Node.js, Git, separate output streams, a nonzero exit status, the home directory and, with transfers, binary file transfers.
Keep optional dependencies separate
Section titled “Keep optional dependencies separate”Load a vendor SDK only from your integration’s own entry point, and declare it as an optional peer dependency. Outpost does the same: @elie-laloum/outpost/providers/vercel, /transports/s3 and /queues/bullmq load their SDKs, the core import does not.
To contribute a built-in agent or provider to Outpost itself, follow AGENTS.md in the repository.
API: CliHarness · AgentAdapter · ConversationStore · SandboxProvider · SandboxLease · ModelProvider · Transport · TaskQueue · diagnoseSandbox.
Connect decision services
Section titled “Connect decision services”DecisionProvider evaluates typed questions over lossless JSON state. It is independent of ModelProvider and allocates no sandbox. Use the common System One HTTP adapter for Jev and compatible Laya endpoints, or implement one cancellable request returning native answers and available usage. See typed decisions and per-step routing.
Choose a package entry point
Section titled “Choose a package entry point”Import each function and type from its owning module. All modules below belong to the same npm package; no additional package is needed. Outpost 13 removes the root import @elie-laloum/outpost; replace root imports before upgrading from version 12. Guides and examples use the owning subpaths directly.
Import after @elie-laloum/outpost/ | Contents |
|---|---|
core | Agents, CLI harnesses, dispatch, sandbox sessions, responses and everyday observation. |
workspaces | Workspace creation, snapshots, publication and conflict integration. |
harness | Built-in agent loop, model providers, tools, context and subagents. |
workflows | Tasks, dependencies, decisions, budgets, checkpoints, caches and approval gates. |
queues | Workers, queued tasks, schedules and webhook sources. |
storage | Transport contracts and artifact storage. |
observation | Custom sinks, low-level hubs, journals, replay and standalone run readers. |
recovery | Inspection, restoration, retention and storage reservation recovery. |
integrations | Agent and sandbox ports, native conversation formats and diagnostics. |
recipes | Recipe compilation, runtime and local extension registration. |
speculation | Candidate races, merge preflight and durable coordinator recovery. |
The /providers/*, /secrets/*, /transports/s3, /queues/bullmq, /opentelemetry and /testing paths retain their names. Functions, options and persisted data retain their behavior. YAML recipe syntax stays the same; update imports in local TypeScript extensions. Each API reference page gives the exact import for its symbol.

