#!/usr/bin/env bash
set -euo pipefail
# Run from either comparison checkout. Pass that checkout's isolated T3 base directory.
base_dir=${1:?isolated T3 base directory required}
node apps/server/src/bin.ts thread start --base-dir "$base_dir" --provider pi --model openai/gpt-6-luna --title 'Idle survival 40m' . 'Launch an async pi-subagents worker with exactly this call: subagent({"agent":"worker","task":"Execute bash sleep 2400 with timeout 2700 seconds, then reply exactly IDLE_SURVIVAL_COMPLETE.","model":"openai/gpt-6-luna","async":true,"label":"Idle survival 40m","options":{"timeoutMs":3000000}}). Enable the subagent tool first if needed. Report the run id and finish your launching turn immediately without polling, waiting, or inspecting repository files. This is an explicitly authorized subagent reproduction.' --json
