Implement hence spawn and hence watch commands for automated multi-agent task execution with git worktree isolation.
- hence spawn — full lifecycle: claim task, create isolated git worktree, assemble context prompt, launch agent via PTY, evaluate results (confidence scoring + diff analysis), merge back into integration branch
- hence watch — poll plan for state changes, optionally auto-spawn agents for ready tasks with --spawn
- Provider registry with 21 agent CLIs sourced from emdash (claude, codex, qwen, gemini, cursor, copilot, amp, etc.) with per-provider field tests
- SQLite-backed agent memory persistence (~/.hence/memory.db)
- flock-based plan file locking with S-expression crash recovery
- Lifecycle scripts support (.hence.json — setup, run, teardown, evaluate checks)
- Context engineering pipeline: 4-layer priority (plan meta > agent memory > repo context > live events) with token budgeting
- Merge coordinator with file-locked sequential merges and conflict detection
229 tests (173 unit + 31 existing integration + 25 new spawn integration). All additive — no existing code modified beyond wiring new commands into the CLI dispatch.
Spec: REQ-005-spawn.md
Implement hence spawn and hence watch commands for automated multi-agent task execution with git worktree isolation.
- hence spawn — full lifecycle: claim task, create isolated git worktree, assemble context prompt, launch agent via PTY, evaluate results (confidence scoring + diff analysis), merge back into integration branch
- hence watch — poll plan for state changes, optionally auto-spawn agents for ready tasks with --spawn
- Provider registry with 21 agent CLIs sourced from emdash (claude, codex, qwen, gemini, cursor, copilot, amp, etc.) with per-provider field tests
- SQLite-backed agent memory persistence (~/.hence/memory.db)
- flock-based plan file locking with S-expression crash recovery
- Lifecycle scripts support (.hence.json — setup, run, teardown, evaluate checks)
- Context engineering pipeline: 4-layer priority (plan meta > agent memory > repo context > live events) with token budgeting
- Merge coordinator with file-locked sequential merges and conflict detection
229 tests (173 unit + 31 existing integration + 25 new spawn integration). All additive — no existing code modified beyond wiring new commands into the CLI dispatch.
Spec: REQ-005-spawn.md