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:
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.
Superseded by more granular subtasks: t-539.2 (native pi spawning), t-539.3 (daemon CLI), t-539.6 (webhooks)