/ultrapowers:ultrapowers <plan-path> | setupfrom ultrapowers
Use when the user runs "/ultrapowers <plan-path>", asks to "execute this plan", "go ultra", or wants an approved plan built autonomously and in parallel — on the exe.dev fleet, never on this machine. Also use when the user runs "/ultrapowers setup", asks whether they have a fleet yet, or asks to build one.
Ships in ultrapowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill is the CLIENT only. Since 0.3.0 there is no LLM engine session:
on the sandbox, a boot unit (factory/boot.sh) spawns the one engine, the
Flock (factory/flock/engine.mjs), which seeds a board from the plan, runs a
leaderless pool of builders that claim its tasks, merges their copies through
the weave, proves each task by its Run: probes and the plan's Check: lines,
and decides the merge by its own exit code — code, not prose. Nothing in this
skill runs a plan locally; every dispatch happens on the sandbox.
The argument decides the mode. A plan path is the client below; the bare word
setup is the guided first run. The client falls into setup by itself when the
doctor is not ready, so setup is a path through this file and not a separate
errand.
The doctor is the only thing that knows which pieces of the fleet are already there. Every row it returns is a read: running it twice is the same as running it once, and nothing in setup creates a VM.
The setup agent uses AskUserQuestion wherever a question can be posed as choices. The agent runs every command in this section itself. Only three things need a human — a browser signup, a browser approval, and one copied code — and each of those is followed by an AskUserQuestion whose recommended option is the next step, so the agent waits on an answer instead of on a guess. If a command fails in the agent's own shell, the agent reports the failure and the exact command and offers, with AskUserQuestion, to hand that one command over; that fallback exists only after the agent-run form has already failed.
The first command, run from the plugin cache:
node ${CLAUDE_PLUGIN_ROOT}/fleet/doctor.mjs --json
${CLAUDE_PLUGIN_ROOT} is the installed plugin's directory; Claude Code
writes the real path into this file when it loads it, so the cache path, which
differs by version and by host, never has to be derived by hand. The reference files,
which Claude Code does not rewrite, write the same directory as <plugin-root>.
The doctor answers with one row per piece, and its row ids are exe-dev,
capacity, claude, accounts, github, integrations, evidence, verb-drift, cloudflare, in that
order. Each row carries
a status of ok or missing, a human detail, and a fix naming the ##
section of references/first-run.md that repairs it. Read the rows back to the
user as a short list before touching anything. Configuration lives in
~/.ultrapowers/fleet.json; the doctor takes --config <path> to read it from
somewhere else, and --target <owner>/<repo> to include that repository's own
integration object in the answer.
Then take the red rows in the doctor's order. Open the row's fix section in
references/first-run.md for the detail — the walk is not restated here — and
say one line about what is happening before each repair.
exe-dev — the account. The human signs up at exe.dev and adds an ssh key in
the browser; that is the first consent and the agent cannot do it for them.
AskUserQuestion: Done in the browser? — Yes, the account and key are in place (Recommended) / Not yet, wait for me.
Then the agent asks, again with AskUserQuestion, which key file ~/.ssh/config
should point at — ~/.ssh/id_ed25519 (Recommended) or another path the user
names — and writes the Host *.exe.xyz exe.dev stanza itself.
capacity — the pool the account's plan allows. When the detail names keys
nothing reads, the agent rewrites the file with cpu and memory only, keeping
any size it already carried, and re-runs the doctor — no question is asked.
The agent reads the doctor's detail for the pool it found and asks with
AskUserQuestion: Lower the run size, or upgrade the plan? — Lower it to {"cpu":"4","memory":"8GB"} (Recommended) / Upgrade the plan instead.
On the first the agent writes the smaller size into ~/.ultrapowers/fleet.json
itself; on the second the human upgrades the plan in the browser and the agent
re-runs the doctor after them.
claude — the token. The agent runs
node ${CLAUDE_PLUGIN_ROOT}/fleet/claude-token.mjs login --code-from-clipboard in the
background; it opens claude.ai and waits for the code to land on the clipboard.
The human approves there and copies the code — the third consent, and the only
secret that ever moves by hand.
AskUserQuestion: Done in the browser? — Yes, the code is copied (Recommended) / Not yet, still approving.
On the answer the agent reads the command's result and says in one line whether
the token landed.
github — the GitHub integration. The agent runs
ssh exe.dev integrations setup github and shows the user what it prints; the
human approves the GitHub app install in the browser, which is the second
consent.
AskUserQuestion: Done in the browser? — Yes, the install is approved (Recommended) / Not yet, wait for me.
Keep that integration personal: --act-as-user is unavailable on team
integrations, so a team account's PRs are authored by the installation bot
rather than by the user.
integrations — every object a run needs, attached to tag:fleet. The agent runs
node ${CLAUDE_PLUGIN_ROOT}/fleet/target.mjs <owner>/<repo> for the repository being
built, which creates the one object that repository needs attached to
tag:fleet; the command is idempotent, so an object already there is left
alone and attached only when it is not on tag:fleet. When the doctor reports
another object — claude-max, say — as not attached, the agent asks with
AskUserQuestion: Attach <name> to the fleet tag? — Yes, attach it to tag:fleet (Recommended) / No, leave it and I will look,
and on yes it runs ssh exe.dev "integrations attach <name> tag:fleet".
(new --integration is refused since 2026-09-11, and integrations has no
policy verb, #1434; the tag attachment is the only grant.)
evidence — the operator's evidence repository, where every run's plan and
record live (never on the target, so a run on someone else's repository works
too). It is set up once, in three steps the row checks in order: the key
"evidence": "<owner>/<repo>" in ~/.ultrapowers/fleet.json, the private
repository itself (gh repo create <owner>/<repo> --private), and its
integration (node ${CLAUDE_PLUGIN_ROOT}/fleet/target.mjs <owner>/<repo>). The detail
of each step is the evidence section of references/first-run.md
(references/first-run.md#evidence).
The agent re-runs the doctor after each fix, and the row that turned ok is
read back to the user in one line before the next red row is touched. A row
that comes back missing twice is reported with the doctor's detail and its
walk section, and the agent keeps going down the list rather than starting over.
When the doctor's verdict is ready the fleet is complete, and the launch in
## Client below runs in the same turn — setup is a repair, not a destination.
Selecting ultrapowers at the planning handoff, or invoking /ultrapowers on an
approved plan, is the authorization to execute — no further approval pause.
Derive the target from this checkout. The target is the repository this
skill is run in: repo is
gh repo view --json nameWithOwner -q .nameWithOwner, and baseSha is the
checkout's current commit. There is nothing per-project to configure — the
pair travels in the launch, and each sandbox clones repo and branches from
baseSha. That sha has to be one GitHub already has, so compare it against
the upstream tip: when they differ, say the base is not on GitHub yet and ask
the operator to push it before the launch. When the plan is for a
repository other than this checkout, the launcher still needs a clone of
that target with it as origin: clone it somewhere disposable and add
--repo <that clone> to the launch line; --target alone is refused. The
launcher compiles the plan from inside that clone, so the plan path on the
launch line resolves relative to it: copy the plan and its
.gate-verdicts.json into the clone (an untracked docs/superpowers/plans/
there is fine) and name that relative path.
Then run node ${CLAUDE_PLUGIN_ROOT}/fleet/doctor.mjs --target <repo> once. A
verdict of ready goes straight to step 2. Any other verdict is repaired
here: run the ## Setup path inline, in this same turn, and launch when the
doctor comes back ready.
Launch. One line:
node ${CLAUDE_PLUGIN_ROOT}/fleet/launch.mjs <plan-path> --target <repo> --base <baseSha>
It prints the run id and the VM name — run-<N> and fleet-r<N>-… — along
with a status URL and the assignment comment; tell the user the run id and
VM name, and point them at step 3 to read progress, not the printed URL —
there is no page behind it today, git is the record. Nothing else needs staging — the launcher commits the plan to the
evidence repository's live/<owner>-<repo>/run-<N> branch (the target is
never written to until the run's own PR branch), then creates the VM in one lobby call with
--tag fleet (the tag every fleet integration is attached to), the
assignment as its comment, and a setup script that starts the run's unit.
No ssh, no second step.
Add --hold to that line when the PR should stay open for a person — a
measurement run; the sandbox then publishes and does not merge.
Walk away. The run outlives this session; there is nothing to tail. While the run is in flight, read it from its evidence record:
node ${CLAUDE_PLUGIN_ROOT}/fleet/run-read.mjs --run <N> --target <repo>
It prints the run's state, one line per task with its state, then
== events: every claim, give-back, objection, conflict, move of main and
the pull request, in order. The sandbox commits the record every 10 s.
Its state is also status.json, written at every transition: running →
publishing → done, or parked or failed. It lives in the
evidence repository ("evidence" in ~/.ultrapowers/fleet.json), under
runs/<owner>-<repo>/<N>/. A finished run's record is status.json by tag:
<owner>-<repo>/run-<N>, the one spelling that keeps working after the VM
is reaped and after the run's live branch is gone.
gh api 'repos/<evidence repo>/contents/runs/<owner>-<repo>/<N>/status.json?ref=<owner>-<repo>/run-<N>' --jq .content | base64 -d
While the run is in flight that tag is not written yet and the same bytes
are on its live/<owner>-<repo>/run-<N> branch, a working surface that
goes at the end of the run — run-read.mjs reads whichever of the two
holds the run.
The record is the poll: read it on whatever cadence the user asks for, or
watch it with --follow, in the foreground or the background; it ends
by itself when the run's status says done, parked or failed. A watcher
only reads; nothing on this machine writes to a run (step 5).
The PR is the gate. There is no approval command. When the engine is
done and the branch is ahead of base, the sandbox pushes it and opens the
PR itself, through the target's integration attached at launch. The run's
code is the ultra/integration-run-<N> branch, which is the PR head; its
evidence is under runs/<owner>-<repo>/<N>/ in the evidence repository, on
the live/<owner>-<repo>/run-<N> branch while the run is in flight and at
the tag <owner>-<repo>/run-<N> once it ends, never merged and linked from
the PR body. Gate-green → a
ready PR and done. Parked → a draft PR carrying the gate receipt and
parked. pr and
prAuthor in status.json are the PR's URL and who GitHub says opened it —
read both back to the user, and say so when the author is the installation
bot rather than them (their GitHub account is not yet linked on exe.dev's
Integrations page). A ready PR merges itself on the run's own evidence: the
sandbox asks GitHub for no check runs, it merges once its own gate is green
and main has not moved off the tip it folded onto —
status.json's merged cell is the squash commit (null when no PR opened) — and --hold
on the launch line keeps it open for the operator; a draft PR is the
operator's to merge or close. That self-merge sentence is a gate-green
run's only: after a park the sandbox has exited and merges nothing, so a
parked run is acknowledged by the operator, by hand — mark the draft ready,
gh pr update-branch <N> when it is behind main (GitHub's strict rule
refuses a behind merge; this is a GitHub merge, not the kernel's fold),
then gh pr merge --squash <N> — or re-driven as a narrower plan. A run
that builds nothing opens no PR and ends failed: engine exit <code>,
because a claims-v1 probe already green at the base proves nothing. In
every case the record is pushed and tagged <owner>-<repo>/run-<N>. The laptop never fetches a run
branch.
Reap. node ${CLAUDE_PLUGIN_ROOT}/fleet/janitor.mjs removes the VMs of runs
that finished over an hour ago, and reports the stale ones rather than
removing them. The launcher runs it before every launch; nothing schedules it,
and the agent runs it by hand when this machine has been asleep. No
scheduled job or timer on this machine runs the janitor, and none is to be
added: a run merges its own PR from the sandbox and the launcher runs the
reap (#660), so a local process on a timer would only be a second writer,
and one that dies when the laptop sleeps.
factory/flock/engine.mjs — the engine (board, builders, weave) as code;
factory/flock/catchup.mjs — a finished run caught up to a moved main.references/first-run.md — one section per doctor row: what it means and the
command that builds it.scripts/plan_parse.py (the one parser — the sandbox runs it), scripts/plan_check.py (the laptop's check of the records and the base, on that parser).kernel/vendor/PROVENANCE.md (opens in a new tab)kernel/vendor/manyana.py (opens in a new tab)references/first-run.md (opens in a new tab)scripts/plan_check.py (opens in a new tab)scripts/plan_parse.py (opens in a new tab)scripts/run_probes.py (opens in a new tab)scripts/validate_skill.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
bash "${CLAUDE_PLUGIN_ROOT}/hooks/keep_working.sh"10sOther plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub popmechanic/ultrapowers --plugin ultrapowers