Unified Orchestration Layer
Three authoring APIs. One compiled intermediate representation. A single runtime that executes every graph, streams its events and checkpoints its state; the model calls, tools, guardrails and extensions a graph runs come from executors the host supplies.
mission() API
Source: examples/mission-api.mjs.
Agency Collaboration
Live runs agency-graph.mjs, agency-streaming.mjs, emergent-hierarchical-spawning.mjs.
workflow() DSL
workflow() builds an execution graph from steps declared in the order they run. The compiler connects each step to the one before it, adds a router node for a branch and one node per parallel step, and returns the same CompiledExecutionGraph IR the other builders produce, run by the same GraphRuntime.
Agent Communication
AgentCommunicationBus — structured messaging between agents a host registers on it. Point-to-point, broadcast, request/response, pub/sub, handoff, threading, with a manual retry of failed deliveries, acknowledgements and a per-agent history.
AgentGraph
When workflow() is too rigid and you want to lay out the topology yourself, use AgentGraph: explicit node and edge construction with router nodes, subgraph composition, and discovery and personality edges. It compiles to the same CompiledExecutionGraph IR as the higher-level builders, but it gets you full control over the topology before compilation.
Checkpointing and Time-Travel
The AgentOS Unified Orchestration Layer saves checkpoints, resumes a run after an interruption or a failure, and forks a run from a past checkpoint through the ICheckpointStore interface. InMemoryCheckpointStore is the default implementation. SqlCheckpointStore keeps checkpoints in SQLite or Postgres through @framers/sql-storage-adapter, so a run resumes after the process that saved it has stopped. Pass either, or an implementation of your own, to compile({ checkpointStore }).
Planning Engine
PlanningEngine — LLM-generated step plans for AgentOS hosts: plan generation, task decomposition, reflection and refinement, step execution, an autonomous loop and in-memory checkpoints.