#!/usr/bin/env bash
set -euo pipefail
# Run from either checkout after starting its own fresh dev server with
# T3CODE_DEV_SEED=0 and configuring Antigravity with Gemini API key mode.
# Arguments: this checkout's base directory, a synthetic project directory.
base_dir=$1
project_dir=$2
mkdir -p "$project_dir"
cat > "$project_dir/README.md" <<'README'
# Garden Planner

A synthetic sample project that schedules garden tasks.

## Features

- Records plants and watering intervals.
- Builds a weekly task list.
- Exports a Markdown summary.

## Design

All data stays local. The planner uses explicit dates so schedules are reproducible.
README
node apps/server/src/bin.ts project add --base-dir "$base_dir" --title 'Garden Planner' "$project_dir"
node apps/server/src/bin.ts thread start --base-dir "$base_dir" --provider antigravity --model gemini-4-neon --title 'Garden documentation summary' --json "$project_dir" 'Spawn exactly one native Antigravity subagent named Garden Summary. Set its prompt exactly to: "Read README.md using the file tool. Think about the project purpose, features, and design. Report a Markdown summary with heading ## Garden Planner and exactly three bullet points to your parent, and repeat that complete Markdown summary as your final assistant response after reporting. Use only the relative path README.md in your work." Wait for the child and relay its summary. Do not read the file yourself.'
# Open the returned thread in the real app. Hide sidebar and thread details.
# Click Open Garden Summary, then Maximize panel. Try expanding Thinking
# while it runs. Once Idle, expand Worked for, then the tool group and Thought
# if present. Capture the child timeline at 1280x800, light theme.
