grok exec

grok exec is the script-friendly version of a one-shot Grok Code run.

Basic Use

bash
grok exec "summarize the failing tests"

Key Behavior

  • progress goes to stderr
  • final result goes to stdout
  • stdin can supply extra input
  • successful edits are applied live

Common Patterns

bash
cat build.log | grok exec "explain this failure"
grok exec --json "run tests and summarize failures"
grok exec --quiet "format the output as markdown"

Was this page helpful? Report issues on GitHub.