Multi-agent system built on the Anthropic TypeScript SDK (@anthropic-ai/sdk).
A coordinator agent (Opus 4.8) orchestrates two specialist subagents via tool calls:
delegate_research(topic)→ research subagent (Haiku 4.5 +web_search) returns a JSON summary with sources.delegate_writing(topic)→ writer subagent (Opus 4.8 + adaptive thinking) produces the final markdown report.
Each subagent runs its own tool-runner loop. The coordinator decides when to fan out research and when to write.
user request
│
▼
coordinator (Opus 4.8)
├── delegate_research ──▶ researcher (Haiku 4.5 + web_search)
├── delegate_research ──▶ researcher
└── delegate_writing ──▶ writer (Opus 4.8)
npm install
cp .env.example .env # add ANTHROPIC_API_KEYnpm start -- "Brief me on the state of WebGPU adoption in 2026"Or invoke a single subagent directly:
npm run research -- "TypeScript 5.7 changes"src/client.ts— shared Anthropic client + model IDs.src/agents/researcher.ts— research subagent (web search + structured summary tool).src/agents/writer.ts— writer subagent (adaptive thinking, no tools).src/coordinator.ts— top-level coordinator exposing subagents as tools.src/index.ts— CLI entry point.