Check a repository before you trust it
Trusting a folder lets its .gemini/settings.json override yours, its .env set Gemini CLI variables, and its MCP servers and hooks start. Before trusting a repository you didn’t create:
- Read
.gemini/settings.jsonand stop at anything that turns the sandbox off, allows tools, adds hooks or marks an MCP server"trust": true. - Check the project
.envforGEMINI_*variables: a trusted folder’s.envcan setGEMINI_SANDBOX=false. - Read
GEMINI.mdandAGENTS.md, and check them for hidden Unicode. - List every symlink, and re-clone repositories that arrived with their own
.git/config.