Permissions And Sandbox
Grok Code separates approval behavior from execution boundaries.
Trust Modes
The user-facing trust modes are:
offlimitedfull
Use:
ctrl+g/trustgrok --trust ...
Sandbox Levels
The user-facing sandbox levels are:
read-onlyworkspace-writefull-access
You will mostly see them on the CLI:
bash
grok exec --sandbox read-only "inspect the repo"
grok exec --sandbox workspace-write "fix the failing test"--full-auto
grok exec --full-auto does two things together:
- sets trust mode to
full - sets sandbox to
workspace-write
Practical Advice
- use
read-onlywhen you want inspection only - use the TUI when you want review through
Gate - use
workspace-writefor normal CLI edits - use
full-accessonly when you actually need it