agentd daemon mode with pi adapter

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

Description

Edit

Core pi integration for agentd:

1. agentd becomes a long-running daemon (vs current run-and-exit) 2. sqlite state for agent registry, run history 3. pi adapter implementing:

  • spawn(worktree, config) → agent_id
  • send_task(agent_id, prompt) → task_id
  • get_status(agent_id) → status
  • stop(agent_id)

4. worktree management (git worktree add/remove) 5. webhook callback on completion (reuse pi extension from t-538)

This is the MVP - get pi working reliably under agentd control.

Timeline (3)

💬[human]2 weeks ago

Superseded by more granular subtasks: t-539.2 (native pi spawning), t-539.3 (daemon CLI), t-539.6 (webhooks)

🔄[human]Open → Done2 weeks ago