- CLAUDE.md with collaboration rules and Planner/Generator/Evaluator cycle - .claude/ agents, commands, skills, hooks per Claude Code conventions - Sprint Contracts for sut-prober, normalizer, recorder, player, diff-reporter - SUT catalog (EG-BIM Modeler, 187 plugins) and .gitignore excluding SUT tree - PROGRESS.md / PLAN.md as shared agent handoff state - Solution scaffold targeting sut-prober PoC Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
481 B
Bash
27 lines
481 B
Bash
#!/usr/bin/env bash
|
|
# SessionStart hook: surface PROGRESS.md and PLAN.md so any agent can pick up work.
|
|
set -e
|
|
|
|
ctx=""
|
|
for f in PROGRESS.md PLAN.md; do
|
|
if [ -f "$f" ]; then
|
|
ctx="${ctx}
|
|
|
|
=== $f ===
|
|
$(head -80 "$f")"
|
|
else
|
|
ctx="${ctx}
|
|
|
|
=== $f ===
|
|
(missing — run /handoff to bootstrap)"
|
|
fi
|
|
done
|
|
|
|
# Emit JSON so Claude Code adds it as additionalContext.
|
|
jq -n --arg c "$ctx" '{
|
|
hookSpecificOutput: {
|
|
hookEventName: "SessionStart",
|
|
additionalContext: $c
|
|
}
|
|
}'
|