# car-multi

Multi-agent coordination patterns for the [Common Agent Runtime](https://github.com/Parslee-ai/car).

## What it does

Provides six coordination patterns for running multiple agents together:
**Swarm** (parallel/sequential/debate), **Pipeline** (linear chain), **Supervisor** (review loop),
**Delegator** (spawn specialists mid-run), **MapReduce** (fan-out + reduce), and **Vote** (majority wins).
Agents communicate via shared state, task enrichment, and async mailboxes.

## Usage

```rust
use car_multi::{Swarm, SwarmMode, AgentSpec, AgentRunner, SharedInfra};

let agents = vec![
    AgentSpec::new("researcher", "You find information."),
    AgentSpec::new("writer", "You write summaries."),
];
let swarm = Swarm::new(agents, SwarmMode::Sequential);
let result = swarm.run("Summarize recent news", &runner, &infra).await?;
```

Part of [CAR](https://github.com/Parslee-ai/car) -- see the main repo for full documentation.
