Skip to content

feat(pstack): port agentic Orchestrate from upstream 0.15.36 (0.9.1) - #13

Merged
athul-ramesh merged 1 commit into
mainfrom
port/pstack-c742dd6
Oct 30, 2026
Merged

athul-ramesh merged 1 commit into
mainfrom
port/pstack-c742dd6

Conversation

@athul-ramesh

Copy link
Copy Markdown
Owner

Why

Upstream pstack 0.15.36 (cursor/plugins#1043, commit c742dd6) rewrote the Orchestrate playbook to be agentic: the coordinator runs the program with its own tools instead of the Bun orch CLI, and the playbook is reorganized into Topology and Supervision rules.

What changed upstream

  • Orchestrate shrinks from ~110 lines to ~25: one owner per PR, a fresh worker per independent task with upstream reports pasted in full, sub-coordinators only for wide areas (max three levels, ~10 in flight), forking for built state, a verifier from a different model family, and "start with one unit".
  • Supervision: each kickoff names the evidence that proves done; read the diff, not the summary; send back scope drift; check live PR state with gh pr view/gh pr checks; judge stalls by pushes and PR activity; retry by cause; ask the user only for real decisions.
  • State moves to the Cursor Project tracker/store plus PR and CI event subscriptions; scripts/orch/* is deleted.

How it was adapted for Devin

  • skills/poteto-mode/playbooks/orchestrate.md follows the new Topology / Supervision / Reply shape.
  • Kept Devin specifics: run_subagent via delegation.md, same-pin poteto-agent-* writers, root-provisioned worktrees, the local program-state.sh store, foreground-only resumes, bounded waves plus resume.md.
  • Verifier "different model family" becomes a profile with a different model: pin.
  • Fork becomes "resume a worker only for a follow-up on the same work" (Devin has no fork).
  • New audit: docs/pstack-0.15.36-port-audit.md; release notes and version bumped to 0.9.1.

Not ported / uncertain

  • Cloud workers (environment: "cloud"): run_subagent has no such field.
  • Sub-coordinators: Devin only nests with a custom max-nesting profile, which this port doesn't ship. Could be added later as a deliberate choice.
  • Project tracker and PR/CI event subscriptions: no Devin equivalent documented; replaced by the existing local store and on-demand gh checks.
  • orch script deletion: never shipped here.
  • Native Devin activation of 0.9.1 is untested.

Checks

  • node --test tests/*.test.mjs: 53/53 pass.
  • git diff --check: clean.

@athul-ramesh
athul-ramesh merged commit 0b293b1 into main Oct 30, 2026
@athul-ramesh
athul-ramesh deleted the port/pstack-c742dd6 branch October 30, 2026 06:07
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