Skip to content

REST API

The daemon exposes a REST API on the configured port (default: 3141).

Endpoints

GET /api/agents

List all active agents.

bash
curl http://localhost:3141/api/agents

POST /api/spawn

Spawn a new agent.

bash
curl -X POST http://localhost:3141/api/spawn \
  -H "Content-Type: application/json" \
  -d '{"role": "backend", "scope": "src/api/**"}'

DELETE /api/agents/:id

Kill an agent.

bash
curl -X DELETE http://localhost:3141/api/agents/backend-1

GET /api/status

Daemon status and session stats.

bash
curl http://localhost:3141/api/status

GET /api/teams

List saved teams.

POST /api/teams

Save current configuration as a team.

bash
curl -X POST http://localhost:3141/api/teams \
  -H "Content-Type: application/json" \
  -d '{"name": "fullstack"}'

POST /api/teams/:name/load

Load a saved team.

FSL-1.1-Apache-2.0