24| `--always-approve` | Auto-approve tool executions |24| `--always-approve` | Auto-approve tool executions |
25| `--no-alt-screen` | Run inline (no alternate screen / fullscreen TUI takeover) |25| `--no-alt-screen` | Run inline (no alternate screen / fullscreen TUI takeover) |
26 26
27**Sessions:** Headless sessions (via `--session-id`, `--resume`, `--continue`) are stored in `~/.grok/sessions`.
28
27**Suppressing updates in xai-grok-shell:** When using headless mode (`-p`) or ACP (`grok agent stdio`) in scripts, CI, or other automated environments, pass `--no-auto-update` (e.g. `grok --no-auto-update -p "..."`) to skip background update checks. You can also persistently disable them by setting `auto_update = false` under the `[cli]` section in `~/.grok/config.toml`.29**Suppressing updates in xai-grok-shell:** When using headless mode (`-p`) or ACP (`grok agent stdio`) in scripts, CI, or other automated environments, pass `--no-auto-update` (e.g. `grok --no-auto-update -p "..."`) to skip background update checks. You can also persistently disable them by setting `auto_update = false` under the `[cli]` section in `~/.grok/config.toml`.
28 30
29## Output formats31## Output formats