Config-driven agent orchestration

Declare an agentic workflow in one YAML file. Run it locally.

Agent Orchestrator compiles a self-contained document — runtimes, agents and a graph — into an executable workflow. Mix CLI agents in Docker, cloud APIs, MCP tools and scripts, stream every step live, and pause for a human when it matters.

1
file per workflow
9
executor types
SSE
live event stream

The one rule

A type is code. A node is data.

Adding an agent is a data change. Adding a capability is a code change. The boundary between them is the executor class, and it is the only line worth defending.

code

The executor type defines the shape of an agent — its runtime kind, its input schema, and how it executes. New field, new behaviour: one class, registered once.

data

An agent instance supplies values only, and a workflow wires instances into a graph. No code, no seed rows, no server restart to add one.

Mental model

Four nouns, one direction of flow

Everything in the system is one of these. Learn them once and the rest of the config reads itself.

01

Executor type

A Python class that runs one kind of work. It declares its runtime kind, a JSON-Schema for its inputs, and an execute method. This is the only place code lives.

02

Runtime

A named environment preset: the Docker image, command, endpoint, resource limits and timeout a type needs. Adding a runtime is a data change, not a code change.

03

Agent

A concrete instance of a type: one runtime plus concrete input values. Its inputs are validated against the type schema before it can ever be referenced.

04

Workflow

A graph of agent references — nodes and conditional edges. Nodes share one state bag, and each node’s artifacts are mounted for the next one automatically.

Capabilities

Built for heterogeneous execution

The engine assumes your steps are not all the same shape — and gives them one state, one event stream, and one approval model.

01

Self-contained YAML

One document declares runtimes, agents and the graph together. The same file is the share artifact and the executable definition — no hidden server config.

02

Heterogeneous executors

A CLI agent in a container, a cloud model API, an MCP tool server, a plain script, a git commit. Different modes, one graph, one state model.

03

Live event stream

Every run emits start, agent, review, resume, complete and error events over Server-Sent Events, so the UI reflects the graph as it executes.

04

Human in the loop

Flag a node requires_approval and the graph compiles with an interrupt before it. The run pauses, then resumes only when a human approves.

05

Verified handoffs

Upstream outputs are collected by glob and mounted for the next node under .agent/context/upstream, so dependencies are explicit, not implicit ordering.

06

Local-first

FastAPI, LangGraph and PostgreSQL, all on your machine. No hosted control plane is required to import, run or inspect a workflow.

One file

Shareable by construction

The document you write is the document you share and the document you run. Import it by path or paste it inline; the same validation runs either way.

  • Runtimes referenced by name are registered on import.
  • Every agent input is validated against its type schema.
  • Node and edge references are checked before the graph is stored.
  • The UI renders forms directly from that schema.
ecocharge_cli_workflow.yamlyaml
version: 1

runtimes:
  - name: claude-cli
    kind: cli
    image: ghcr.io/eco/claude-agent:latest
    command: ["claude", "-p"]
    resource_limits: { cpus: "1.0", memory: "512m" }
    timeout: 300

agents:
  coder:
    type: cli_agent
    runtime: claude-cli
    inputs:
      repos:
        - { repo: "https://gitlab.eco/eco/app.git", ref: "feature/ecocharge", path: "" }
      skills:
        - { repo: "https://gitlab.eco/eco/skills.git", ref: "main", path: "review.md" }
      prompt:
        { repo: "https://gitlab.eco/eco/skills.git", ref: "main", path: "prompt.md" }
      artifacts: ["**/*.md"]

  committer:
    type: git_commit
    inputs:
      source_nodes: [coding]

workflow:
  name: "EcoCharge CLI Pipeline"
  hitl_enabled: true
  nodes:
    - { id: coding, agent: coder, requires_approval: false }
    - { id: commit, agent: committer, requires_approval: true }
  edges:
    - { from: coding, to: commit, condition: success }

Executor catalog

What runs today

Executors register themselves on startup. Shipped types are live in the engine; planned types mark the documented extension path.

Registered executor types4 shipped · 5 planned
ExecutorKindStatusResponsibility
cli_agentclishippedRuns a CLI agent in a Docker container from repo, skill, context and prompt sources.
git_commitgitshippedCommits and pushes a prior node’s workspace.
script_runnerscriptshippedRuns a Python script or inline code as a subprocess.
sleepnoneshippedA delay node, used to exercise the engine.
cloud_agentcloudplannedCalls a cloud-hosted agent endpoint with a model and env.
mcp_agentmcpplannedA cloud agent bound to MCP tool servers.
reviewernoneplannedProduces a review report and posts it to the source.
api_callnoneplannedAn arbitrary HTTP request as a graph node.
pipeline_triggercloudplannedTriggers a CI or build job — the documented extension pattern.

Lifecycle

From file to finished run

01

Import a workflow

POST /workflows/import with a yaml_path or inline yaml_content. A new runtime kind registers itself, every agent input is schema-validated, and the graph is projected into Postgres.

02

Execute the graph

POST /workflows/{id}/execute returns a thread_id and runs the compiled graph on a worker thread, off the async event loop, checkpointing each step.

03

Stream and approve

Subscribe to /events/stream over SSE to watch each node in real time. When a node needs approval the run pauses until POST /workflows/{thread_id}/resume.

FastAPILangGraphPostgreSQLDockerServer-Sent EventsNext.js

Run your first workflow

Point the importer at backend/config/ecocharge_cli_workflow.yaml and execute it from the dashboard.