Skip to content

WebSocket Events

Connect to the daemon WebSocket at ws://localhost:3141/ws for real-time updates.

Events

agent:spawned

Fired when a new agent is spawned.

json
{
  "event": "agent:spawned",
  "data": {
    "id": "backend-1",
    "role": "backend",
    "scope": ["src/api/**"],
    "peers": ["frontend-1"]
  }
}

agent:killed

Fired when an agent is killed.

json
{
  "event": "agent:killed",
  "data": {
    "id": "backend-1",
    "reason": "manual"
  }
}

agent:status

Fired on agent status changes.

json
{
  "event": "agent:status",
  "data": {
    "id": "backend-1",
    "status": "active",
    "contextUsage": 0.45
  }
}

journalist:update

Fired when the Journalist completes a synthesis cycle.

json
{
  "event": "journalist:update",
  "data": {
    "projectMap": true,
    "decisions": true,
    "timestamp": "2026-04-05T00:30:00Z"
  }
}

rotation:triggered

Fired when context rotation occurs.

json
{
  "event": "rotation:triggered",
  "data": {
    "old": "backend-1",
    "new": "backend-2",
    "reason": "context_threshold"
  }
}

FSL-1.1-Apache-2.0