| name | adding-swarm-patterns |
| description | Use when adding new multi-agent coordination patterns to agent-relay - provides checklist for types, schema, templates, and docs updates |
Adding Swarm Patterns
Overview
Add new multi-agent coordination patterns to agent-relay by updating four locations: TypeScript types, JSON schema, YAML template, and markdown docs.
When to Use
- Adding a new swarm pattern (e.g., "competitive", "auction")
- Extending coordination capabilities for multi-agent workflows
- Responding to user requests for new orchestration strategies
Quick Reference
| File | Location | What to Add |
|---|
| types.ts | packages/broker-sdk/src/workflows/types.ts | Add to SwarmPattern union type |
| schema.json | packages/broker-sdk/src/workflows/schema.json | Add to SwarmPattern.enum array |
| template.yaml | packages/broker-sdk/src/workflows/builtin-templates/ | Create {pattern}.yaml |
| pattern.md | docs/workflows/patterns/ | Create {pattern}.md |
| template.md | docs/workflows/templates/ | Create {pattern}.md |
| README.md | docs/workflows/README.md | Add to patterns and templates tables |
Implementation Checklist
1. Update TypeScript Types
=
|
|
| ;