[Open-source] A multi-agent orchestration framework for TypeScript backend that can automatically obtain task DAG
![[Open-source] A multi-agent orchestration framework for TypeScript backend that can automatically obtain task DAG](https://yy123.ink/api/img/1796368343751-nrpfar.png)
1. Project Overview
Open Multi-Agent
Give a goal, get a task DAG automatically.
Native TypeScript multi-agent orchestration.
A multi-agent orchestration framework for TypeScript backend. Give it a goal, the coordinator agent will break down the goal into tasks DAG, execute independent tasks in parallel, and combine the results.
2. Open Source License
Licensed under MIT
3. Screenshots
4. Feature Overview
open-multi-agent is a multi-agent orchestration framework for TypeScript backend, which can be directly embedded into any Node.js application.
Graph-based framework requires you to list each node and each edge in advance. OMA isDynamic workflowDynamic workflow: the coordinator breaks down the goal into tasks DAG at runtime, executes independent tasks in parallel, and combines the results. This plan is passed to a deterministic scheduler for execution, making it always reviewable and replayable. This is the same bet as Anthropic's dynamic workflows launched in May 2026 for Claude Code; OMA brings it to any provider as an open-source library.
Lightweight kernel: orchestration engine plus Anthropic, OpenAI, and any OpenAI compatible endpoint out-of-box; Gemini, Bedrock, MCP, Vercel AI SDK bridge as optional peer dependencies, install on demand.
Comparison with other frameworks
Most TypeScript teams choose multi-agent orchestration layers, actually choosing between OMA, LangGraph JS, Mastra, CrewAI, and Vercel AI SDK. In short, OMA is goal-driven, dynamic planning, not rigid hand-crafted graph. Give the goal to the Coordinator, it builds tasks DAG at runtime.
This comparison also covers Claude Code's dynamic workflows; compared to simple competition, OMA is more composable: through ACP, the OMA team can use Claude Code itself as one of the agents to orchestrate.
What's different from other frameworks?
First, give a quick selection; mechanism decomposition later.
| If you need |
Choose |
| Fixed production topology, plus mature persistence + time travel ecosystem |
LangGraph JS |
| Full-stack platform, workflow manual wiring |
Mastra |
| Python technology stack, mature multi-agent ecosystem |
CrewAI |
| AI application toolkit, wide model provider support |
Vercel AI SDK |
| TypeScript, from goal to result, automatic task decomposition |
open-multi-agent |
Compare with LangGraph JS.LangGraph compiles declarative graphs (nodes, edges, conditional routing) into a callable object; OMA runs a coordinator that, at runtime, breaks down the target into a task DAG and automatically parallelizes independent tasks. Endpoints are the same, but directions are opposite: graph-first vs target-first. Both support checkpoints and recovery — OMA takes snapshots of completed tasks on any MemoryStore and recovers with restore() — but LangGraph's persistence ecosystem is deeper, so choose it when 'time-traveling' over persistent state history is a deciding factor.
Comparison with Mastra.Both are TypeScript native; the difference lies in who drives orchestration. With Mastra, you manually wire up workflows. OMA is target-driven: give it a coordinator and a target, and it builds a task DAG at runtime, letting planning adapt to the target, rather than running a graph you've step-by-step wired up. A single runTeam(team, goal) call is enough.
Comparison with CrewAI.CrewAI is a mature multi-agent selection in Python. OMA is TypeScript-focused, with three runtime dependencies directly embedded in Node.js. Orchestration capabilities are roughly equivalent; the choice depends on your language stack.
Comparison with Vercel AI SDK.The AI SDK provides an LLM call layer — providers abstract, stream, tool calls, and structured output. It doesn't handle target-driven multi-agent team orchestration. The two complement each other: the AI SDK for application interfaces and single-agent calls, and OMA for when you need a team.
Want to see a framework's dimension-by-dimension breakdown — language, orchestration paradigm, dependencies, budget control, and observability — go to the dedicated comparison page: compare LangGraph, compare CrewAI, compare AutoGen, compare OpenAI Agents SDK.
5. Tech Stack
Working Principles
┌─────────────────────────────────────────────────────────────────┐│ OpenMultiAgent (Orchestrator) ││ ││ createTeam() runTeam() runTasks() runAgent() getStatus() │└──────────────────────┬──────────────────────────────────────────┘│┌──────────▼──────────┐│ Team ││ - AgentConfig[] ││ - MessageBus ││ - TaskQueue ││ - SharedMemory │└──────────┬──────────┘│┌─────────────┴─────────────┐│ │┌────────▼──────────┐ ┌───────────▼───────────┐│ AgentPool │ │ TaskQueue ││ - Semaphore │ │ - dependency graph ││ - runParallel() │ │ - auto unblock │└────────┬──────────┘ │ - cascade failure ││ └───────────────────────┘┌────────▼──────────┐│ Agent ││ - run() │ ┌────────────────────────┐│ - prompt() │───►│ LLMAdapter ││ - stream() │ │ - 13 built-in │└────────┬──────────┘ │ providers ││ │ - OpenAI-compatible ││ │ - AI SDK bridge ││ └────────────────────────┘┌────────▼──────────┐│ AgentRunner │ ┌──────────────────────┐│ - conversation │───►│ ToolRegistry ││ loop │ │ - defineTool() ││ - tool dispatch │ │ - 6 built-in tools │└───────────────────┘ │ + delegate (opt-in) │└──────────────────────┘
Quick Start
Initialize a production template or teaching multi-agent DAG with a single command:
npm create oma-app@latest
When creating a project, you can choosePR Review Agent、Security Analysis Agentormulti-agent DAG beginner Demoand select a cloud provider or fully local Ollama. The production template is read-only and outputs Markdown, JSON, and a reviewable DAG dashboard. To integrate the library into an existing project:
npm install @open-multi-agent/core
See the complete quickstart, three run modes, provider integration, production-level checklists, and complete API reference on the package page:
→ packages/core/README_zh.md
Other run modes: clone the repository and run any example with npx tsx
packages/core/examples/basics/team-collaboration.ts; or embed OMA into a real backend using Express or Next.js. For one-click deployment to Vercel, use the Next.js deployment template; to run a local model without an API key, use Ollama.
Repository structure
This is a monorepo. Published packages are@open-multi-agent/core, located in packages/core/, which is the single source of truth for the library, tests, examples, and npm package pages.
open-multi-agent/├── packages/│ └── core/ # @open-multi-agent/core (published library)│ ├── src/ # Framework source code│ ├── tests/ # Vitest test suite│ └── examples/ # Examples that can be run directly (npx tsx packages/core/examples/<path>.ts)└── docs/ # Subsystem documentation
build / lint / test all from the repository root directory across workspace:
npm install # Install all workspacenpm run build # Compile packages/corenpm run lint # Type Checkingnpm test # Run test suite
6. Source Code Repository
Open-source project address:
https://github.com/open-multi-agent/open-multi-agent
Next steps