Support configuring effort alongside model
This commit is contained in:
@@ -7,7 +7,7 @@ How `internal/antigravity` drives the Antigravity CLI, `agy` (`brew install --ca
|
||||
```
|
||||
agy --input-format stream-json --output-format stream-json \
|
||||
--dangerously-skip-permissions --add-dir <session dir> \
|
||||
[--model M] [--conversation ID] --print ""
|
||||
[--model M] [--effort E] [--conversation ID] --print ""
|
||||
```
|
||||
|
||||
- `--print ""` puts the CLI in print mode; with `--input-format stream-json` it reads one message per line from stdin and runs a turn for each, in one conversation, until stdin closes. A bare `-p` takes the next flag as its prompt, so the empty prompt is passed explicitly.
|
||||
@@ -48,7 +48,7 @@ Stdout, one JSON object per line, each `{"event": E, E: {...}}`:
|
||||
|
||||
SIGINT ends the running turn: the CLI prints `error: interrupted` on stderr, sends a `result` with `status` `ERROR` and `error` `interrupted`, and exits. A tool step cut off this way gets no `DONE` update. Resume with `--conversation` after the old process exits to keep using the conversation.
|
||||
|
||||
There is no way to switch the model of a running process. Close the idle process's stdin, wait for it to exit, and restart with the new `--model` and the same `--conversation`.
|
||||
There is no way to switch the model or effort of a running process. Close the idle process's stdin, wait for it to exit, and restart with the new `--model` and `--effort` and the same `--conversation`.
|
||||
|
||||
## Hooks
|
||||
|
||||
|
||||
Reference in New Issue
Block a user