Agent Orchestrator
Multi-agent orchestrator that decomposes tasks via an LLM-powered planner agent, routes subtasks to specialized agents based on capability matching, and aggregates results. Agents communicate through a shared context with namespacing and a handoff protocol that creates an audit trail of agent-to-agent transitions. Supports Anthropic and OpenAI as LLM providers for orchestration reasoning.
| Name | agent-orchestrator |
| Version | 0.1.0 |
| Category | ai-systems |
| License | Apache-2.0 |
| Persona | engineering |
| Tags | typescript, agent, orchestrator, multi-agent, llm, ai |
| Source | templates/agent-orchestrator |
Render it
Three front doors, one catalog. Pick whichever suits the caller.
# CLI
npx @nanohype/sdk render agent-orchestrator --out ./my-app
# SDK
import { LocalSource, renderTemplate } from "@nanohype/sdk";
const result = await renderTemplate(source, "agent-orchestrator", variables);
# MCP — from an agent
get_template({ name: "agent-orchestrator" })Prerequisites
| Tool | Version | Why |
|---|---|---|
node | >=22 | Node.js runtime for TypeScript execution |
Variables
Required
ProjectNamestring- Kebab-case project name, used in package.json and directory Must be lowercase kebab-case starting with a letter.
Optional
Descriptionstring — defaults toMulti-agent orchestrator- Short project description for package.json and README
LlmProviderstring — defaults toanthropic- LLM provider for orchestration reasoning
IncludeTestsbool — defaults totrue- Include the test suite
What it produces
35 files. Placeholder names such as __APP_NAME__ are what the renderer substitutes into.
.env.example
.gitignore
biome.json
package.json
README.md
src/orchestrator/__tests__/context.test.ts
src/orchestrator/__tests__/orchestrator.test.ts
src/orchestrator/__tests__/routing.test.ts
src/orchestrator/agents/index.ts
src/orchestrator/agents/mock.ts
src/orchestrator/agents/planner.ts
src/orchestrator/agents/registry.ts
src/orchestrator/agents/researcher.ts
src/orchestrator/agents/types.ts
src/orchestrator/bootstrap.ts
src/orchestrator/config.ts
src/orchestrator/context/handoff.ts
src/orchestrator/context/shared.ts
src/orchestrator/index.ts
src/orchestrator/logger.ts
src/orchestrator/metrics.ts
src/orchestrator/orchestrator.ts
src/orchestrator/providers/anthropic.ts
src/orchestrator/providers/index.ts
src/orchestrator/providers/mock.ts
src/orchestrator/providers/openai.ts
src/orchestrator/providers/registry.ts
src/orchestrator/providers/types.ts
src/orchestrator/resilience/__tests__/circuit-breaker.test.ts
src/orchestrator/resilience/circuit-breaker.ts
src/orchestrator/routing/router.ts
src/orchestrator/routing/strategies.ts
src/orchestrator/types.ts
tsconfig.json
vitest.config.tsComposes with
- Pairs with
agentic-loop - Pairs with
mcp-server-ts - Pairs with
rag-pipeline - Nests inside
monorepo
Composites that use it
- Agent Team — Multi-agent system with a central orchestrator, specialized agents for research and writing, an evaluation harness, and MCP tool server.