Add agentd daemon CLI subcommand

t-539.3·WorkTask·
·
·
Parent:t-539·Created2 weeks ago·Updated2 weeks ago

Description

Edit

Add agentd daemon subcommand to run the HTTP API server.

Current state:

  • Omni/Agentd.hs has run/watch/status/list-runs/etc commands
  • Omni/Agentd/Daemon.hs has full HTTP API but no CLI entry point

Target state:

  • agentd daemon starts the HTTP server on configurable port
  • agentd daemon --port 8400 --db /var/lib/omni/agentd.db
  • Runs in foreground (systemd manages daemonization)

Implementation: 1. Add DaemonCmd to Agentd.hs CLI parser 2. Wire up to Daemon.runDaemon 3. Add config flags: --port, --db-path, --log-root, --workspace 4. Document in SPEC.md

Timeline (4)

🔄[human]Open → InProgress2 weeks ago
🔄[human]InProgress → Done2 weeks ago
💬[human]2 weeks ago

Updated agentd daemon CLI to accept --pi-path and pass dcPiPath into DaemonConfig; verified with typecheck.sh Omni/Agentd.hs. Daemon command was already present.