DocsTrace DemosBlogReleasesGitHub中文
Menu

AnySwarm

Build your own multi-agent harness

Run coding agents in isolated sandboxes, define how they work together in TypeScript, and replay the entire run.

Read https://anyswarm.github.io/anyswarm/setup.md and guide me through setting up @anyswarm/core@latest on this machine.
MINIMAL

Minimal core

A small set of isolation and lifecycle primitives with zero framework bloat

EXTENSIBLE

Extensible

Compose any collaboration topology and custom plugins without touching the runtime

TRACEABLE

Traceable

Partitioned logs and replayable plugin state to catch dynamic swarm failures

SCROLL
OVERVIEW · 40 SECSee AnySwarm in action

GET STARTED

Assemble any agent team in 3 steps

// 1. Register host-enforced Services
const services = new ServiceRegistry();
services.register('handoff', handoff.service, { toolMode: 'cli' });

WHY ANYSWARM

One runtime. Any way to collaborate.

Zero hardcoded graphs

  • Execution lives in the runtime; coordination lives in your code.
  • Switch between trees, peer swarms, and task pools in plain TypeScript.

Apps built for agents

  • Skip ad-hoc agent-to-agent tools; expose chat, boards, or locks as typed Services.
  • Enforce schemas, permissions, and objective evaluators at the boundary.

Sandboxed bash at scale

  • Give every Pi, Codex, or custom agent its own container and full shell.
  • Steer or interrupt a single runaway agent live while the rest keep working.

Built to debug swarms

  • Spot ten agents repeating the same dead end without grepping gigabytes of logs.
  • Inspect partitioned agent timelines and replayable Service state locally.

TRACE VIEWER

Inspect any run live

Trace Viewer docs →
TRACE VIEWER · 1-HOUR 4-PEER REAL RUN4 peers · 60m 35s · 1,200 model calls · 583 service calls · 53.071242 strict PASS
SANDBOX & PLUGIN LANES0:002:004:006:008:0010:00peer-0Sandbox · Pipeer-1Sandbox · Pipeer-2Sandbox · CodexpluginsBoard · Evaluatormodel · planedit · pytestsubmit #1model · refinesubmit #3model · cachebash · benchreview #1verify suitemodel · dup path⚡ steer livepivot · layout opteval #1 · 41.2eval #2 · 46.8eval #3 · 53.07 ✓
Model turnSandbox bash & editService & evaluatorLive steer
Illustrative 10-minute excerpt below · click above to replay the full 60m 35s 4-peer run

MENTAL MODEL

Any harness. One runtime.

Core concepts →
MENTAL MODELHover or click any zone to inspect how it works
SHARED SERVICESTASK POOLTask assignmentBOARD / CHATShared notes & chatGIT / VERIFIERGit & verifiersbuild your own!registers Servicesverified callsmodels & servicesHOST GATEWAYService Bridge · Model GatewayAPI KEYSnever enter sandboxes!RUNTIMEisolated containers · archive before cleanupSANDBOX 01AGENT · LEADSession + WorkspacereadwriteeditbashSANDBOX 02AGENT · CODERSession + WorkspacereadwriteeditbashSANDBOX 03AGENT · TESTERSession + Workspacereadwriteeditbashspawn·sendonEvent()you write the harness!HARNESSTSYour Harness Appwhile(running) {route(event);applyRules();send(agent, cmd);}Roles · Services · RulesstreamTRACE VIEWERMSGLLMSVCanyswarm tracetraces & artifacts

EXAMPLES

Built for any domain

Browse all examples →
CODING

Software engineering

Audit repos, patch modules, and verify tests across isolated sandboxes.

Explore Subagents →

FORMAL MATH

Formal verification

Explore competing proof branches and cite verified findings in a shared store.

Explore Substrate →

RESEARCH

Autonomous research

Propose patches, peer-review ideas, and converge against objective evaluators.

Explore AutoResearch →