Skip to Content
Kipivo Docs

Local Runner & .kipivo.toml

How kipivod manages isolated git worktrees, checks, artifacts, checkpoints, and local merges.

The Rust Runner (kipivod) connects outbound over an authenticated WebSocket (/ws/runner) to the control plane. It keeps repository code, credentials, and execution strictly on your local machine.

Isolated Git Worktrees

  • Every Run executes in a fresh worktree under ~/.kipivo/worktrees/.
  • Before starting, kipivod verifies that the locally configured repository path exists and its Git remote matches projects.repo_url.
  • After a Run reaches a terminal state (completed, merged, rejected, failed, or cancelled), the worktree is cleaned up while the branch and checkpoint reference are preserved.

Configuring .kipivo.toml

Place .kipivo.toml at the root of your repository to declare automated verification checks and optional preview artifacts.

Read Strictly from base_sha

For security, kipivod always reads .kipivo.toml from the trusted base_sha commit—never from unreviewed edits produced by the agent during the Run.

Key capabilities controlled by .kipivo.toml:

  • Per-check commands & timeouts: Each check has an independent timeout; on timeout, the entire process group is terminated and output is bounded.
  • Preview artifacts: Declare artifact = "reports/preview.pdf" to upload a normal git-tracked file from the Run's snapshot commit for review in the console.
  • Visual previews: Up to 10 PNG, JPEG, or WebP before/after pairs (max 5 MiB each) can be uploaded per Run.

Delivery Modes & Checkpoints

When approving a Run in awaiting_review, you can choose:

Delivery ModeBehavior
squash / rebase / mergeMerges the verified head_sha into the repository's default branch on the local Runner.
keep_branchMarks the Run completed while keeping the local git branch intact for manual review or pushing.

If a merge fails due to conflicts (merge_conflict), Kipivo lets you trigger Resolve Conflict to spawn a child Run rebased on the latest default branch, re-run checks, and return to awaiting_review.

Runners advertising checkpoints: true record a checkpoint_sha on completion and support restoring a Run to a prior checkpoint via run.restore_checkpoint.

Diagnostics & Backup

# Print a redacted local health & capability report
kipivo doctor --json

# Stream daemon logs (UTC Unix millisecond timestamps)
kipivo logs --follow

# Export a workspace archive (authorized per-request in the browser, saved mode 0600)
kipivo backup export

On this page