Orchestration¶
lazyai-cli can optionally scaffold orchestration definitions and register the lazyai-orchestrator MCP server. This is opt-in; if you never enable orchestrator, nothing about the existing LazyAI flow changes.
Execution model¶
- Local native agents (Claude Code, OpenCode, Copilot) are the intended execution path.
- A2A is a config/seam only and is not remote/network execution by default.
- The
lazyai-orchestratoris a Go runtime invoked viaconnectso multiple MCP clients share a single daemon process. - Released installs can download, verify, and cache matching prebuilt
lazyai-orchestrator-*assets from GitHub Releases.
Install the runtime¶
Enable during init¶
Non-interactive
lazyai-cli init \
--scope project \
--tools opencode,claude-code,copilot \
--enable-servers orchestrator \
--name my-app \
--preset standard \
--no-interactive
Interactive wizard
Run lazyai-cli init and select orchestrator when asked for optional MCP integrations.
What gets scaffolded¶
When enabled, lazyai-cli copies the orchestration library into:
Bundled defaults include:
- Chains:
feature,bugfix,review,refactor,tdd,onboard - Teams:
review-team,feature-team,assessment-team - Workflows:
rpi,tdd,refactor,code-review,incident-response,system-design - Domains:
backend,frontend,data,devops,security - Modes:
autonomous,junior,senior
Project-local files with the same name override built-in library entries for list and info.
CLI commands¶
Create custom artifacts¶
lazyai-cli create domain payments --description "Payments domain constraints" --no-interactive
lazyai-cli create mode strict-review --description "High-friction approval mode" --no-interactive
lazyai-cli create workflow payments-review --chain feature --team review-team --no-interactive
List orchestration artifacts¶
lazyai-cli list workflows
lazyai-cli list chains
lazyai-cli list teams
lazyai-cli list domains
lazyai-cli list modes
lazyai-cli list orchestration --json
Inspect an item¶
Orchestration namespace¶
lazyai-cli orchestration list workflows --json
lazyai-cli orchestration create domain payments --description "Payments domain" --no-interactive
lazyai-cli orchestration status --json
Tool integration¶
When orchestration is enabled, lazyai-cli generates additional guidance files:
| Tool | Generated guidance |
|---|---|
| OpenCode | .opencode/agents/orchestrator.md |
| Claude Code | .claude/agents/orchestrator.md |
| GitHub Copilot | .github/prompts/orchestrator.prompt.md |
Using the orchestrator in your CLI tool¶
- Run
lazyai-cli init --enable-servers orchestrator - Open the project root in your coding-agent CLI so it can see the generated MCP config and orchestration guidance files
- Ask the tool to use the orchestrator for a specific task
- The host tool does the execution while the orchestrator MCP server tracks chain/team/workflow state
Example prompts:
Use the orchestrator and start the feature chain for auth middleware.Use the orchestrator to build a review team for this PR.Use the orchestrator to show the current workflow status and budget.
Runtime details¶
- The orchestrator runtime source lives in
packages/orchestrator/ lazyai-cliscaffolds definitions and config;lazyai-orchestratorowns runtime behavior- The MCP server is the runtime boundary; there is no separate
lazyai-clicommand that runs a workflow end-to-end
Legacy orchestration usage doc¶
The older standalone guide remains in the repository for historical reference. The page you are reading now is the canonical orchestration documentation for the docs site.