#!/usr/bin/env bash
set -euo pipefail
# Run from the checkout whose isolated dev server is already running.
# Configure the claude provider instance (claudeAgent) before calling this.
proof_project=${1:?Pass a new scratch project directory}
mkdir -p "$proof_project"
git init -q "$proof_project"
node apps/server/src/bin.ts project add --base-dir .t3 "$proof_project"
node apps/server/src/bin.ts thread start --base-dir .t3 --provider claude --model claude-haiku-5-5 --wait --json "$proof_project" 'Reply only OK for this synthetic thread title synchronization demonstration.'
# Open the returned thread directly; reproduction.md gives the browser steps.
