Grux AI's shell tool snapshots the project into a shadow git repository when a session starts and before each command that looks destructive, so the agent's work can be rolled back afterwards without touching your own git history or your own commits. That is the whole approach: make the work undoable rather than make the agent cautious. The failure everyone pictures is an agent running one destructive command, but the failure that actually happens is smaller and worse, a sequence of plausible commands that leaves a working tree you cannot reconstruct, and caution does not catch that. On top of the snapshot sit three cheaper guards: commands run only inside folders you chose, a denylist refuses the categories that end badly, and from chat every shell command waits in an approvals queue until you press the button, with a push, deploy, publish or sudo asking a second time in the default guarded mode.
| Layer | What it stops | What it costs you |
|---|---|---|
| Path allowlist | Work outside the folders you picked | Nothing. Out of the box the list is empty |
| Command denylist | The categories that end badly | Occasionally a command you meant |
| Approvals queue | From chat, every shell command; in guarded mode a push, deploy, publish or sudo needs your approval | One button press |
| Shadow git snapshot | Commands that look destructive, after the fact | Disk, and nothing else |
The ordering is the point. The first three try to prevent, and prevention is always incomplete because a shell is a general purpose machine. The fourth does not try to predict anything, which is why it is the one that catches the failure nobody wrote a rule for.
Snapshotting into your own git history would mean the agent writes commits, and then undo means rewriting history you might have pushed. A separate shadow repository keeps the agent's before-state entirely out of your log, so your branches, your staged changes and your commits are exactly where you left them whether you undo or not.
From chat, every shell command, before it runs. Then, in the default guarded mode, a second gate holds any of these until you approve it:
Through grux serve, those commands are refused at the default setting and run only if you raise the Settings ceiling to Trust. The grux CLI asks you to type run before every command, unless you pass --yes. An rm inside your folders is not on the second list, because the shell tool snapshots before it. A held command sits there until you act. Approvals is core rather than Labs, and it declares no capabilities at all, so it is ready on a clean install and simply shows an empty queue.
Shell execution and file reading are different paths with different guards. The model's only route to your disk is one Swift file, and it enforces a read-only allowlist, a denylist covering .ssh, .aws, .env, your Keychains, Mail, Messages and browser profiles, a size cap, a rate limit, a secret pattern scan on everything it returns, and an audit log that records refusals as well as reads.
{"bytes":0,"outcome":"denied_denylist","path":"~/.ssh/id_ed25519","reason":".ssh",
"resolved":"/Users/you/.ssh/id_ed25519","tool":"fs_read","ts":"2026-08-25T14:02:11Z"}
Grux AI is not sandboxed, because screen capture, AppleEvents and cross-app microphone access do not exist inside the App Sandbox. The boundary is a Swift file rather than the operating system, which means a defect in that file is a real hole. The trade is written up in the repository's SECURITY.md, including the parts it does not cover.
| Claim | Source |
|---|---|
| The shell tool snapshots the project into a shadow git repository at session start and before each command that looks destructive | ShellSession.swift |
| Each command is locked to the session's working folder, with escape patterns pre-scanned | ShellSafety.swift |
| The folder allowlist is empty until you choose a folder in Settings | FilesystemTool.swift |
| A denylist covers .ssh, .aws, .env, Keychains, Mail, Messages and browser profiles | FilesystemTool.swift |
| From chat, every shell call queues in Approvals; in guarded mode a push, forced git, branch deletion, curl with a write verb, download piped into sh or bash, deploy, publish or sudo needs your approval | JaxToolGate.swift, ShellSafety.swift |
| Grux AI is not sandboxed; screen capture and AppleEvents need the sandbox off | SECURITY.md |