#[non_exhaustive]pub struct TaskConfig {
pub preset: bool,
pub tools: Vec<String>,
pub disallowed_tools: Vec<String>,
pub permission_mode: Option<TaskPermissionMode>,
}Expand description
Task configuration loaded from tasks/<kind>/config.yml.
This configuration determines how the Claude agent is configured for a specific task type.
§Example YAML
preset: true
tools: []
disallowedTools:
- Write
- Edit
permissionMode: bypass_permissionsFields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.preset: boolWhether to use the claude_code preset for the system prompt.
When true, the system prompt from system.j2 is appended to
the preset. When false, the system prompt is used directly.
tools: Vec<String>List of allowed tools.
An empty list means all tools are allowed.
disallowed_tools: Vec<String>List of disallowed tools.
An empty list means no tools are explicitly disallowed.
permission_mode: Option<TaskPermissionMode>Permission mode for this task.
Controls how the agent handles permission prompts.
Defaults to bypass_permissions for automated execution.
Trait Implementations§
Source§impl Clone for TaskConfig
impl Clone for TaskConfig
Source§fn clone(&self) -> TaskConfig
fn clone(&self) -> TaskConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskConfig
impl Debug for TaskConfig
Source§impl Default for TaskConfig
impl Default for TaskConfig
Source§fn default() -> TaskConfig
fn default() -> TaskConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TaskConfig
impl<'de> Deserialize<'de> for TaskConfig
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 TaskConfig
impl RefUnwindSafe for TaskConfig
impl Send for TaskConfig
impl Sync for TaskConfig
impl Unpin for TaskConfig
impl UnwindSafe for TaskConfig
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