Session Bootstrap
Use When
- •Starting plan/build/test workers.
Inputs
- •task/worktree context
- •selected agent and model
- •startup command template
Procedure
- •Create session bound to task role.
- •Verify working directory is correct.
- •Launch agent command.
- •Read startup output and ensure session is live.
Output Contract
- •
session_id - •
cwd - •
startup_status
Guardrails
- •Never start a worker in the wrong directory.
- •Never rely on active terminal state; always use explicit
session_id.