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 aplan_reviewapproval 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:
- Sensitive path rules (
project_path_rules): Glob rules enforce minimum approver roles (owner,maintainer,member) and mandatory human review when matched. - Exact target rules (
approval_rules): Hardblockrules always win, followed byallow. - Default policy:
askcreates an approval card (valid for 30 minutes when unattended),neverpermits remaining actions, andautoinvokes a tool-free, budget-bounded intent evaluator that falls back toaskwhen 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 (
Awaymode): Local terminal agent hooks race with remote Kipivo approval cards under a short lease (source: terminal_hook). Resolving locally immediately marks the remote cardresolved_locally.