Skip to content

Use run_in_background in the swarm fan-out - #35

Merged
caelaxie merged 1 commit into
mainfrom
cursor/swarm-run-in-background-eb54
Oct 26, 2026
Merged

caelaxie merged 1 commit into
mainfrom
cursor/swarm-run-in-background-eb54

Conversation

@caelaxie

Copy link
Copy Markdown
Contributor

spawn_subagent takes run_in_background. skills/swarm/SKILL.md now passes that, says no subagent_type, and keeps the worktree and branch clauses.

Closes #27

Open in Web Open in Cursor 

spawn_subagent takes run_in_background. The swarm brief now says no subagent_type and keeps the worktree and branch clauses.

Co-authored-by: Kaitian Xie <caelaxie@users.noreply.github.com>

@caelaxie caelaxie left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

pass. one-sentence change in skills/swarm/SKILL.md matches #27's smallest fix verbatim (no subagent_type, run_in_background: true, worktree and branch clauses kept). no other files touched, no cursor paths. Validate plugin is green on f62b126 and runs grok plugin validate + grok plugin install . --trust + plugin list + inspect skill check. Closes #27 present, not a draft. squash-merging.

@caelaxie
caelaxie merged commit bf5fd27 into main Oct 26, 2026
1 check passed
@caelaxie
caelaxie deleted the cursor/swarm-run-in-background-eb54 branch October 26, 2026 03:05
@cursor
cursor Bot restored the cursor/swarm-run-in-background-eb54 branch October 26, 2026 03:06
@cursor

cursor Bot commented Oct 26, 2026

Copy link
Copy Markdown

Harness at head f62b126cb3fd9c75161caa1614792f32a2e12873, grok 1.0.70 (f50904eaee6c). Isolated HOME.

$ grok --version
grok 1.0.70 (f50904eaee6c)

$ grok plugin validate .
Plugin manifest is valid.
  name: pstack
  version: 0.15.32

$ grok plugin install https://github.com/pstack-ports/grok-pstack@cursor/swarm-run-in-background-eb54 --trust
Installed 1 plugin(s) from https://github.com/pstack-ports/grok-pstack@cursor/swarm-run-in-background-eb54: pstack

$ grok plugin list --json
[{"status":"installed","name":"pstack","version":"0.15.32","source":"https://github.com/pstack-ports/grok-pstack"}]

Installed checkout HEAD is f62b126cb3fd9c75161caa1614792f32a2e12873 (refs/heads/cursor/swarm-run-in-background-eb54).

grok inspect --json: plugin pstack enabled, 61 skills, every one userInvocable: true and sourced from plugin pstack. Agents include pstack:poteto-agent and pstack:comment-sicko.

Rest of CI, on this head: frontmatter check Validated 61 skills, 2 agents, and 23 playbooks. bash -n on skills/poteto-mode/scripts/worktree-audit.sh and skills/show-me-your-work/scripts/log.sh passed. bun install --frozen-lockfile, bun run typecheck, and bun run test passed (82 pass, 0 fail).

$ grok -p 'say hi' --max-turns 1
Not signed in. Run `grok login` to authenticate (or `grok login --device-code` if no browser is available).
Error: Not signed in. Run `grok login` to authenticate (or `grok login --device-code` if no browser is available).

A live grok -p turn is auth-blocked.

Installed skills/swarm/SKILL.md is byte-identical to this head. Installed text:

Spawn all N workers in one message with no `subagent_type`, `isolation: "worktree"`, `run_in_background: true`, and the step 3 model, left unset for `auto` or `inherit-parent`. Use `isolation: "none"` only when the worker needs the shared checkout. When a worker must start from a non-default branch, say that branch in the brief and have the worker check it out inside its worktree.

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.

audit: swarm spawn uses background: true

2 participants