#!/usr/bin/env bash
set -euo pipefail
# Run from the app checkout after starting T3CODE_DEV_SEED=0 vp run dev.
# Arguments: synthetic git project already added to T3, isolated T3 home.
project=$1
t3_home=$2
node apps/server/src/bin.ts thread start "$project" 'Run exactly sleep 900 using the Bash tool with run_in_background: true and description "Sleep 900 seconds". Then finish your reply immediately with "Started the background command." Do not poll it or wait for it.' --title 'Background sleep' --provider claudeAgent --model claude-haiku-5-5 --json --base-dir "$t3_home"
