pub struct AgentArgs {
pub runner: Option<String>,
pub model: Option<String>,
pub effort: Option<String>,
pub repo_prompt: Option<RepoPromptMode>,
pub runner_cli: RunnerCliArgs,
}Expand description
CLI arguments for agent configuration.
Used by task and scan commands.
Fields§
§runner: Option<String>Runner override for this invocation (codex, opencode, gemini, claude, cursor). Overrides task.agent and config.
model: Option<String>Model override for this invocation. Overrides task.agent and config. Allowed: gpt-5.4, gpt-5.3-codex, gpt-5.3-codex-spark, gpt-5.3, gpt-5.2-codex, gpt-5.2, zai-coding-plan/glm-4.7, gemini-3-pro-preview, gemini-3-flash-preview, sonnet, opus, kimi-for-coding (codex supports only gpt-5.4/gpt-5.3-codex/gpt-5.3-codex-spark/gpt-5.3/gpt-5.2-codex/gpt-5.2; opencode/gemini/claude/cursor/kimi/pi accept arbitrary model ids).
effort: Option<String>Codex reasoning effort override (low, medium, high, xhigh). Ignored for other runners.
repo_prompt: Option<RepoPromptMode>RepoPrompt mode (tools, plan, off). Alias: -rp.
runner_cli: RunnerCliArgsTrait Implementations§
Source§impl Args for AgentArgs
impl Args for AgentArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for AgentArgs
impl FromArgMatches for AgentArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for AgentArgs
impl RefUnwindSafe for AgentArgs
impl Send for AgentArgs
impl Sync for AgentArgs
impl Unpin for AgentArgs
impl UnsafeUnpin for AgentArgs
impl UnwindSafe for AgentArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more