Playground
The durable-agents-playground is an example application demonstrating DARIX patterns. Located at examples/durable-agents-playground/ in the repository.
What it includes
14 agent types organized into four categories.
Standalone
assistant--- general-purpose agent with calculator, database, memory, dice, and inventory tools
Coordination
worker--- generic configurable child agent (prompt and shared state via spawn args)deep-researcher--- spawns specialist sub-agents for deep researchmanager-worker--- multi-perspective analysis (optimist/pessimist/pragmatist)dispatcher--- routes tasks to the appropriate agent typepipeline--- sequential worker stagesmap-reduce--- parallel chunk processing
Blackboard (shared state)
debate--- pro/con workers with shared argument statepeer-review--- multiple reviewers evaluating an artifactwiki--- 7 category specialists building a knowledge basetrading-floor--- traders with shared market state
Reactive
summarizer--- observes entity streams, produces summariesmonitor--- watches multiple entities, reports status changesguardian--- quality control observer
Running it
bash
cd examples/durable-agents-playground
pnpm install
cp ../../.env.template .env # Set ANTHROPIC_API_KEY
pnpm devRequires a running DARIX server at http://localhost:4437 (default).
Project structure
src/
├── server.ts # Entry point, registry, HTTP server
├── guards.ts # State transition validation
├── standalone/assistant.ts # Standalone assistant
├── workers/worker.ts # Generic worker
├── coordination/ # Coordination patterns
├── blackboard/ # Shared state patterns
├── reactive/ # Observer patterns
└── tools/ # Tool definitions
├── registry.ts # Tool factory registry
├── calculator.ts
├── memory-store.ts
├── sqlite.ts
├── inventory.ts
├── dice-roll.ts
├── web-search.ts
├── fetch-url.ts
└── observe.tsSee Agents & Patterns for detailed documentation of each pattern.