- App install scripts (machine setup)
- Worktree bootstrap scripts (session setup)
1) App install script (machine setup)
Base command:Team pattern
Keep a thin wrapper script in your internal setup repo, then call the official installer from that wrapper. Example wrapper:2) Worktree bootstrap script (session setup)
Worktree bootstrap runs when a new worktree starts. In the GUI:- Open
Settings. - Go to
Worktree Bootstrap. - Set
Setup command. - Set
Timeout (seconds). - Choose whether to
Delay agent start until completion.
Good bootstrap tasks
- Install dependencies.
- Prepare generated files needed for agent context.
- Run lightweight setup checks.
Example bootstrap script (Node/pnpm)
Wait vs. background behavior
- Enable
Delay agent start until completionwhen agents require setup outputs immediately. - Disable it when setup is long-running and agents can begin discovery work in parallel.
Script safety guidance
- Fail fast (
set -euo pipefail). - Keep scripts deterministic.
- Avoid interactive prompts.
- Keep secrets out of scripts tracked in docs.