Skip to Content
Kipivo Docs

Bots, Flows & Approvals

Dispatch modes, in-flight steering, interactive approvals, subagents, and terminal hooks.

Kipivo gives you fine-grained control over how coding agents plan, ask questions, run commands, and merge changes.

Dispatch Flow Modes

Depending on what the selected executor advertises in executor_features.flow_modes, each Run can start in one of three modes:

  • run (default): Execute the task directly in an isolated worktree and report evidence for review.
  • analyze_then_do: Analyze the repository and clarify requirements before making changes.
  • wait_for_go: Run in a read-only planning phase and pause on a plan_review approval card until a human clicks Go. Rejecting the plan keeps the Run in planning mode.

In-Flight Steering & Queuing

While a Run is active (running), executors declaring steer or queue support:

  • Steer (run.steer): Send immediate course-correction guidance into the active session.
  • Queue (run.queue): Enqueue a follow-up instruction to be processed next in the same session.

All user inputs are persisted by the control plane and deduplicated by input_id across WebSocket reconnects.

Interactive Approvals & Policies

Workspace approval policies evaluate actions in priority order:

  1. Sensitive path rules (project_path_rules): Glob rules enforce minimum approver roles (owner, maintainer, member) and mandatory human review when matched.
  2. Exact target rules (approval_rules): Hard block rules always win, followed by allow.
  3. Default policy: ask creates an approval card (valid for 30 minutes when unattended), never permits remaining actions, and auto invokes a tool-free, budget-bounded intent evaluator that falls back to ask when uncertain.

During execution, Runners can raise structured cards for:

  • shell_command / external_action (with bounded context and optional diff preview)
  • agent_question (structured answers returned to the agent)
  • plan_review (safe Markdown plan awaiting explicit Go)

Truncated Diffs

Truncated diffs can never be blind-approved from IM cards or quick notifications—reviewers must inspect them in Kipivo and explicitly confirm confirmTruncated.

Subagents & Terminal Hooks

  • Subagents (spawn_subagent): Cloud Bots can dispatch non-blocking Runner child Runs that inherit parent permissions, budgets, and approval policies.
  • Terminal Hooks (Away mode): Local terminal agent hooks race with remote Kipivo approval cards under a short lease (source: terminal_hook). Resolving locally immediately marks the remote card resolved_locally.

On this page