pub enum RunnerKind {
InProcess,
SubProcess,
ClaudeCode,
}Expand description
Execution backend for agent invocations.
Why: Abstracts over the concrete runner selected at startup so config can
swap backends without code changes. As of #1029 the in-process runner is the
real, production default — the M1 model-comparison harness drives a delegated
sub-agent inside the PM’s own process (cheap, observable, usage rolls up onto
one transcript). The subprocess and Claude-Code CLI backends are retained as
future variants for deployments that need process isolation.
What: InProcess is the default (drives the sub-agent’s AgentLoop in the
same process — see crate::runner::InProcessAgentRunner); SubProcess spawns
a new process via NDJSON IPC; ClaudeCode wraps the claude CLI binary.
Test: runner_kind_deserializes, runner_kind_defaults_to_in_process.
Variants§
InProcess
Drive the sub-agent’s AgentLoop in the PM’s own process (the default).
SubProcess
Spawn a subprocess; communicate via NDJSON over stdin/stdout.
ClaudeCode
Use the claude CLI binary as the runner.
Trait Implementations§
Source§impl Clone for RunnerKind
impl Clone for RunnerKind
Source§fn clone(&self) -> RunnerKind
fn clone(&self) -> RunnerKind
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 RunnerKind
impl Debug for RunnerKind
Source§impl Default for RunnerKind
impl Default for RunnerKind
Source§fn default() -> RunnerKind
fn default() -> RunnerKind
Source§impl<'de> Deserialize<'de> for RunnerKind
impl<'de> Deserialize<'de> for RunnerKind
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>,
impl Eq for RunnerKind
Source§impl PartialEq for RunnerKind
impl PartialEq for RunnerKind
Source§fn eq(&self, other: &RunnerKind) -> bool
fn eq(&self, other: &RunnerKind) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for RunnerKind
impl Serialize for RunnerKind
impl StructuralPartialEq for RunnerKind
Auto Trait Implementations§
impl Freeze for RunnerKind
impl RefUnwindSafe for RunnerKind
impl Send for RunnerKind
impl Sync for RunnerKind
impl Unpin for RunnerKind
impl UnsafeUnpin for RunnerKind
impl UnwindSafe for RunnerKind
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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