Skip to content

Add orchestrate plugin#63

Open
poteto wants to merge 1 commit intocursor:mainfrom
poteto:add-orchestrate-plugin
Open

Add orchestrate plugin#63
poteto wants to merge 1 commit intocursor:mainfrom
poteto:add-orchestrate-plugin

Conversation

@poteto
Copy link
Copy Markdown

@poteto poteto commented May 4, 2026

A new plugin alongside cursor-sdk. Loaded only on explicit /orchestrate <goal> (disable-model-invocation: true), the skill fans a large task out across parallel Cursor cloud agents using @cursor/sdk: a root planner publishes tasks, workers run isolated and hand off back up via git plus structured handoff files, and a small TypeScript script (scripts/cli.ts) reconciles the tree from disk so the spawn / wait / handoff loop converges without long-running agent state.

Setup

  • bun on PATH, CURSOR_API_KEY set.
  • Slack visibility is optional. With SLACK_BOT_TOKEN plus --slack-channel <id>, the script mirrors the run as a Slack thread; without, it runs silent. orchestrate/README.md covers the API key flow and the Slack app + scopes.

Layout

orchestrate/.cursor-plugin/plugin.json, LICENSE (MIT), README.md, .gitignore, and the skill at orchestrate/skills/orchestrate/. Mirrors the cursor-sdk plugin shape; depends on @cursor/sdk at runtime.

Tests

bun install && bun test inside orchestrate/skills/orchestrate/scripts — 207 pass, 0 fail.


Note

Medium Risk
Mostly additive new plugin code, but it introduces a new CLI that spawns cloud agents, writes to git/disk state, and optionally posts to Slack threads—areas where subtle bugs could cause noisy runs or unintended writes.

Overview
Adds a new orchestrate plugin (metadata, MIT license, README, and a disable-model-invocation: true skill) for explicitly fanning out /orchestrate <goal> into a planner/worker/subplanner/verifier task tree with structured handoffs.

Introduces a Bun-based orchestration CLI and supporting schemas/prompts that persist plan.json/state.json, collect handoffs/*.md, support Slack thread mirroring + Andon pausing, checkpoint restarts, comment retry queueing, measurement re-checks, and kickoff deduping; includes a large new Bun test suite covering Slack behavior, Andon caching, handoff parsing, failure postmortems, and measurements.

Reviewed by Cursor Bugbot for commit 61f28fc. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high mode and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit 61f28fc. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant