pub struct SupervisorConfig {
pub enabled: bool,
pub cli: Option<String>,
pub test_command: Option<String>,
pub agent_approval: ApprovalLevel,
pub auto_approve: Option<AutoApproveConfig>,
}Expand description
Supervisor mode configuration.
Supervisor mode puts git-paw in front of the agent CLI as a coordinating layer that can enforce approval policy and run a verification command after each agent completes a task.
Fields§
§enabled: boolWhether supervisor mode is enabled by default for this repo.
cli: Option<String>Override the CLI used when launching the supervisor (e.g. "claude").
None resolves to the normal CLI selection flow at runtime.
test_command: Option<String>Test command to run after each agent completes (e.g. "just check").
None skips the verification step.
agent_approval: ApprovalLevelApproval policy applied to agent actions.
auto_approve: Option<AutoApproveConfig>Auto-approval configuration for safe permission prompts.
When present, the supervisor automatically approves stalled agents
whose pending command matches an entry in the safe-command whitelist.
See AutoApproveConfig for the per-field semantics.
Trait Implementations§
Source§impl Clone for SupervisorConfig
impl Clone for SupervisorConfig
Source§fn clone(&self) -> SupervisorConfig
fn clone(&self) -> SupervisorConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SupervisorConfig
impl Debug for SupervisorConfig
Source§impl Default for SupervisorConfig
impl Default for SupervisorConfig
Source§fn default() -> SupervisorConfig
fn default() -> SupervisorConfig
Source§impl<'de> Deserialize<'de> for SupervisorConfig
impl<'de> Deserialize<'de> for SupervisorConfig
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>,
Source§impl PartialEq for SupervisorConfig
impl PartialEq for SupervisorConfig
Source§fn eq(&self, other: &SupervisorConfig) -> bool
fn eq(&self, other: &SupervisorConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SupervisorConfig
impl Serialize for SupervisorConfig
impl Eq for SupervisorConfig
impl StructuralPartialEq for SupervisorConfig
Auto Trait Implementations§
impl Freeze for SupervisorConfig
impl RefUnwindSafe for SupervisorConfig
impl Send for SupervisorConfig
impl Sync for SupervisorConfig
impl Unpin for SupervisorConfig
impl UnsafeUnpin for SupervisorConfig
impl UnwindSafe for SupervisorConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more