在公司裡的角色
反重力(Antigravity CLI,名冊代號 agy)提供 Google 模型這一路大腦。它只把啟動的資料夾當工作區,所以放行配置比別家多一步。
啟動參數
| 崗位 | 參數 |
|---|---|
| 固定崗位 | --add-dir "<公司根目錄>"(把整個知識庫加進工作區) |
| 臨時幫手 | 無(在公司根目錄上崗,本來就在工作區內) |
權限放行配置
命令列版跑命令、讀網頁預設都要批准。在 ~/.gemini/antigravity-cli/settings.json 的 permissions.allow 加:
"read_url(*)", "command(herdr agent)", "command(herdr tab)", "command(herdr workspace list)", "command(herdr pane read)", "command(herdr --skill)", "command(git add)", "command(git commit)", "command(git status)", "command(git log)", "command(git show)", "command(git diff)", "command(ls)", "command(cat)", "command(head)", "command(tail)", "command(wc)", "command(grep)"
意思:讀網頁、herdr 協作命令、git 存版本與幾條唯讀命令不用逐次批准;其他照樣要批准。這個檔案對這台電腦上所有反重力工作階段生效。已有其他內容就只往 allow 陣列加這幾條;沒有檔案就新建 {"permissions": {"allow": [上面這幾條]}}。
Windows:檔案在 $HOME\.gemini\antigravity-cli\settings.json,且官方寫明要匹配子命令得用 regex 寫法:"command(regex:herdr (agent|tab|pane read|workspace list) .*)"、"command(regex:git (add|commit|status|log|diff|show).*)"。
卡點
- 整合裝不上:
herdr integration install antigravity-cli報設定目錄不存在 → 反重力還沒在這台電腦啟動過,~/.gemini/config/還沒生成。先在普通終端機啟動它一次、退出,再回來裝。 - 臨時幫手查資料:名冊臨時幫手用反重力時,先確認
allow裡已有"read_url(*)",免得幫手查資料時輪流停下來要批准。