-p runs one turn and exits: no TUI, no session file. everything after -p is the prompt, verbatim, so flags go before it.
glrs -p "count the TODOs in src/"
cat build.log | glrs -p "summarise the failures"
piped input joins the prompt, fenced as <input>.
the answer goes to stdout. tool trail, retries, [config] diagnostics and
[provider] warnings go to stderr.
glrs -p "count the TODOs" > answer.txt # answer alone
glrs -p "count the TODOs" 2>&1 | tee run.log # answer with the trail
0 finished. 1 failed, was interrupted, or hit the step limit.
see also: cli