Added
- Multi-agent spawn support for
pi, Codex CLI, and Claude Code./spawncan now launch the configured default agent, accept explicit agent overrides like/spawn codex, and support--worktreefor spawning into a separate git worktree. - First-class
spawnparams on theinteractive_shelltool so the agent can use the same spawn abstraction directly instead of building raw command strings by hand. - Regression coverage for dispatch background recovery when a backgrounded session cannot be looked up after overlay teardown.
Changed
- Spawn config now lives under a nested
spawnobject withdefaultAgent,shortcut,commands,defaultArgs,worktree, andworktreeBaseDir. - The spawn shortcut now launches the configured default spawn agent instead of always launching Pi.
- Pi-only fork validation is shared between
/spawnand theinteractive_shelltool, soforknow fails fast with a clear error for Codex and Claude. - README and tool schema examples now document structured spawn usage, multi-agent
/spawncommands, and worktree settings.
Fixed
- Pi fork now validates the persisted source session before creating a worktree, so failed fork attempts no longer leave stray worktrees behind.
- Dispatch background recovery now releases the source session and disposes stale monitor state if the expected background session entry is missing after handoff.
- Generated worktree paths now include enough uniqueness to avoid collisions during rapid repeated spawns.