Skip to main content
Reference tooling 3 min read Updated

docs-cli-commands-permissions

Permissions command (/permissions)

Available on: Antigravity CLI

Manage your fine-grained agent permission rules interactively within the TUI.

Overview

Antigravity CLI uses a fine-grained permissions engine to secure your workstation. While you can configure these rules manually in your settings file, the /permissions command opens an interactive Permissions Manager TUI panel to view, add, edit, and delete rules live.

For details on how the permission engine works, supported actions, and manual configuration, refer to the conceptual Permissions guide.

Managing permissions interactively

To open the Permissions Manager, follow these steps:

  1. Type /permissions in the prompt box.
  2. Press Enter.
/permissions

The Permissions Manager operates in three panels:

  1. Scope picker: Select the configuration scope you want to edit:

    • Project: Rules applying only to the active project (disabled if no project is open).
    • Shared: Rules shared across all Antigravity products.
    • Global: Global rules applying to all your sessions.

    Use ↑/↓ (or J/K) to navigate, Enter to select, and Esc to exit.

  2. Rule viewer: View the rules configured for the selected scope:

    • Switch between allowlist, denylist, and asklist tabs using ←/→ (or Tab).
    • Scroll through the rules using ↑/↓ (or J/K).
    • Press A to add a new rule.
    • Press E (or Ctrl + G) to edit the highlighted rule.
    • Press D (or Backspace) to delete the highlighted rule.
    • Press Esc to return to the Scope Picker.
  3. Add or edit rule: Type or edit a rule in the input field:

    • Rules must follow the action(target) format (for example, command(git)).
    • Press Enter to validate and save the rule.
    • Press Esc to cancel.

Step-by-step walkthrough

Here is how to view, add, edit, and delete rules live in the TUI.

Selecting a scope and viewing rules

When you run /permissions, you first open the Scope Picker, with Project highlighted:

The Scope Picker with the Project scope highlighted

Use ↑/↓ to select Global to manage your global rules, then press Enter to open the Rule Viewer for the selected scope. You can use ←/→ to switch between the allow, deny, and ask tabs:

Global Rule Viewer

Adding a permission rule

To allow the agent to run git commands automatically without prompting, follow these steps:

  1. In the Rule Viewer, press A. The Add Rule panel opens at the bottom:

    Add Rule Panel

  2. Type command(git) in the input field:

    Typing the Rule

  3. Press Enter. The rule is validated and saved, returning you to the Rule Viewer where command(git) now appears in your allowlist:

    Rule Saved Successfully

Editing a permission rule

If you want to restrict the agent so it can only run git diff automatically, you can edit the rule:

  1. In the Rule Viewer, use ↑/↓ to highlight command(git).
  2. Press E (or Ctrl + G). The input panel opens, prefilled with command(git).
  3. Modify the text to command(git diff).
  4. Press Enter to save. The new rule replaces the old one.

Deleting a permission rule

To remove a rule and revert to prompting for those actions, follow these steps:

  1. In the Rule Viewer, highlight the rule you want to delete (for example, command(git diff)).
  2. Press D (or Backspace).
  3. The rule is immediately removed from the list.

Next steps

Explore the following guides to learn more about security and permissions: