#!/bin/zsh # Build the evaluation-only HOME for the Antigravity CLI (eval/agy_home). Everything under the user's real ~/.gemini # is symlinked in (login state, sandbox, caches), EXCEPT ~/.gemini/antigravity-cli/settings.json, which is the # repo's own copy with deny rules for shell commands, file writes, web and MCP: the model can only read the scene # picture. The user's own agy settings are never touched. Re-run after agy updates. (2026-11-13) ROOT="$(cd "$(dirname "$0")/.." && pwd)" H="$ROOT/eval/agy_home" REAL="$HOME/.gemini" mkdir -p "$H/.gemini/antigravity-cli" for e in "$REAL"/*(N) "$REAL"/.*(N); do n=${e:t} [[ $n == antigravity-cli ]] && continue ln -sfn "$e" "$H/.gemini/$n" done for e in "$REAL/antigravity-cli"/*(N) "$REAL/antigravity-cli"/.*(N); do n=${e:t} [[ $n == settings.json ]] && continue ln -sfn "$e" "$H/.gemini/antigravity-cli/$n" done # macOS keychain lookups go through ~/Library; link it so the login keychain is found under the swapped HOME mkdir -p "$H/Library" ln -sfn "$HOME/Library/Keychains" "$H/Library/Keychains" echo "eval HOME ready: $H"; ls -la "$H/.gemini" "$H/.gemini/antigravity-cli" | head -40