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: StringModel identifier to use for responses.
workspace: PathBufWorkspace root for tool execution and file operations.
allow_shell: boolAllow 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: boolEnable trust mode (skip approvals) when true.
notes_path: PathBufPath to the notes file used by the notes tool.
mcp_config_path: PathBufPath to the MCP configuration file.
skills_dir: PathBufDirectory 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: u32Maximum number of assistant steps before stopping.
max_subagents: usizeMaximum number of concurrently active subagents.
subagent_step_timeout: DurationPer-step sub-agent LLM API timeout.
features: FeaturesFeature flags controlling tool availability.
compaction: CompactionConfigAuto-compaction settings for long conversations.
cycle: CycleConfigCheckpoint-restart cycle settings (#124).
capacity: CapacityControllerConfigCapacity-controller settings.
max_spawn_depth: u32Maximum sub-agent recursion depth.
snapshots_enabled: boolWhether to take side-git workspace snapshots before/after each turn.
snapshots_max_workspace_gb: f64Skip 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: boolWhether the user-memory feature is enabled (#489).
memory_path: PathBufPath to the user memory file (#489).
goal_objective: Option<String>Long-horizon goal seed (#CRAFT) injected into the system prompt.
locale_tag: StringResolved BCP-47 locale tag (e.g. "en", "zh-Hans", "ja").
strict_tool_mode: boolWhen true, force tool_choice: "required".
task_type: TaskTypeOffice vs Code task surface (session-fixed).
scratchpad: ScratchpadConfigAudit scratchpad engine hooks (Phase B).
long_horizon: LongHorizonConfigLong-horizon code task harness (LHT Phase 1).
Trait Implementations§
Source§impl Clone for EngineConfig
impl Clone for EngineConfig
Source§fn clone(&self) -> EngineConfig
fn clone(&self) -> EngineConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more