DominoBench / scripts /agy_eval_home_setup.sh
emilioferrara's picture
Harness update: Antigravity CLI backend (tools denied, web search forbidden, transcript audit), Claude run tags, timeout fix; card documents the Antigravity safeguards (part 2)
1bdbac8 verified
Raw History Blame Contribute Delete
1.15 kB
#!/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