Skip to content
Français

Extend Outpost

Find the contract to implement when adding an agent, sandbox, model service, store or queue.

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.

import { createSandbox } from "@elie-laloum/outpost/core";
import { repository, sandboxProvider } from "./outpost.config.ts";

await using sandbox = await createSandbox({ sandboxProvider, repository });
const report = await sandbox.diagnose({ transfers: true });
console.log(report.hasFailures, report.checks);
// Example output: false [ { id: "sandbox.node", status: "pass", … }, … ]

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.

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.

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
coreAgents, CLI harnesses, dispatch, sandbox sessions, responses and everyday observation.
workspacesWorkspace creation, snapshots, publication and conflict integration.
harnessBuilt-in agent loop, model providers, tools, context and subagents.
workflowsTasks, dependencies, decisions, budgets, checkpoints, caches and approval gates.
queuesWorkers, queued tasks, schedules and webhook sources.
storageTransport contracts and artifact storage.
observationCustom sinks, low-level hubs, journals, replay and standalone run readers.
recoveryInspection, restoration, retention and storage reservation recovery.
integrationsAgent and sandbox ports, native conversation formats and diagnostics.
recipesRecipe compilation, runtime and local extension registration.
speculationCandidate 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.