pub struct InstructionsConfig {
pub enabled: bool,
pub byte_budget: usize,
pub root_markers: Vec<String>,
pub root_stop_pattern: Option<String>,
pub extra_roots: Vec<PathBuf>,
pub global_file: bool,
}Expand description
How project-instruction discovery behaves. All fields have defaults; a caller (the CLI today, a settings layer later) overrides them.
Fields§
§enabled: boolMaster switch (default true). --no-project-instructions sets it false.
byte_budget: usizeByte budget for the assembled injected body (applied at render time, ADR-0023).
Default 64 KiB; 0 means unbounded.
root_markers: Vec<String>Directory markers whose presence marks a project root (default [".git"]).
root_stop_pattern: Option<String>ADR-0023 root-detection rule 2 (activated by ADR-0024 §1.4 / Task 31 S2):
a regex matched against each ancestor’s absolute path during the ascent —
a match makes that directory the project root, exactly like a marker hit.
The escape hatch for VCS-less trees (monorepo segments, /workspace/<p>).
An invalid pattern degrades to no-pattern (the settings loader already
warned about it).
extra_roots: Vec<PathBuf>Seam (ADR-0023 implementation note): extra roots to also discover from. Honored
by the walk, but no --add-dir CLI flag ships until the tool-jail-widening task.
global_file: boolRead the global ~/.locode/AGENTS.md (lowest precedence). Default true.
Trait Implementations§
Source§impl Clone for InstructionsConfig
impl Clone for InstructionsConfig
Source§fn clone(&self) -> InstructionsConfig
fn clone(&self) -> InstructionsConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more