Kavi
Missions

Missions

Goal-driven orchestration with acceptance criteria and verification workflows.

Missions

Missions are a beta feature. The API surface and behavior may change in future releases.

Missions are a higher-level abstraction over tasks. Instead of manually decomposing work into individual tasks, routing them to agents, and verifying results yourself, you describe a goal and Kavi orchestrates the full lifecycle: planning, execution, acceptance verification, and landing.

A mission wraps your prompt with structured metadata that Kavi uses to drive the entire workflow:

  • A goal describing the desired outcome
  • An execution mode controlling how much autonomy Kavi has
  • Acceptance criteria auto-generated from prompt analysis
  • Brain entries providing contextual knowledge to agents
  • Checkpoints tracking progress through each phase

Missions automatically generate acceptance criteria by analyzing your prompt for keywords related to frontend, backend, testing, and documentation. When all tasks complete, Kavi runs verification checks -- executing commands, confirming file existence, and flagging manual review items -- before allowing the mission to land.

Mission Modes

Missions support three execution modes that control how much autonomy Kavi has during planning and execution:

  • guided_autopilot -- Kavi plans and executes autonomously, applying follow-up recommendations without operator intervention. Best for well-defined tasks where you trust the agents to proceed. Read more
  • inspect -- Kavi plans and executes but pauses at key decision points for operator review. Recommendations require manual application. Best for complex tasks where you want oversight. Read more
  • manual -- Full operator control over task approval and routing. Best for sensitive or exploratory work. Read more

Acceptance and Verification

Each mission carries an acceptance pack containing auto-generated criteria and verification checks. Kavi synthesizes checks from your repository context -- detecting test suites, build scripts, and documentation -- and runs them in an integration workspace before allowing the mission to land.

Read more about acceptance and verification

Lifecycle

Missions progress through a series of statuses from planning through completed, with checkpoints recorded at each transition. Kavi automatically synchronizes mission status based on task state and acceptance results.

Read more about the mission lifecycle

Mission Interface

The following fields make up a mission record:

FieldTypeDescription
idstringUnique mission identifier (prefixed with mission-)
titlestringAuto-summarized from the prompt (max 96 characters)
promptstringThe original operator prompt
goalstring | nullOptional explicit goal description
modeMissionModeExecution mode: guided_autopilot, inspect, or manual
statusMissionStatusCurrent lifecycle status
summarystringHuman-readable summary, updated as the mission progresses
planningTaskIdstring | nullID of the planning task (if the mission uses a planning pass)
planIdstring | nullID of the materialized execution plan
rootTaskIdstring | nullID of the root task for direct-execution missions
activeTaskIdsstring[]IDs of currently pending, running, or blocked tasks
autopilotEnabledbooleanWhether autopilot is active (true for guided_autopilot mode)
acceptanceAcceptancePackAcceptance criteria and verification checks
checkpointsMissionCheckpoint[]Ordered list of progress checkpoints
brainEntryIdsstring[]IDs of brain entries providing context to this mission
createdAtstringISO timestamp of creation
updatedAtstringISO timestamp of last update
landedAtstring | nullISO timestamp when the mission was landed (null if not yet landed)

On this page