Answer: Gemini CLI requires manual user confirmation for tools that modify files or execute shell commands (mutators), showing a diff or the exact command before confirmation, and it supports sandboxing to run tool executions in secure, containerized environments that isolate changes from the host system. Status: Confirmed Entry: tool/gemini-cli/permissions-and-security/tool-execution-security Revision: 1 Digest: sha256:f24fda9b5232f614 (changes whenever the content changes) Timeline: Created: 2026-11-15T12:57:45Z Last changed: 2026-11-15T12:57:45Z Last verified: 2026-11-20T12:53:39Z Next check: 2026-11-21T12:53:39Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of User confirmation | You must manually approve tools that modify files or execute shell commands (mutators). | [1] | 2026-11-20 Confirmation display | The CLI shows you a diff or the exact command before you confirm. | [1] | 2026-11-20 Sandboxing | You can run tool executions in secure, containerized environments to isolate changes from your host system. | [1] | 2026-11-20 Sources: [1] Google. "Tools reference". https://geminicli.com/docs/reference/tools.md Role: primary. Accessed: 2026-11-20T12:53:39Z Quote: "**User confirmation:** You must manually approve tools that modify files or execute shell commands (mutators)." (Supports: User confirmation) Quote: "The CLI shows you a diff or the exact command before you confirm." (Supports: Confirmation display) Quote: "**Sandboxing:** You can run tool executions in secure, containerized environments to isolate changes from your host system." (Supports: Sandboxing) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: 6b92328b478daae81baa2192d94c0e023fd57a91439f4d6888dcfb3b8c8a673c (captured 2026-11-13T03:18:52Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-15T12:57:45Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:53:39Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:53:39Z Last attempt: 2026-11-20T12:53:39Z Notes and limitations: Extracted automatically from a single official source (section "Automatic execution and security"). Related: https://latestn.com/tool/gemini-cli/permissions-and-security/untrusted-workspace-impact What happens when I run Gemini CLI in an untrusted folder? https://latestn.com/tool/gemini-cli/permissions-and-security/web-fetch-confirmation Does the Gemini CLI web_fetch tool require confirmation, including in Plan Mode? https://latestn.com/tool/gemini-cli/permissions-and-security/web-fetch-network-restrictions What network restrictions does the Gemini CLI web_fetch tool apply to prevent access to private or internal addresses? https://latestn.com/tool/gemini-cli/permissions-and-security/shell-command-safety-features What safety features like confirmation prompts and sandboxing does Gemini CLI have for shell commands? https://latestn.com/tool/gemini-cli/permissions-and-security/skill-activation-consent How does Gemini CLI activate an Agent Skill and ask for consent? https://latestn.com/tool/gemini-cli/permissions-and-security/skill-security-privacy What security and privacy considerations should I follow when creating Gemini CLI Agent Skills? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-15T12:57:45Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/permissions-and-security/tool-execution-security/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/gemini-cli/permissions-and-security/tool-execution-security POST: https://latestn.com/dispute/tool/gemini-cli/permissions-and-security/tool-execution-security with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/permissions-and-security/tool-execution-security?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How does Gemini CLI handle confirmation and sandboxing for tool execution? Revision 1, last verified 2026-11-20T12:53:39Z. https://latestn.com/tool/gemini-cli/permissions-and-security/tool-execution-security (accessed 2026-11-21T10:00:25Z). @misc{LatestN_tool_gemini_cli_permissions_and_security_tool_execution_security_r1, title = {How does Gemini CLI handle confirmation and sandboxing for tool execution?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/permissions-and-security/tool-execution-security}}, note = {Revision 1; digest sha256:f24fda9b5232f614; last verified 2026-11-20T12:53:39Z; accessed 2026-11-21T10:00:25Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/gemini-cli/permissions-and-security/tool-execution-security