Open Dynamic Workflows
中文文档
Dynamic workflow orchestration for Cursor, Grok Bot (via Cursor CLI), Grok Build, ZCode, Antigravity, and Copilot — fan a deterministic
JavaScript script out across many CLI subagents through a native workflow tool and authoring skill.
A dynamic workflow is a plain-JS script that orchestrates subagents at scale. The model
writes the script for the task; the plugin's bundled runtime executes it, fanning each
agent() call out to a real cursor-agent, grok, claude, codex, or zcode subprocess.
Harness policy (2026-09-11)
Claude harnesses use native ultracode; Codex/ChatGPT harnesses use native
ultra mode. Advise the mode without changing the selected model; do not
activate ODW on those hosts.
Cursor and Grok Bot use ODW with Cursor CLI workers, not Cursor multitask
or persistent Bot-to-Bot delegation. Set ODW_HOST=grok-bot explicitly in the
Bot VM; omitted executor then selects cursor, not Grok Build. Grok Build,
ZCode, Antigravity and Copilot retain their corresponding ODW executors.
Installation and live-run gaps remain explicit. Legacy Claude/Codex executors
remain available to standalone SDK callers, not their native-only host packages.
Worktree safety
Use isolation: 'worktree' for workers that mutate files concurrently, not for
every read-only task. The first isolated worker pins the caller HEAD for the whole
run, including nested workflows. Staged/unstaged caller edits are not copied or
discarded; commit required shared inputs before an isolated run. A caller inside
a repository subdirectory stays in that subdirectory inside each worker checkout.
Only successful pristine worktrees at their original commit are removed, without
force. New commits, changed/untracked/ignored files, failed or cancelled workers,
and uncertain cleanup retain the checkout. Use worktreeNotes and the agent
trace cwd to inspect and integrate the result; no changes are auto-merged into
the caller. Retained commits remain reachable through their worktree. Worktrees
are Git isolation, not a security sandbox: native permission checks remain in force.
Install (Cursor CLI)
Cursor CLI (agent, from cursor.com/install) does not yet install plugins from a marketplace the way Grok/Codex do. Use the repo installer — one copy-paste, then a new agent session has the workflow tool and the authoring skill. Omitted executor is cursor.
git clone --depth 1 https://github.com/atebites-hub/open-dynamic-workflows-plugin.git
node open-dynamic-workflows-plugin/scripts/install-cursor-cli.mjs
That writes an absolute MCP command into ~/.cursor/mcp.json (CLI user/project mcp.json does not expand ${PLUGIN_ROOT}), links the plugin into ~/.cursor/plugins/local/open-dynamic-workflows, and copies the skill to ~/.cursor/skills/open-dynamic-workflows. Then:
agent mcp enable open-dynamic-workflows
agent mcp list
Headless check: agent -p --force --trust --workspace . --output-format json --approve-mcps. Developers iterating on a checkout can skip the home install and load the dual-format plugin (Cursor Plugin + Agent Plugin) with agent --plugin-dir /path/to/open-dynamic-workflows-plugin.
Cursor IDE
cursor-agent plugin marketplace add atebites-hub/open-dynamic-workflows-plugin only registers the marketplace. Install open-dynamic-workflows from Customize, or copy/symlink the plugin into ~/.cursor/plugins/local. Plugin mcp.json still uses ${PLUGIN_ROOT} for that loader.
Omitted executor runs on cursor (agent / cursor-agent / CURSOR_BIN). Nested Cursor leaves set ODW_CURSOR_LEAF=1 and must not reload this plugin's workflow tool.
Cursor team marketplace
This repository is the team marketplace catalog (.cursor-plugin/marketplace.json, name atebites-cursor-plugins). In Dashboard → Plugins → Import from Repo, import:
https://github.com/atebites-hub/open-dynamic-workflows-plugin
Then in Customize, install:
Remote source values are GitHub URLs, which the official marketplace schema allows. Plugin entries only use name, source, and description. If Import from Repo only indexes in-repo paths, add the ponytail and sol-advisor GitHub repos as additional marketplaces — this catalog does not vendor those trees.
CLI install for open-dynamic-workflows is still node scripts/install-cursor-cli.mjs above.
Install (Grok Build)
grok plugin marketplace add atebites-hub/open-dynamic-workflows-plugin
grok plugin install open-dynamic-workflows --trust