Skip to main content

EngineConfig

Struct EngineConfig 

Source
pub struct EngineConfig {
Show 28 fields pub model: String, pub workspace: PathBuf, pub allow_shell: bool, pub sandbox_mode: Option<String>, pub trust_mode: bool, pub notes_path: PathBuf, pub mcp_config_path: PathBuf, pub skills_dir: PathBuf, pub instructions: Vec<PathBuf>, pub max_steps: u32, pub max_subagents: usize, pub subagent_step_timeout: Duration, pub features: Features, pub compaction: CompactionConfig, pub cycle: CycleConfig, pub capacity: CapacityControllerConfig, pub max_spawn_depth: u32, pub snapshots_enabled: bool, pub snapshots_max_workspace_gb: f64, pub subagent_model_overrides: HashMap<String, String>, pub memory_enabled: bool, pub memory_path: PathBuf, pub goal_objective: Option<String>, pub locale_tag: String, pub strict_tool_mode: bool, pub task_type: TaskType, pub scratchpad: ScratchpadConfig, pub long_horizon: LongHorizonConfig,
}
Expand description

Plain-types / core-types subset of the live engine configuration.

Fields are intentionally pub so the tui facade can build it field by field; future core-only callers will go through builder methods.

Fields§

§model: String

Model identifier to use for responses.

§workspace: PathBuf

Workspace root for tool execution and file operations.

§allow_shell: bool

Allow shell tool execution when true.

§sandbox_mode: Option<String>

User-configured sandbox mode ("read-only", "workspace-write", etc.). When set, the tool context uses the stricter of this and the AppMode default.

§trust_mode: bool

Enable trust mode (skip approvals) when true.

§notes_path: PathBuf

Path to the notes file used by the notes tool.

§mcp_config_path: PathBuf

Path to the MCP configuration file.

§skills_dir: PathBuf

Directory containing discoverable skills.

§instructions: Vec<PathBuf>

Additional instruction files concatenated into the system prompt. Loaded in declared order from the user’s instructions = [...] config (or the per-project override). The caller is responsible for expand_path-style ~ substitution before constructing this list — zagens-core does no disk I/O on these paths.

§max_steps: u32

Maximum number of assistant steps before stopping.

§max_subagents: usize

Maximum number of concurrently active subagents.

§subagent_step_timeout: Duration

Per-step sub-agent LLM API timeout.

§features: Features

Feature flags controlling tool availability.

§compaction: CompactionConfig

Auto-compaction settings for long conversations.

§cycle: CycleConfig

Checkpoint-restart cycle settings (#124).

§capacity: CapacityControllerConfig

Capacity-controller settings.

§max_spawn_depth: u32

Maximum sub-agent recursion depth.

§snapshots_enabled: bool

Whether to take side-git workspace snapshots before/after each turn.

§snapshots_max_workspace_gb: f64

Skip side-git when workspace tree exceeds this size (GB).

§subagent_model_overrides: HashMap<String, String>

Per-role/type sub-agent model overrides already resolved from config.

§memory_enabled: bool

Whether the user-memory feature is enabled (#489).

§memory_path: PathBuf

Path to the user memory file (#489).

§goal_objective: Option<String>

Long-horizon goal seed (#CRAFT) injected into the system prompt.

§locale_tag: String

Resolved BCP-47 locale tag (e.g. "en", "zh-Hans", "ja").

§strict_tool_mode: bool

When true, force tool_choice: "required".

§task_type: TaskType

Office vs Code task surface (session-fixed).

§scratchpad: ScratchpadConfig

Audit scratchpad engine hooks (Phase B).

§long_horizon: LongHorizonConfig

Long-horizon code task harness (LHT Phase 1).

Trait Implementations§

Source§

impl Clone for EngineConfig

Source§

fn clone(&self) -> EngineConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for EngineConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more