Skip to main content

Module task_init

Module task_init 

Source
Expand description

Task initialization — guard checks, worktree setup, and invocation building.

Extracted from runner/mod.rs. Contains the first phase of run(): guard checks, worktree creation, context building, and prompt assembly.

Structs§

TaskInitResult
Result of task preparation: everything needed to run an agent session.

Enums§

GuardOutcome
Outcome of the guard check.

Functions§

build_pseudo_task
Build a minimal ExternalTask from store state for prompt building.
check_guards
Check task guards and return the outcome.
prepare_task
Prepare the full task: set up worktree, build context and prompts, create invocation.