#!/usr/bin/env bash
# Run from an isolated checkout with dependencies installed and its dev server running:
# T3CODE_DEV_SEED=0 vp run dev
# First add claude-haiku-5-5[1m] in Settings > Providers > Claude > Models.
# Usage: bash seed.sh <synthetic-project-directory>
set -euo pipefail
project_dir=${1:?Pass an empty synthetic project directory}
node apps/server/src/bin.ts project add "$project_dir" --base-dir .t3 --title 'Context capacity proof'
node apps/server/src/bin.ts thread start "$project_dir" \
  'Reply with just the word ok. Do not use any tools.' \
  --base-dir .t3 --provider claudeAgent --model 'claude-haiku-5-5[1m]' \
  --title 'Custom Claude context window' --wait --json
node apps/server/src/bin.ts thread start "$project_dir" \
  'Reply with just the word ok. Do not use any tools.' \
  --base-dir .t3 --provider claudeAgent --model claude-haiku-5-5 \
  --title 'Catalog model control' --wait --json
# Open the returned custom thread in the web client. In Thread details > Choose what
# to show, enable Context window and hide Environment and worktree; hide the sidebar.
# The recordings send the same prompt once more through the composer, then hover
# the Context meter. Both runs use light theme, 1280x800 CSS pixels (DPR 2).
