Harness Notes

Permissions

Updated 2026-11-25,

On this page

How to stop an agent doing something, and what each harness gives you to control it. Permission rules decide what the agent may do; a sandbox limits what a command can reach even when it is allowed.

Block a command, for example git push

Antigravity CLI
How

Global CLI permission rule

File~/.gemini/antigravity-cli/settings.json
Example
{
  "permissions": {
    "deny": [
      "command(git push)"
    ]
  }
}
How it matches

Literal command rules use command-prefix matching.

What wins

Deny outranks Ask and Allow.

Watch out for

This path is user-scoped. A repository-specific CLI deny rule was not established.

What you can control

Antigravity CLI
Decisions

allow, ask, deny

Permission rules

Built in

Cover: shell command, file access, web access, MCP

Match by: action(target) with matching rules specific to each action

Conflicts: Deny takes priority over Ask, then Allow. Modes and toolPermission govern unmatched actions.

Auto availability depends on platform, sandbox availability and account type.

In 1.5.16 Auto mode, an outside-workspace write can proceed without prompting inside a version-controlled repository or for an additive edit. Replacing existing lines outside a repository still prompts. Hidden paths, VCS and hook metadata, and system and startup folders retain prompts. Ask and deny rules and organization policy still apply.

Docs
Sandbox

Built in

Limits: filesystem, network

Enforced separately from permission rules.

The terminal sandbox is an OS-level boundary for commands when enabled. Platform behavior varies.

Docs
Approval prompts

Built in

An Ask decision prompts in the interactive CLI. Headless mode cannot prompt for confirmation. Since 1.5.7, when agentMode is unset, print mode uses auto where available and default otherwise.

Skills granting tools

Not established

No skill-scoped permission grant was established.

Hooks that decide

Built in

PreToolUse

The 1.5.7 release notes document that named administrator review requirements still prompt when PreToolUse returns auto_approve. Full hook and policy ordering remains unverified.

Where rules live
  • ~/.gemini/antigravity-cli/settings.json, user

Sources

Antigravity CLI