NetStacksNetStacks

Safety, Approvals & AI Configuration Mode

The layers that limit what the NetStacks AI can do on your devices: approvals, the read-only command filter, AI Configuration Mode, AI Terminal Mode, the bash deny list and AI-generated script approval.

Overview

Several independent layers decide what the AI assistant may do. They apply regardless of which mode or permission you pick:

LayerWhat it controlsWhere
ApprovalsYou approve command-type tool calls before they runAsk permission, both modes
Read-only command filterOnly read-only device commands are allowedStandalone Terminal; Controller for background SSH commands
AI Configuration ModeTemporarily lifts the read-only filter for 5 minutesBoth (enterprise: only if the administrator allows it)
AI Terminal ModeLets the AI write files on hosts over your sessionStandalone Terminal, off by default
Bash deny listBlocks destructive local shell commandsStandalone Terminal, Auto Pilot mode
Script approvalAI-written scripts can't run until you approve themStandalone Terminal

Approvals in Ask Permission

With the permission selector on Ask, command-type tool calls (terminal commands, background SSH commands, local shell commands, remote file writes and console commands) stop in an Approval Required box in the AI panel. Review the session and command, then click Approve / Approve All or Reject. The full list of gated tools is on Modes & Permissions.

Tip
Ask is the default for Overlord mode. Combine it with the read-only filter for the most conservative setup on production devices.

Read-Only Command Filter

In the standalone Terminal, every command the assistant wants to type into a terminal tab is checked by the local agent before it is sent. If the check can't be completed, the command is not sent.

  • Allowed: commands whose first word is show, display, get, list, ping, traceroute or trace.
  • Blocked: shell metacharacters and chained commands (;, &, |, backticks, $( ), redirects), multi-line input, vendor shell escapes, configure / conf t, write, reload, erase, format, request system reboot and similar.

A refused command returns this message to the assistant (and you see it in the tool-call row):

Command rejected by read-only filter: … Enable AI Config Mode to allow configuration changes.

Paging and setup commands
Because only the command words above are allowed, session setup commands such as terminal length 0 are refused too while the filter is active. NetStacks adds | no-more for Juniper and PAGER=cat for Linux sessions automatically.

Background SSH Commands

The assistant can also run read-only commands on a saved session over a separate, background SSH connection (it never sees the credentials). In the standalone Terminal these background commands are always limited to read-only commands, even while AI Configuration Mode is on. In enterprise mode the Controller makes the connection and applies the same read-only filter, unless the user has enabled AI Configuration Mode and the administrator has turned on Allow AI Configuration Changes.

Live Session Guard

NetStacks tracks the state of each terminal (operational or configuration mode, uncommitted changes, waiting prompts). The assistant's commands are refused when a session is waiting at an interactive prompt (such as a confirmation or password prompt), and exit or commit commands are refused while a configuration session has uncommitted changes, so the AI never answers a prompt or commits work on your behalf.

AI Configuration Mode

AI Configuration Mode is the only way to let the assistant send configuration commands to devices. It is time-limited: it switches itself off after 5 minutes, and you can revoke it at any moment. It is found in Settings → AI → AI AUTOMATION → AI Configuration Mode.

While it is active, the assistant is also told it is in configuration mode, and its instructions still require it to confirm changes with you. Combine it with Ask permission so you approve every configuration command.

Standalone: Enable with Your Master Password

  1. Open Settings → AI and find AI Configuration Mode under AI AUTOMATION.
  2. Type your vault master password in Master password to enable… (the button stays disabled until at least 12 characters are entered).
  3. Click Enable for 5 min. NetStacks verifies the password by unlocking the vault.
  4. The button changes to Disable (Ns left) and a warning reads "AI is currently allowed to send configuration commands. The override expires automatically; click Disable to revoke immediately."

While active, commands the assistant types into your terminal tabs are no longer limited to read-only commands. Background SSH commands stay read-only.

Enterprise: Controller Policy Enterprise

On a Controller, an administrator first decides whether AI configuration changes are allowed at all: admin console Settings → AI → Allow AI Configuration Changes (off by default). When it is off, AI commands sent through the Controller are restricted to read-only operations for everyone.

Controller Settings, AI category with Global System Prompt, Allow AI Configuration Changes and Allow AI Terminal Mode toggles

In the Terminal (desktop in enterprise mode, or the web terminal), the AI Configuration Mode card then reads "This feature is disabled by your administrator. Contact your admin to enable AI configuration changes on the controller."

Terminal Settings, AI AUTOMATION section; AI Configuration Mode shows it is disabled by the administrator

When the administrator allows it, users enable it for 5 minutes with Enable for 5 min in the Terminal (your Controller login is used, no master password). The admin console's AI & Agents → Chat page has the same AI Configuration Mode panel, which asks for your account password.

Controller AI Chat page with the AI Configuration Mode panel: password field and Enable for 5 min button

Enabling and disabling configuration mode, and refused configuration commands, are recorded in the Controller's application logs.

AI Terminal Mode

AI Terminal Mode (standalone, Settings → AI → AI AUTOMATION) gives the assistant three extra tools — write_file, edit_file and patch_file — to change files on connected hosts and devices over SSH. Files are written atomically (to a temporary file, then moved into place). It is off by default; the setting warns "with this on, the AI can change remote filesystems directly. Leave it off unless you need it."

All three tools require approval in Ask permission.

Local Shell Deny List

In Auto Pilot mode the assistant can run shell commands on your own computer. The local agent refuses destructive commands (including rm, rmdir, shred, mkfs, fdisk, dd, shutdown, reboot, kill, killall, sudo, su) and you can add more in Bash Command Deny List. You can also switch the Bash / Shell tool off entirely in AI TOOLS.

AI-Generated Scripts Need Approval

In the standalone Terminal, scripts created by the AI (for example with the AI Script Generator, Cmd/Ctrl+Shift+G) are saved as unapproved. In the script editor a banner explains the script was generated by the AI, and the Run button is replaced by Approve to Run("Review the script content, then approve before running"). Editing an AI script's content removes the approval again, so you always review the final version.

Built-in Safety Rules

Every request includes a fixed set of safety instructions that you cannot edit or remove. The assistant is told to:

  1. Never guess device state.
  2. Never run destructive commands (write erase, reload, format, delete startup-config, request system zeroize) without explicit human approval.
  3. Never send data anywhere except the configured LLM provider.
  4. Always sanitize credentials.
  5. Never fabricate CLI output.
  6. Never bypass change management.
  7. Verify after every change.
  8. Always identify itself as AI.

These are instructions to the model; the hard limits are the filters and approvals above. You can add your own rules in your AI Engineer profile.

Commands you type yourself
NetStacks can also warn when you type a dangerous command in a terminal (a Dangerous Command / Command Warning dialog with Proceed Anyway). That check is pattern-based and does not involve the AI.