NEW Workflows: agents follow the steps, you sign off. Read more →
Ulpi

Multiverse

PLUGIN

Best-of-N for coding agents, with real checks.

by vdimarco · v1.1.0

What it does

Best-of-N for coding agents, with real checks. multiverse_race makes one git worktree per attempt (2 to 6) from the same base (HEAD, or the uncommitted working tree through git stash create), starts one delegate_task subagent per worktree with its own approach, pins each subagent to its worktree (pre_tool_call rewrites terminal workdir, file paths and V4A patch paths, and blocks access to the other worktrees and nested delegation), runs the same check commands in every worktree, ranks them by checks passed and then by the smallest real diff, and multiverse_adopt applies the winner with git apply.

With delegation.backend: multiverse, each attempt can use its own model and provider. Ulpi: a live race board pane (each attempt's status and tool-call count, then checks passed, diff and the winner), a status-bar chip while racing, and a toast when judging ends.

Disclosure — no network calls of its own, no credentials, no telemetry, no background threads. Runs git (rev-parse, stash create, worktree add/remove/prune, add -A inside the worktrees, diff, apply), mkdir, rm -f of its own.patch files and rmdir, plus your check commands, through the Ulpi terminal tool, so approvals and the configured terminal backend apply.

Creates worktrees next to the repository in.<repo>.multiverse/<run id>/. Starts subagents through delegate_task, which uses your configured model(s) and costs tokens per attempt.

Stores run metadata (goal, checks, worktree paths, scores, the last 1500 characters of each subagent summary) in its plugin state under ULPI_HOME/plugin-data. Sends plugin.multiverse.run snapshots (goal, checks, per-attempt label, model, approach, status, tool-call count, scores and diff stats; no subagent text) to Desktop windows attached to the same Ulpi process, at most once a second while attempts run; the desktop half keeps the last 10 runs in Desktop plugin storage.

Tools it adds

The tools an agent gets once this plugin is installed.

  • multiverse_race
  • multiverse_open
  • multiverse_judge
  • multiverse_adopt
  • multiverse_close

Review notes

What an owner reads and accepts before the install is approved.

  • Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve

More in Tools

All listings →