Eureka/demo/setup.sh
Eureka 37c8c04e6a demo: tabsplit fixture with a seeded rule-3 bug, setup script, Soul brief
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 03:19:09 +00:00

20 lines
860 B
Shell
Executable file

#!/bin/sh
# Usage: demo/setup.sh <empty-dir>
# Copies the tabsplit fixture into <empty-dir>, makes it a git repo with the
# author's work as the first commit, and gives it the Soul charter as a
# project-scoped subagent. Touches nothing outside <empty-dir>.
set -eu
here=$(cd "$(dirname "$0")" && pwd)
skill=$(dirname "$here")
dest=${1:?usage: setup.sh <empty-dir>}
mkdir -p "$dest"
[ -z "$(ls -A "$dest")" ] || { echo "$dest is not empty" >&2; exit 1; }
cp "$here"/fixture/* "$dest"/
mkdir -p "$dest/.claude/agents"
cp "$skill/agents/soul.md" "$dest/.claude/agents/soul.md"
cd "$dest"
printf '__pycache__/\n' > .gitignore
git init -q -b main
git add .gitignore SPEC.md tabsplit.py test_tabsplit.py HANDS_REPORT.md .claude
git -c user.name=hands -c user.email=hands@example.invalid commit -q -m "split_cents: done, 6 tests green"
echo "fixture ready in $dest"