Skip to content

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.

Nameagent-orchestrator
Version0.1.0
Categoryai-systems
LicenseApache-2.0
Personaengineering
Tagstypescript, agent, orchestrator, multi-agent, llm, ai
Sourcetemplates/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

ToolVersionWhy
node>=22Node.js runtime for TypeScript execution

Variables

Required

ProjectName string
Kebab-case project name, used in package.json and directory Must be lowercase kebab-case starting with a letter.

Optional

Description string — defaults to Multi-agent orchestrator
Short project description for package.json and README
LlmProvider string — defaults to anthropic
LLM provider for orchestration reasoning
IncludeTests bool — defaults to true
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.ts

Composes with

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.