# Agency Orchestrator

> One sentence in, a team of AI expert roles out, working from zero-code YAML

- Category: Agents & Automation / Multi-Agent Systems
- Language: TypeScript
- Licence: Apache-2.0
- Repository: https://github.com/jnMetaCode/agency-orchestrator
- Website: https://ao.aiolaola.com
- Canonical page: https://ai-tldr.dev/tools/agency-orchestrator/

## In short

Agency Orchestrator is an open-source TypeScript engine that splits a task across several AI "expert" roles instead of asking one chatbot. It sits in the Multi-Agent Systems category of the Agents & Automation tools and is open-source, written in TypeScript and licensed Apache-2.0. To get started: install.

## Overview

Agency Orchestrator is an open-source TypeScript engine that splits a task across several AI "expert" roles instead of asking one chatbot. Give `ao compose` a single sentence and it decomposes the task, picks matching roles from its bundled library, writes a workflow, and runs it; the README's example sends a side-hustle question to a trend researcher, platform analyst, financial planner, content strategist and execution planner, each handing its output to the next. The role library ships inside the npm package: 276 Chinese roles and 191 English roles (184 of them from the MIT-licensed agency-agents project), with Korean, Russian, Brazilian Portuguese, Indonesian and Arabic libraries installable as separate packages.

Under the hood every workflow is plain YAML. Each step names a role, a task with `{{variables}}`, an output name and its `depends_on` list; the engine builds a directed acyclic graph, runs independent steps in parallel up to a `concurrency` limit, loads each role's definition as its system prompt, retries failures with exponential backoff and saves every step to `ao-output/`. Steps can also carry conditions, loops, human approval gates and an `acceptance` line that states what a good result must contain.

The same engine is reachable several ways: the `ao` CLI, a local Web Studio (`ao web`) with a team builder, template runner and visual canvas, an Electron desktop client for macOS, Windows and Linux, a Docker image for servers and NAS boxes, an MCP server for Claude Code or Cursor, and a programmatic `run()` API. It can run on an existing coding-CLI subscription such as Claude Code, Copilot CLI or Codex CLI, or on local Ollama, without an API key, or call API providers such as DeepSeek, the Claude API, OpenAI or any OpenAI-compatible endpoint. The project's own evaluation notes that weak local models can make multi-agent output worse than a single call, and recommends capable models.

## What it does

- `ao compose "..." --run` turns one sentence into a generated YAML workflow with auto-selected roles and executes it
- YAML workflows compiled into a DAG with automatic parallelism, `{{variable}}` passing, conditions, loops, approval gates and per-step acceptance criteria
- Bundled role libraries (276 Chinese, 191 English) plus reusable saved teams via `ao team save` and `ao run --team`
- Web Studio, Electron desktop client, Docker image and an MCP server exposing six workflow tools
- Runs on logged-in coding CLIs (Claude Code, Copilot, Codex and others) or local Ollama without an API key, or on DeepSeek, Claude, OpenAI and OpenAI-compatible APIs
- Resume from any step with `--resume last --from <step-id>`, shareable single-file HTML reports via `ao report`, and webhook push with `--notify`

## Getting started

Install the CLI from npm, run one sentence, then move on to templates, your own YAML or the Studio. The role libraries are bundled, so there is nothing else to download.

1. Install

```bash
npm install -g agency-orchestrator
```

2. Run one sentence

   Reuse a logged-in Claude Code subscription with no API key, or set a DeepSeek key (the default provider for `compose`).

```bash
ao compose "Analyze the feasibility of building an AI budgeting app" --run --provider claude-code

# or with DeepSeek
export DEEPSEEK_API_KEY="your-key"
ao compose "Analyze the feasibility of building an AI budgeting app" --run
```

3. Run a built-in template, then resume from any step

   English templates live in `workflows/en/`. Every run lands in a timestamped folder under `ao-output/`; `--resume last --from` re-runs only the step you want to redo.

```bash
ao run workflows/en/solo-founder-plan.yaml -i idea="AI-powered resume builder for job seekers"
ao run workflows/en/solo-founder-plan.yaml --resume last --from marketing_plan
```

4. Write your own workflow

   Steps that depend on the same parent run in parallel. Check a file with `ao validate` and view its DAG with `ao plan` before running it.

```yaml
name: "Product Requirements Review"
agents_dir: "agency-agents"
llm:
  provider: "deepseek"
  model: "deepseek-chat"
concurrency: 2
inputs:
  - name: prd_content
    required: true
steps:
  - id: analyze
    role: "product/product-manager"
    task: "Analyze this PRD and extract core requirements:\n\n{{prd_content}}"
    output: requirements
  - id: tech_review
    role: "engineering/engineering-software-architect"
    task: "Evaluate technical feasibility:\n\n{{requirements}}"
    output: tech_report
    depends_on: [analyze]
  - id: design_review
    role: "design/design-ux-researcher"
    task: "Evaluate UX risks:\n\n{{requirements}}"
    output: design_report
    depends_on: [analyze]
  - id: summary
    role: "product/product-manager"
    task: "Synthesize feedback:\n\n{{tech_report}}\n\n{{design_report}}"
    depends_on: [tech_review, design_review]
```

5. Open the Studio, Docker image or MCP server

   `ao web` starts the local GUI; the Docker image serves it on port 8088 with keys set in the Providers tab; `ao serve` starts the MCP stdio server for Claude Code or Cursor.

```bash
ao web

docker run -d -p 8088:8088 -v ao-data:/data ghcr.io/jnmetacode/agency-orchestrator:latest

ao serve
```

## When to use it

- Get a multi-perspective plan, such as a startup feasibility study or business plan, from a single sentence without picking roles by hand
- Run repeatable reviews, like a PR review with code, security and performance reviewers in parallel, from a checked-in YAML file
- Put a scheduled multi-role report on cron and push the result to a Feishu, DingTalk, WeCom or Slack-style webhook
- Plan a project with several expert roles, then hand the scaffold to a coding agent such as Claude Code to build it
