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.
Config-driven agent orchestration
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.
The one rule
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.
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.
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
Everything in the system is one of these. Learn them once and the rest of the config reads itself.
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.
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.
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.
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
The engine assumes your steps are not all the same shape — and gives them one state, one event stream, and one approval model.
One document declares runtimes, agents and the graph together. The same file is the share artifact and the executable definition — no hidden server config.
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.
Every run emits start, agent, review, resume, complete and error events over Server-Sent Events, so the UI reflects the graph as it executes.
Flag a node requires_approval and the graph compiles with an interrupt before it. The run pauses, then resumes only when a human approves.
Upstream outputs are collected by glob and mounted for the next node under .agent/context/upstream, so dependencies are explicit, not implicit ordering.
FastAPI, LangGraph and PostgreSQL, all on your machine. No hosted control plane is required to import, run or inspect a workflow.
One file
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.
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
Executors register themselves on startup. Shipped types are live in the engine; planned types mark the documented extension path.
| Executor | Kind | Status | Responsibility |
|---|---|---|---|
| cli_agent | cli | shipped | Runs a CLI agent in a Docker container from repo, skill, context and prompt sources. |
| git_commit | git | shipped | Commits and pushes a prior node’s workspace. |
| script_runner | script | shipped | Runs a Python script or inline code as a subprocess. |
| sleep | none | shipped | A delay node, used to exercise the engine. |
| cloud_agent | cloud | planned | Calls a cloud-hosted agent endpoint with a model and env. |
| mcp_agent | mcp | planned | A cloud agent bound to MCP tool servers. |
| reviewer | none | planned | Produces a review report and posts it to the source. |
| api_call | none | planned | An arbitrary HTTP request as a graph node. |
| pipeline_trigger | cloud | planned | Triggers a CI or build job — the documented extension pattern. |
Lifecycle
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.
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.
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.
Point the importer at backend/config/ecocharge_cli_workflow.yaml and execute it from the dashboard.