Joust
PLUGINRaces 2 to 4 coding subagents on one task, each in its own Git worktree, judges them with your tests and merges only the best patch after you approve.
by mrnetwork0001 · v0.1.1
What it does
Races 2 to 4 coding subagents on one task, each in its own Git worktree, judges them with your tests and merges only the best patch after you approve. joust_launch provisions one detached worktree per contender under the profile's plugin-data folder (uncommitted tracked edits are mirrored and committed as the baseline) and, inside an agent turn, launches one Ulpi subagent per contender through ctx.subagent_lifecycle, optionally each on its own model.
A tool_request middleware rewrites each child session's file paths, V4A patch headers, search roots and terminal workdir into its worktree, and a pre_tool_call hook vetoes escapes. joust_evaluate runs the bout's test command in every worktree through the Ulpi terminal tool, 1 to 7 times (Flake Shield: every run must pass, median speed, flaky contenders cannot win), scoring Correctness 60, Speed 25 and Diff minimalism 15.
joust_crossfire fires each contender's new tests at every rival worktree, and survival is the first tiebreak. joust_merge applies the winner with git apply behind Ulpi's approval gate, after saving a rollback patch and keeping every contender as a joust/<bout>/<contender> branch; joust_report writes a markdown bout report.
Also adds /joust, the ulpi joust CLI, the joust-arena skill and a Desktop half (/joust page, right pane, status-bar chip, palette command,::joust-bout inline card). Disclosure — runs local git in the repository you name (rev-parse, worktree add/remove/prune, add -N, diff, apply, apply -R, reset, branch, write-tree and commit-tree; init/add/commit for its demo repo and the copy fallback, which copies the repository into the profile's plugin-data folder), registers worktrees in that repository's.git/worktrees until joust_merge action=cleanup, creates joust/<bout>/<contender> branches (config keep_loser_branches, default on), and writes the approved patch into your working tree.
Contender subagents' file paths and terminal workdir are redirected into their worktrees, but their
Tools it adds
The tools an agent gets once this plugin is installed.
- joust_launch
- joust_evaluate
- joust_diff
- joust_steer
- joust_merge
- joust_status
- joust_crossfire
- joust_report
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