pub struct ProjectSettings {
pub safe_command_prefixes: Option<Vec<String>>,
pub denied_command_prefixes: Option<Vec<String>>,
pub auto_accept_mode: Option<AutoAcceptMode>,
pub context_limit: Option<u32>,
pub project_md_files: Option<Vec<String>>,
pub preferred_mode: Option<AgentMode>,
pub auto_compact_enabled: Option<bool>,
pub questions_enabled: Option<bool>,
}Expand description
Per-project override settings discovered from .tinyharness/config.json.
All fields are Option — only present fields override the global setting.
Discovery walks up from CWD, same algorithm as discover_project_md.
Fields§
§safe_command_prefixes: Option<Vec<String>>Override safe command prefixes (extends, doesn’t replace)
denied_command_prefixes: Option<Vec<String>>Override denied command prefixes
auto_accept_mode: Option<AutoAcceptMode>Override auto-accept mode for this project
context_limit: Option<u32>Override context_limit
project_md_files: Option<Vec<String>>Additional project-specific MD file names to include in context (e.g. [“RULES.md”, “.cursorrules”]). These are loaded AFTER the main project instruction file.
preferred_mode: Option<AgentMode>Override the preferred mode for this project
auto_compact_enabled: Option<bool>Override auto-compact enabled setting for this project
questions_enabled: Option<bool>Override whether the model may ask questions for this project
Trait Implementations§
Source§impl Clone for ProjectSettings
impl Clone for ProjectSettings
Source§impl Debug for ProjectSettings
impl Debug for ProjectSettings
Source§impl Default for ProjectSettings
impl Default for ProjectSettings
Source§impl<'de> Deserialize<'de> for ProjectSettings
impl<'de> Deserialize<'de> for ProjectSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProjectSettings
impl RefUnwindSafe for ProjectSettings
impl Send for ProjectSettings
impl Sync for ProjectSettings
impl Unpin for ProjectSettings
impl UnsafeUnpin for ProjectSettings
impl UnwindSafe for ProjectSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more