pub struct Cli {
pub prompt: Option<String>,
pub cwd: Option<PathBuf>,
pub harness: Harness,
pub api_schema: String,
pub max_turns: Option<u32>,
pub output_format: OutputFormat,
pub dangerously_skip_permissions: bool,
pub strip_identity: bool,
}Expand description
Minimal headless runner for the locode engine: one JSON report on stdout (ADR-0009), diagnostics on stderr, exit code from the run’s status.
Fields§
§prompt: Option<String>The task prompt. - or omitted reads the prompt from stdin.
cwd: Option<PathBuf>Workspace root / working directory (the path-jail root). Defaults to the current directory.
harness: HarnessHarness pack selecting the toolset + system prompt.
api_schema: StringProvider wire schema: anthropic, openai-responses, or mock
(keyless CI) — plus any custom providers the binary registered
(ADR-0015). Unknown names fail pre-run listing the available set.
max_turns: Option<u32>Hard ceiling on sample→dispatch turns. Unlimited when omitted (ADR-0005 amendment — no studied harness caps turns by default).
output_format: OutputFormatstdout contract: json = one Report; stream-json = Event JSONL;
text = the final message.
dangerously_skip_permissions: boolDisable the path jail (PathPolicy::Unrestricted). The shell’s
timeout/output caps stay on (ADR-0008 amendment).
strip_identity: boolStrip harness identity sentences from the rendered system prompt (A/B contamination control; default = faithful reproduction).
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
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>
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>
ArgMatches to self.