- Guard rsync call with command -v check to fail fast with a clear message in environments where rsync is not installed, preventing silent git hook failures under set -e - Add else blocks: when .ai/AGENTS.md or .ai/ignore are absent, remove the corresponding synced files to prevent config drift