pub struct WorktreeContext {
pub worktree_path: Option<PathBuf>,
pub branch_name: Option<String>,
pub is_isolated: bool,
}Expand description
Context about the execution environment (worktree, branch, isolation).
This information is passed to prompt assembly so agents can be aware of their execution context - whether they’re running in an isolated worktree, what branch they’re on, etc.
Fields§
§worktree_path: Option<PathBuf>Path to the worktree directory (e.g., /tmp/chant-{spec-id})
branch_name: Option<String>Branch name the agent is working on
is_isolated: boolWhether execution is isolated (in a worktree vs main repo)
Trait Implementations§
Source§impl Clone for WorktreeContext
impl Clone for WorktreeContext
Source§fn clone(&self) -> WorktreeContext
fn clone(&self) -> WorktreeContext
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 WorktreeContext
impl Debug for WorktreeContext
Source§impl Default for WorktreeContext
impl Default for WorktreeContext
Source§fn default() -> WorktreeContext
fn default() -> WorktreeContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorktreeContext
impl RefUnwindSafe for WorktreeContext
impl Send for WorktreeContext
impl Sync for WorktreeContext
impl Unpin for WorktreeContext
impl UnwindSafe for WorktreeContext
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