Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agents

Multi-agent system built on the Anthropic TypeScript SDK (@anthropic-ai/sdk).

Architecture

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)

Setup

npm install
cp .env.example .env   # add ANTHROPIC_API_KEY

Run

npm start -- "Brief me on the state of WebGPU adoption in 2026"

Or invoke a single subagent directly:

npm run research -- "TypeScript 5.7 changes"

Files

  • 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.

About

Automation Agents

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages