Session Handoff Hook Script

loom-builderpromptmarkdown
Path: loom-builder/prompts/session-handoff-hook-script.mdRelative: prompts/session-handoff-hook-script.mdSubproject: loom-builderCategory: dispatch-prompts
Lines: 29Bytes: 1,872Imports: 0Exports: 0

Content Preview

  1. # ROLE
  2. Executor: build the session-handoff hook script (ADR-2026-07-02 item 1 — kills the 35% context-loss/redo waste). Script only — do NOT touch /home/mikes/.claude/settings.json; orchestrator wires that separately.
  3. # INTEL DISCOVERY (step 0)
  4. `ls /home/mikes/scripts/hooks/` — match conventions of existing hook scripts there (read one short example, e.g. save-agent-dispatch.sh).
  5. # TASK
  6. Create /home/mikes/scripts/hooks/session-handoff.sh (bash, executable):
  7. 1. Reads Claude Code Stop-hook JSON