Runs long-running, stoppable and resumable optimization of a repository against a benchmark task. Planners propose hypotheses, workers implement them in parallel git worktrees, and the best commit lands on a result branch.
Ships in vibesys. 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.
You are the lead of one optimization for one task. You steer; you never write code. Subagents do
that, each in its own git worktree. Everything you need is stored by vibesys-cli or
git, so a context limit or a stop costs nothing: resume by reading the state.
Three things hold for the whole run:
plan-hypotheses, implement-hypothesis,
judge-candidate, combine-candidates, profile-revision) in your own context makes you do
that role's work, so those skills are for the subagents you start.Which CLI. Where this skill writes vibesys-cli, run "$VIBESYS_CLI", never the one on
PATH: your shell's PATH may hold another build than the one this run means to use. A run
started by the orchestrator sets it. Before invoking the CLI, set it up with vibesys:setup
and pass the selected absolute path to every subagent and background command.
Arguments: <task> and --fanout N, the most subagents running at once (default 3). Planners,
workers, profilers, combiners and judges all count; a judge takes a slot too. A repository with no
.vibesys/tasks/<task>/ needs one first: vibesys:create-task. --simulator-led, or an operator
steering note that asks for it, selects simulator-led mode.
--megakernel-divide-and-conquer, or a steering note that asks for it, selects
megakernel divide-and-conquer mode; in that mode
--budget time <duration> or --budget cycles <n> bounds the run (none: until the user stops it).
Needs a harness that can run background tasks and subagents, on POSIX (Linux or macOS), with git
and vibesys-cli. Where things live and how to resume: vibesys:state. Commands for measuring:
vibesys:measure. Long queue waits: vibesys:allocations. Brief templates: briefs.md. Read
failure-patterns.md before you plan.
Harness-specific mechanics (subagents, background tasks, scheduling): when VIBESYS_RUN is set
in your environment, read references/harness/vibesys-orchestrator.md; otherwise read
references/harness/<harness>.md for the harness you are running in.
vibesys:setup, including user approval before any install or upgrade..vibesys/tasks/<task>/OBJECTIVE.md, vibesys.input.toml and objectives.toml. Stop and
say why, creating nothing, when tracked files have uncommitted changes (the base must be a
commit) or the first vibesys-cli submit fails with a message about the task: it says what the CLI
cannot run. A broken task is the user's to fix, never yours (Rules). Leave the environment
(--env) to the task unless the user chose one. When the CLI refuses
the task (for example, no placement offers a resource the task needs), stop and report the
refusal as printed, and point the user to the placements reference of vibesys:setup, which says
what to add to their config; never change the CLI's or the machine's configuration yourself.vibesys.input.toml, check that the domain skills the task needs are available, per
domain-plugins.md. If one is not available, stop as it says
(install commands, or in a run the orchestrator started a final report); do not plan without it.
A domain skill that needs a tool of its own says how to check it (the serving-studio
simulator: its Setup section). Check it once here; if it is missing, go on without it, say so
in your first report, and never install it during the run. If it answers, name its
variables (SERVINGSTUDIO_API, SERVINGSTUDIO_SIM, SERVINGSTUDIO_RECORDS) with their
values in every planner and profiler brief, and after each measure of a new head ask a
profiler to re-fit the simulator's calibration on it, as the skill says.vibesys:state). A new one first needs a base that passes
its check: run vibesys-cli submit check <base> --wait (with --gpus N for a task that needs
GPUs, as vibesys:measure says; a pass is saved and later measures reuse
it). If it fails, the base can never be measured and every promotion would be refused
unmeasured: read from-scratch.md and create nothing else
until it says to. Otherwise it gets the result branch vibesys/result/<task> at the base
commit, made with git branch vibesys/result/<task> <base>, never git checkout -b or
git switch -c, which check it out in the user's repository. The user's checkout stays on
the branch it was on, and every worktree you or your subagents make goes where vibesys:state
says (beside the repository, never inside it). A context line you reuse in every brief: --task <task> --run <run id> --harness <harness>. The run id is VIBESYS_RUN when the orchestrator set it; otherwise choose one
short name for this optimization, keep it on resume, and pass it as --run in the context
line. Never export VIBESYS_RUN yourself: its presence is what selects the orchestrator
harness file, for you and for every subagent that inherits your environment. Every worktree of the repository shares the task's one store, so each agent sees
the others' jobs.vibesys-cli show <base> lists no measure result, measure the base with
vibesys-cli submit measure <base> --no-plan, as a tracked background wait
(vibesys:measure). Leave out --samples: the task's objectives.toml sets the count. The base tests no plan, which --no-plan says. No comparison means
anything until it lands. Plan while it runs.vibesys-cli bound declare --objective <name> --value <v> --unit <u> --note "<how derived>".
It is yours to state, and nothing requires it. Revise it by declaring again (nothing is
replaced) when a profile or a measurement shows a tighter ceiling, or that the bound was too
modest: a result past it says so. bound list shows what stands.vibesys-cli plan list, plan view <n>). A plan is the record of one idea:
its title is the hypothesis a measurement can falsify, and its status says where the idea stands.
Dedupe, check each against the rules in OBJECTIVE.md before funding it, check that chosen
plans touch disjoint files, and write each decision as a plan comment, then set the status
(vibesys:state). When plans carry a simulated prediction, fund by it, discounted by the
residual its simulator showed on the head; a what-if bound caps a gain and predicts none. A
plan whose title is not something a measurement can show true or false goes back to its
planner, or is rewritten as such a claim in a comment before a worker starts.
Plans are grouped in workstreams, the lines of work the planners named (vibesys-cli workstream list). When you pause or close a line, say so where it lives: vibesys-cli workstream edit <n> --status paused|closed --note "<one line of why>", and --status active when it resumes.
A plan may name its kind (kernel, system, layout, simulator, probe, integration;
plan list --kind <kind>) and the plans it builds on (plan edit <n> --depends-on <n>[,<n>...], which replaces the set; none clears it). vibesys-cli plan list --ready lists
the open plans whose dependencies are all won, the ones that can start now; plan view <n>
shows a plan's dependencies and dependents with their statuses. A dependency that is parked or
rejected keeps its dependents waiting until you edit their dependencies. The CLI never starts a
plan for you: which ready plan to fund is still your decision.Checks: pass (vibesys:commit); wip commits below it are not measured. Link every measure
to the plan it tests: vibesys-cli submit measure <sha> --plan <n>, at the task's sample count. That link is how
each point on the run's chart is tied to its idea; vibesysd refuses a measure from a run that
names neither --plan <n> nor --no-plan. Say --no-plan only for the baseline and for
re-measuring the head, which test no idea. Combine parked or won plans with
combine-candidates, and use profile-revision when a question needs evidence. Where a measure
is expensive, accept a candidate on cheap evidence (tests, an on-device self-test, a
microbenchmark, a passing check) and measure several at once:
integration.md says when to integrate accepted plans, how to
compose their prediction, how each plan's status moves, and what to do when the merged check
fails. Record outcomes and lessons as plan comments (a plan with a simulated prediction also
gets predicted against measured value and the miss, as the domain skill's outcome block says),
link every other job to its plan too (--plan), and close the plan with its gain or its
reason: won when promoted, parked or rejected when a measurement settles it, set when it
happens and not at the end.plan edit <n> --gain-bound <share> and a comment citing the profile, or close it. A
bound nothing checked keeps Finish from ever holding.Where one measurement costs hours and a domain skill offers a simulator, a simulator plans the work and cheap evidence accepts it: simulator-led.md. It keeps a versioned design target and roadmap, accepts each plan on its kind's ladder (acceptance-ladder.md), and spends a full check and measure only on integrations. It replaces Loop steps 1 to 4; everything else here holds.
For megakernel tasks only (one kernel launch that runs a model step as phases sharing its resources, with a timeline that times each phase), the work is divided at the phase boundaries once a design is settled: megakernel-divide-and-conquer.md. The default loop bootstraps a working design. Then a profiler maps its phases into a versioned phase map, one worker per phase works in parallel under a contract (the phase's inputs, outputs, sync and resource budget), and a combiner glues the accepted phases into one integration that is measured once. One cross-phase plan stays in flight beside them. Then the new head is mapped again, and the cycle repeats until the budget is spent or the user stops the run: a cycle that finds nothing escalates (boundaries, cross-phase redesign, a finer bar, a finer map) instead of finishing. It replaces Loop steps 1 to 4 after bootstrap, and Finish with its own end of the run; everything else here holds.
.vibesys/, and no file of the task (its checker, benchmark,
manifest, objectives or data), not even to make a failing base pass. A task that cannot run, or
a check that fails for a reason in the task and not in the code, is a broken task: stop, change
nothing, and report what failed (vibesys-cli logs <job>). vibesys-cli submit check|measure
refuses a commit whose task files differ from the result branch head's (a conflict failure
that names the paths), so such an edit could not be measured or promoted anyway. A base that
fails the check because the code is missing is not a broken task: from-scratch.md.vibesys-cli promote <sha>, and only for a candidate whose
judge verdict is pass, or code review: pass, pending a better verdict followed by a better
(below). Never move it with git (branch -f, update-ref, reset, push),
never check it out or create it again after it exists, and never touch the user's checkout:
promote brings a checkout of the result branch that the user made along with it, or refuses
with a conflict that names the path when that checkout has local changes. Report such a
refusal to the user as printed; do not work around it with git. Exit 0 promoted. Exit 1 refused: the reasons are
on stdout, one of unmeasured, check_missing, worse, within_noise, inconclusive, stale,
environment_mismatch or tradeoff; show the user a refusal as the CLI printed it. A candidate that does
not contain the head also exits 1, with a conflict failure on stderr: dispatch a combine of
the candidate onto the current head and measure the result; never merge into the result branch.
The commits from the candidate's parent to its head land, wip checkpoints included; the judge
reviews the whole diff from the parent. Never squash or rewrite a measured commit
(vibesys:commit).objectives.toml has [pareto]): the result branch still moves only on
an overall better (better on some objective, worse on none). The task's goal is the Pareto
frontier, which vibesys-cli frontier add|list keeps. Once the base is measured, add it
(frontier add <base>). A judged-pass candidate whose compare against the head is
tradeoff goes to the frontier with frontier add <sha>, not to promote. Branch later work
from the result branch head or from a frontier member, and name which in the brief; a later
candidate built on a member is promoted when it is better than the head and is otherwise
offered to the frontier. Report every member's numbers from frontier list.unmeasured is not a pass: re-judge after the measurement. A judge that
reviewed the code while the candidate's measure still ran answers code review: pass, pending a better verdict for one SHA. When that measure lands and vibesys-cli compare <sha> --against <parent> says better, promote that same SHA without a second judge; a new commit on the
candidate, or any other verdict, needs a judge again. Write the pending verdict and the
compare output on the plan.value the CLI printed in vibesys-cli result --json
(current.result.measure.value), never one you computed from samples. If result exits 1, there
is none: for NO_CURRENT_RESULT_REASON_HEAD_NOT_MEASURED, submit vibesys-cli submit measure <head SHA> --no-plan and report after
that lands.
Before the first promotion the headline is the measure.value of vibesys-cli show <base> --json.vibesys-cli jobs says under each queued job why it waits; a queued job with a reason is
waiting its turn, not stuck. Give each brief a budget in samples and jobs, and look at
vibesys-cli jobs before you fund more. A long queue is not a reason to stop work: keep workers
implementing and committing the next ideas while their jobs wait, so the best candidate is ready
when a slot opens, and say why when you leave a slot idle
(reading the queue).vibesys-cli wait (vibesys:measure). Exit 4 is no answer, not a
failed job. Never resubmit a job after a wait that exited 3 or 4, or by reflex after a failure:
inspect with vibesys-cli jobs --json or show. Wait on completion notifications, never on a
sleep or a polling loop.In megakernel divide-and-conquer mode this section does not apply: the run ends when its budget is spent or the user stops it, as that mode's reference says. Otherwise:
Finish when the work has run its course, or when the user stops it. Check the course each time a candidate is promoted, refused or rejected, and before you dispatch another round of planners. It has run its course when either holds:
vibesys-cli plan check-gain --under 10% answers it: yes
when so, and otherwise no with the plans that state no bound or a higher one. A plan that
states none is not under: ask its planner for one, or close it. A new idea whose bound is
that low is a parked plan, not a reason to go on. A bold plan whose bound is higher keeps the
run going.within_noise or worse, or failed their judge, and plan check-gain --under 10% lists no
plan with a stated bound at or above 10%.Then integrate any accepted plan that waits (integration.md),
bring the plans up to date and give the final report, whatever else is still open: a
result you hold is worth more reported than improved forever. A run that stays open after a
final report costs nothing, and one that never gives it cannot be waited on. The operator's
steering note may state another share, which you give to --under.
There are two kinds. A progress report goes to the user after a promotion, and at least every hour unless the user names another schedule; not after each job or each agent. It does not say the work is done. The final report ends the work, once, as Finish says or only when an external factor you cannot fix stops all progress (no disk space, no quota, a host that is gone), and its headline says which, naming the cause. Where the harness has a scheduler, set the hourly report with it at the start and on every resume (the harness file, "Schedule periodic work"); with none, report when a task finishes. How to write a report: report-progress. To attach charts of progress to a report, use visualize-progress.
Describe each item in plain words, then its code name in parentheses, such as "paged attention for decode (plan 4)". Lead with what changed. Keep ids and SHAs out of the main text; they go in parentheses. Every periodic report ends with this self-check, answered honestly, with job ids and commit SHAs allowed here:
better, and vibesys-cli promote printed it.value from vibesys-cli result.chosen without a live agent, or, for an accepted plan, an integration that
holds it or is due.vibesys-cli compare verdict.references/acceptance-ladder.md (opens in a new tab)references/briefs.md (opens in a new tab)references/domain-plugins.md (opens in a new tab)references/failure-patterns.md (opens in a new tab)references/from-scratch.md (opens in a new tab)references/harness/claude-code.md (opens in a new tab)references/harness/codex.md (opens in a new tab)references/harness/opencode.md (opens in a new tab)references/harness/vibesys-orchestrator.md (opens in a new tab)references/integration.md (opens in a new tab)references/megakernel-divide-and-conquer.md (opens in a new tab)references/simulator-led.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/allocationsUse when jobs of a vibesys optimization wait long in a cluster queue, or before a long stretch of jobs on a placement that queues. Says when to hold a standing allocation with vibesys-cli, how to start one, how to judge renewal from `placement capacity`, how to end it, and how to read `alloc show` honestly. The CLI provides the commands; you decide when to ask, renew and stop./combine-candidatesUse when a vibesys optimize brief asks you to combine several candidates' changes into one new commit on a given base, to merge judged winners for promotion, or to integrate several accepted plans into one measured candidate. Applies each candidate's own change in the stated order, resolves conflicts as the brief says, runs the checks, measures the result with vibesys:measure, bisects a failed check down to the plan at fault, and hands back the commit and anything that could not be applied./commitUse when you commit work in a vibesys optimization: at every working step, before any measurement, and before ending a turn. Defines when to commit, what a commit holds, the enforced message schema (Conventional Commits plus Checks and Plan trailers, with cheap wip checkpoints), and which commits may be measured or promoted. Never touch .vibesys/, the task's checker or its benchmark./create-taskUse when a user describes in their own words what they want to optimize in a repository (the code, the workload, the number that should move, what must stay correct) and there is no `.vibesys/tasks/<task>/` for it yet, or an existing task needs to be made runnable. Turns that description into a task vibesys-cli accepts: a manifest, an objective, a checker and a benchmark, then proves it with real jobs (the base passes, broken code fails, the number is stable) before anyone optimizes against it./implement-hypothesisUse when a vibesys optimize brief gives you one hypothesis to implement in your own git worktree. Makes the smallest change that yields a measurement, commits it, measures it with vibesys:measure (vibesys-cli jobs), and hands back the claim, the commit, the verdict, what was learned and the next step. Never edits .vibesys/ or the task's checker or benchmark./judge-candidateUse when a vibesys optimize brief asks you to independently review a candidate commit that claims a gain, before the lead treats it as a win. Read-only: compares the diff with its parent against the claim, checks that the change is on the measured path, looks for gaming of the check or benchmark, and returns pass, fail, unmeasured, or a code-review pass pending a better verdict, with reasons./vibesys:optimizefrom vibesys
npx claudepluginhub uw-syfi/vibesys --plugin vibesysOther plugins' skills for the same job