run-in-parallel
Run many Rush tasks at once, one cloud computer each, and gather the results. Use when someone has a list of independent pieces of work (issues to fix, repositories to update, files or pages to research, flaky tests to chase), or wants several approaches to one problem tried side by side.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 491
01 前言 Front Matter
- name
- run-in-parallel
- description
- Run many Rush tasks at once, one cloud computer each, and gather the results. Use when someone has a list of independent pieces of work (issues to fix, repositories to update, files or pages to research, flaky tests to chase), or wants several approaches to one problem tried side by side.
03 SKILL.md 正文
Run tasks in parallel with Rush
Each Rush session has its own computer and shares nothing with the others, so independent work runs side by side instead of in a queue.
- Split the work. Make one task per item that can be done without the others' results. Each task is self-contained: the goal, its inputs, and the same definition of done for every item ("open one pull request and do not merge it", "write findings.md"; leave out "do not merge" only when the person asked for merges). Work that touches the same files belongs in one task, not several racing pull requests. Show the person the list and confirm before starting more than five.
- Start them. Call
create_sessiononce per item, each with its own fresh UUID, written yourself, asrequest_id, and the samerepo,projectoragentwhere they share one. Keep a table of item to session id. Sessions past the account's runs-at-once limit startqueuedand begin as others finish. - Gather. Call
wait_for_sessionswith all the ids (up to 20 per call),until: "any"andtimeout_seconds: 50. Report each session as it settles, then call again with the ones still running. - Summarize. One row per item: its status, a one-line answer, and the pull
request or file link. List
failedandneeds_reviewitems first, with their reasons. To redo one, send a follow-up to that session withsend_session_messagerather than starting over.
Several approaches to one problem. Start one session per approach with the
same task and the approach named in it, then compare the results side by side:
what each changed (get_session_changes), whether tests pass, and the
trade-off. Let the person pick; offer cancel_session for the others only when
they ask.
Refusals: see hand-off-a-task under "When Rush refuses".
04 同仓库更多 Skills
worktable-review-with-annotations
Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.
worktable-find-and-synthesize-context
Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.
worktable-create-or-update-docs
Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.
worktable-create-or-manage-records
Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.
worktable-create-or-manage-interactive-html
Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.
worktable-collaborate-threads
Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.