@ap3x/swarms
v0.1.0
Published
Multi-agent orchestration — the swarm architectures
Readme
@ap3x/swarms
Multi-agent orchestration over a swappable AgentBackend: sequential, concurrent, hierarchical, graph, group-chat, routing, voting, mixture-of-agents, and more.
Part of AP3X — a TypeScript multi-agent framework.
Install
npm install @ap3x/swarmsWhat's inside
- Deterministic topologies — sequential and concurrent workflows, agent-rearrange flow DSL, batched grids, and graph (DAG) workflows.
- Delegating topologies — hierarchical swarms, planner/worker, multi-agent routers, model routers.
- Deliberative topologies — group chat, council-as-judge, debate-with-judge, mixture-of-agents, self-consistency, majority voting.
- Reasoning agents — reflexion, iterative reflective expansion, generated-knowledge prompting, agent-judge, reasoning duo.
SwarmRouter— one config-driven entry point that constructs and runs any architecture.- Tools — a tool registry, MCP client, and handoff primitives shared across architectures.
Every architecture accepts AgentBackend[], so members can be native agents, remote agents, or test doubles.
Documentation
See the AP3X repository for architecture notes, the full package map, and examples.
License
MIT
