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/agentsPOST /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-1GET /api/status
Daemon status and session stats.
bash
curl http://localhost:3141/api/statusGET /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.
