Skip to main content

Cli

Struct Cli 

Source
pub struct Cli {
Show 32 fields pub command: Option<Command>, pub prompt: Option<String>, pub gate: Option<String>, pub converse: bool, pub dispatch_cmd: Option<String>, pub context: String, pub model: Option<String>, pub container: Option<String>, pub max_turns: usize, pub max_gates: usize, pub rollback: bool, pub container_workdir: String, pub max_seconds: Option<u64>, pub max_cost_usd: Option<f64>, pub report: Option<PathBuf>, pub fold_budget: Option<usize>, pub sandbox: String, pub network: Option<String>, pub allow_read: Vec<PathBuf>, pub pass_env: Vec<String>, pub read_roots: Vec<PathBuf>, pub no_gate_slot: bool, pub research: bool, pub claim_check: bool, pub base_check: bool, pub base_check_dir: Option<PathBuf>, pub terminal: bool, pub port: Option<u16>, pub no_open: bool, pub days: Option<u64>, pub name: Option<String>, pub resume: Option<String>,
}

Fields§

§command: Option<Command>§prompt: Option<String>

Direct task prompt to run in single-shot / headless mode

§gate: Option<String>

Verification gate command (e.g. ‘pytest’, ‘cargo test’). Several steps may be given one per line: every step runs and all failures are reported together.

§converse: bool

Run blyte as the conversation model: plan, dispatch implementers with blyte dispatch, review and merge

§dispatch_cmd: Option<String>

Command to run on the host when the conversation model delegates work via the dispatch tool

§context: String

Context strategy: ‘conversational’ (append-all chat) or ‘folded’ (append-only chat, oldest half folded into digests past a budget)

§model: Option<String>

Model identifier or provider selection

§container: Option<String>

Run inside an isolated container workspace instead of local host

§max_turns: usize

Maximum turn budget

§max_gates: usize

Maximum verification gate attempts before failing

§rollback: bool

Enable automatic rollback to baseline git commit if gate fails (disable with –rollback=false)

§container_workdir: String

Working directory inside the container when –container is set

§max_seconds: Option<u64>

Wall-clock budget in seconds; the run stops itself and reports when it is spent

§max_cost_usd: Option<f64>

Maximum spend in USD; the run stops before a model call once reached

§report: Option<PathBuf>

Write a JSON run report to this path when the headless run exits

§fold_budget: Option<usize>

Approximate token budget for the verbatim tail before folding (folded context; default 48000)

§sandbox: String

Sandbox the commands blyte runs on this machine (macOS Seatbelt, Linux Landlock): ‘on’ or ‘off’

§network: Option<String>

Let commands blyte runs connect out: ‘on’ or ‘off’ (default ‘on’, or ‘off’ under –converse). ‘off’ needs the sandbox

§allow_read: Vec<PathBuf>

Let sandboxed commands read this path despite the credential deny-list (repeatable)

§pass_env: Vec<String>

Pass this environment variable to commands even though it looks like a credential (repeatable)

§read_roots: Vec<PathBuf>

Directory allowed for reading with the read and grep tools (repeatable)

§no_gate_slot: bool

Gates in this run do not take a machine-wide slot

§research: bool

Whether this is a research run: periodically remind the model to keep report.md updated

§claim_check: bool

Research run: check report.md’s claims against their cited lines

§base_check: bool

Run the verification gate once before the first model call and stop as blocked if it fails

§base_check_dir: Option<PathBuf>

Directory containing an untouched checkout of the base commit for running the base check beside the model’s first turns

§terminal: bool§port: Option<u16>§no_open: bool§days: Option<u64>§name: Option<String>§resume: Option<String>

Trait Implementations§

Source§

impl Args for Cli

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

impl CommandFactory for Cli

Source§

fn command<'b>() -> Command

Build a Command that can instantiate Self. Read more
Source§

fn command_for_update<'b>() -> Command

Build a Command that can update self. Read more
Source§

impl Debug for Cli

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<&Cli> for TaskConfig

Source§

fn from(cli: &Cli) -> Self

Maps parsed CLI flags into a concrete TaskConfig configuration.

Source§

impl FromArgMatches for Cli

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Parser for Cli

Source§

fn parse() -> Self

Parse from std::env::args_os(), exit on error.
Source§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
Source§

fn parse_from<I, T>(itr: I) -> Self
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, exit on error.
Source§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
Source§

fn update_from<I, T>(&mut self, itr: I)
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, exit on error. Read more
Source§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, return Err on error.
Source§

impl PartialEq for Cli

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Cli

Auto Trait Implementations§

§

impl Forget for Cli

§

impl Freeze for Cli

§

impl Move for Cli

§

impl RefUnwindSafe for Cli

§

impl Send for Cli

§

impl Sync for Cli

§

impl Unpin for Cli

§

impl UnsafeUnpin for Cli

§

impl UnwindSafe for Cli

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.