Skip to main content

Module argv

Expand description

Provider-aware construction of per-turn subprocess arguments.

Constants§

GEMINI_DENY_ALL_TOOLS_POLICY
The Gemini policy that denies every tool, built-in and MCP. Written to disk for --policy. Checked against the pinned CLI (0.60.0) by capturing its request: with this policy the request declares no tools at all, even with --yolo on.

Functions§

build_codex_side_question_argv
Build the argv for a /btw side question on a Codex pane: a tool-less codex exec turn, built from scratch rather than from the pane’s own argv, which may be the app-server’s and always carries --dangerously-bypass-approvals-and-sandbox.
build_gemini_side_question_argv
Build the argv for a /btw side question on a Gemini pane: headless stream-json with GEMINI_DENY_ALL_TOOLS_POLICY at policy_path, and approval mode default instead of the pane’s --yolo. No --skip-trust: trusting the folder would load the project’s own Gemini settings, hooks included, so /btw gets the same trust as the pane.
build_side_question_argv
Build the argv for a /btw side-question one-shot turn (server/agent_handlers/side_question.rs) from base_one_shot_args — the same one-shot cli_args a normal turn on this block would use.
model_flag_value
The value of -m / --model (or --model=<v>) in args, if any.