#!/usr/bin/env bash
set -eu
# Run in either isolated checkout. MODEL selects the same configured OpenCode model on both.
node apps/server/src/bin.ts thread start "$WORKSPACE" 'Call the subagent tool three times in parallel in this single response, all in the foreground (do not set background). Each subagent task: run sleep 90 && echo done-N, using N=1, N=2, and N=3 respectively, then report that output. Do not run the sleeps yourself. Wait for all three before replying.' --title 'Three foreground children' --provider opencode --model "$MODEL" --base-dir .t3 --json
