#!/usr/bin/env bash
set -eu
# Run from the checkout under test after T3CODE_DEV_SEED=0 vp run dev.
# Supply an empty scratch git repository as $1.
node apps/server/src/bin.ts project add --base-dir .t3 --title 'Provider handoff proof' "$1"
node apps/server/src/bin.ts thread start --base-dir .t3 --provider claudeAgent --model claude-haiku-5-5 --title 'Queued provider switch' "$1" 'Call the T3 Code MCP tool orchestrator_capabilities once and report whether it succeeded. Then use the Bash tool with run_in_background set to true to run: sleep 600. Then use the Bash tool in the foreground to run exactly: python3 -c "import time; time.sleep(60)" and wait for it. Then reply DONE.'
