baz.studio API

baz loop

Iterate prompt → review in a basic OODA loop

baz loop [options] [text]
OptionDescription
--mode <mode>Generation mode: agent (default), agent-max, multi-scene Default: agent.
--maxShorthand for --mode agent-max
--max-iterations <n>Maximum iterations (default: 3) Default: 3.
--time-limit <time>Total wall-clock time limit (e.g., 45s, 2m, 1h); aborts in-flight generation when exceeded
--budget <time>[deprecated] Alias for --time-limit. Note: baz prompt --budget is dollars; this is time
--stop-on-failStop the loop on generation failure
--requirements <list>Deterministic requirements to verify against (duration, scenes, format)
--file <path>Read prompt from file
--image <path>Attach an image file (can be used multiple times)
--url <url>Attach a URL for the agent to analyze (can be used multiple times)
--save-contextSave provided URL/image references to reusable project context
--context-label <label>Label for saved context entries (default: reference) Default: reference.
--no-streamDisable streaming output
--stream-jsonOutput events as newline-delimited JSON
-h, --helpdisplay help for command