CLI flags
polyglot [options] start the interactive TUIpolyglot -p "<prompt>" [options] run one prompt, print the answer, exitecho "<prompt>" | polyglot -p read the prompt from stdin| Flag | Description |
|---|---|
-p, --print |
Non-interactive: run a single prompt and exit. See Scripting & CI. |
--output-format <fmt> |
-p mode: text (default) or json. |
--allow-all |
-p mode: run every tool without prompting. |
--permission-mode <mode> |
-p mode: manual, auto, or plan for this run. |
--no-persist |
Ephemeral session - write nothing to ~/.polyglot/. Works in both interactive and -p mode. Can only tighten the persistTranscripts setting, never loosen it. |
--resume [session-id] |
Resume the most recent session, or a specific one by id. Same transcript restoration as /resume. |
-v, --version |
Print the version and exit. |
-h, --help |
Print help and exit. |
In -p mode the session id is written to stderr (session: <id>) and included in the
JSON envelope (session_id), so runs can be chained with --resume.