Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Agent Status

Query the current state of all loaded agents.

GET /api/v1/status

Returns an array of agent status objects.

Response 200 OK

[
  {
    "name": "log-monitor",
    "status": "running",
    "uptime_ms": 360000,
    "last_activity_ms_ago": 1200,
    "restart_count": 0,
    "memory_profile": {
      "heap_bytes": 2097152,
      "fuel_remaining": 500000
    }
  },
  {
    "name": "researcher",
    "status": "idle",
    "uptime_ms": 360000,
    "last_activity_ms_ago": 45000,
    "restart_count": 1,
    "memory_profile": {
      "heap_bytes": 4194304,
      "fuel_remaining": 250000
    }
  }
]

Agent status fields

FieldTypeDescription
namestringAgent name from configuration
statusstringOne of running, idle, stopped, error
uptime_msintegerMilliseconds since agent was last started
last_activity_ms_agointegerMilliseconds since the agent last executed
restart_countintegerNumber of times the agent has been restarted
memory_profile.heap_bytesintegerCurrent WASM linear memory usage
memory_profile.fuel_remainingintegerRemaining WASM fuel budget (null if unlimited)

Filtering

Pass ?agent=NAME to filter to a single agent:

GET /api/v1/status?agent=log-monitor