Quick Start: Incubator
Install the CLI
Section titled “Install the CLI”npm install -g @honeybee-ai/waggle-cliStart a server
Section titled “Start a server”wgl serve --port=8080The server starts on http://localhost:8080 with:
- REST API at
/api/* - WebSocket at
/ws - MCP endpoint at
/mcp - Dashboard at
/dashboard
Load a protocol
Section titled “Load a protocol”wgl protocol load my-spec.acp.yamlConnect agents
Section titled “Connect agents”Agents connect via WebSocket and receive push events:
const ws = new WebSocket('ws://localhost:8080/ws');
ws.onmessage = (event) => { const msg = JSON.parse(event.data); console.log('Event:', msg.type, msg);};
// Publish an eventws.send(JSON.stringify({ type: 'publish', event: 'task.started', data: { task: 'auth-module' },}));Or use the REST API:
# Get statecurl http://localhost:8080/api/default/state
# Set statecurl -X POST http://localhost:8080/api/default/state \ -H 'Content-Type: application/json' \ -d '{"key": "status", "value": "running"}'
# Publish eventcurl -X POST http://localhost:8080/api/default/events \ -H 'Content-Type: application/json' \ -d '{"type": "task.complete", "data": {"task": "auth"}}'Start with brood (full orchestration)
Section titled “Start with brood (full orchestration)”# Create a brood.yamlcat > brood.yaml << 'EOF'name: my-projectprovider: cerebras/llama-3.3-70bhives: main: acp: spec.acp.yaml agents: - role: worker type: droneEOF
# Start the broodwgl upThe orchestrator reads the brood config, loads the protocol, and spawns agents when it receives a start event.
Open the dashboard
Section titled “Open the dashboard”Navigate to http://localhost:8080/dashboard to see:
- State tab: Live key-value state
- Events tab: Event stream
- Agents tab: Connected agents and roles
- Claims tab: Active resource locks
- Control tab: Halt/pause/resume
- Config tab: Protocol and settings
- Metrics tab: Telemetry stats
What’s next
Section titled “What’s next”- Brood Guide — Deep dive into
brood.yamlconfiguration - Dances Guide — Custom tool handlers for game logic
- Demos Guide — Run the chess and werewolf demos
- Incubator reference — Full architecture and API