grok::on-config-change
Internal: reload grok configuration when it changes.
- okboolean
xAI Grok CLI as an iii worker; grok::run/start/stop/status/sessions::list spawn the grok CLI for headless turns, mirror raw streaming-json events onto grok::events, and stream AgentEvent frames onto agent::events.
exact versions are immutable; binary and bundle artifacts are digest-pinned.
Internal: reload grok configuration when it changes.
Run one Grok turn and wait for the result. Accepts `prompt` or a `messages` array; streams raw Grok events onto grok::events, AgentEvent frames onto agent::events, and returns {session_id, result, stop_reason}.
Auto-approve tool/command execution for this headless turn (--always-approve).
Working directory the turn runs in (--cwd).
Inject the iii runtime discovery prompt as the leading instructions (default true via config).
Alternative to prompt: role/content messages; the last user entry becomes the prompt.
Either a plain string or an array of content blocks.
Model id; empty = Grok default (e.g. grok-build-0.1).
The user prompt for this turn.
iii session id; reuse to resume the same Grok thread.
Reserved for callers; not forwarded.
List every Grok session this worker has run.
Start a Grok turn and return immediately; watch grok::events / agent::events (group_id = session_id) for progress and turn_end.
Auto-approve tool/command execution for this headless turn (--always-approve).
Working directory the turn runs in (--cwd).
Inject the iii runtime discovery prompt as the leading instructions (default true via config).
Alternative to prompt: role/content messages; the last user entry becomes the prompt.
Either a plain string or an array of content blocks.
Model id; empty = Grok default (e.g. grok-build-0.1).
The user prompt for this turn.
iii session id; reuse to resume the same Grok thread.
Reserved for callers; not forwarded.
Point-in-time status of a Grok session.
iii session id returned by grok::run / grok::start.
Interrupt a live Grok run for a session.
iii session id returned by grok::run / grok::start.