#!/usr/bin/env bash # Session hook for the handoff skill (Claude Code, Codex, Antigravity): see hook.py. # # hook.sh claude | codex | agy (the hook's JSON on stdin) # # Needs python3 to read the hook's JSON safely. Without it the hook does nothing (agy: {}), # so it never stops a session. here="$(cd "$(dirname "$0")" && pwd)" if command -v python3 > /dev/null 2>&1; then exec python3 -B "$here/hook.py" "$@" fi cat > /dev/null [ "${1:-}" != "agy" ] || echo '{}' exit 0