Skip to content

Sync Cursor pstack 0.15.20 as Open Pstack 1.7.0 #161

Closed

Description

@ericlitman

Goal

Port Cursor pstack 0.15.18 to 0.15.20 to Claude Code and Codex. The range is the 11 pstack commits from the sync point 978ca6e to 1b6d44f.

Upstream commits

Commit Change
ea32d95 /ketchup shows decisions as before/after visuals (0.15.18)
08bd59b Cuts unneeded sections from how, poteto-mode, why and four principles (0.15.19)
de2dba6 Renames the Comment Sicko agent id to comment-sicko
87c8103 check-plan respects fenced code blocks
ff8f83d watch-pr paginates review threads past the first 100
bc697d0 Drops "Must always apply." from the unslop description
cf9a111 worktree-audit.sh checks MERGED against the default branch, with -b <ref>
2bd5dd4 The /poteto-mode chat runs the playbook, and poteto-agent is only a delegate
e5a02f8 Adds a root Agent Plugins v1 plugin.json
c49b37a create-verification-skill readiness means the app is usable
1b6d44f Bumps to 0.15.20

Measured cost

On 2026-10-12 the triage ran scripts/upstream-audit.py --port HEAD --upstream cursor/main and scripts/upstream-merge.py on main at 748a9bc, in a throwaway worktree:

Result Paths
Verbatim 13
Clean three-way merge 5
Needs review, one conflict hunk each 10
Unmapped 2 (root plugin.json, .cursor-plugin/plugin.json)

Resolutions

Eric approved syncing now on 2026-10-12, with these resolutions:

  • agents/poteto-agent.md. Take the delegate description from 2bd5dd4. Keep the port's skills: [pstack:poteto-mode] preload from Preload poteto-mode in the Claude poteto-agent #49. Omit upstream's is_background: true and record it in UPSTREAM.md: Claude Code documents background, not is_background, and Codex defines agents in TOML.
  • poteto-mode/SKILL.md Subagents line. Keep the port's sentence and add upstream's rule that the chat receiving /poteto-mode runs the playbook and never spawns a poteto-agent to run it.
  • unslop/SKILL.md. Take the new description text. Keep disable-model-invocation off, as UPSTREAM.md already records.
  • no-comments/SKILL.md. Keep the port's Agent tool name. The comment-sicko id now matches the port.
  • create-verification-skill/SKILL.md. Take the readiness text with the .cursor to .claude substitution.
  • playbooks/worktree-cleanup.md. Take the -b flag and the fetch behavior. Keep the port's installed-plugin script path.
  • playbooks/babysit.md. Take upstream's cuts. Keep the port's merge-safety paragraph unless upstream's change makes it wrong.
  • scripts/check-plan.mjs and check-plan.test.ts. Take the fenced-code fix. Keep the port's role-pointer lane sentence.
  • scripts/package.json. Keep the port's test and typecheck lists.
  • Root plugin.json. Not applied. Add an UPSTREAM.md exclusion row: the port keeps its current Claude and Codex manifests, and Agent Plugins v1 is revisited with Submit open-pstack to the ChatGPT Plugin Marketplace #13.

Scope

  • In: the skill and script content of every commit above, README-UPSTREAM.md verbatim, the UPSTREAM.md sync point and exclusion rows, NOTICE.md provenance rows, and a CHANGES.md section with the version bump.
  • Release as Open Pstack 1.7.0 after the PR merges, as earlier syncs did.
  • Record each step as notes for Write an agent-runnable upstream sync skill #106, the upstream sync skill.

Acceptance criteria

  • The PR body reconciles the pre-sync audit (28 paths and 11 commits, from 748a9bc) against the final tree: each path as verbatim, merged, adapted or excluded, and each upstream commit as applied, adapted or excluded.
  • Bun tests, strict typecheck, static invariants and plugin validation pass.
  • The live gate passes on the final head, run from trusted main with these features: skill-invocation:<name> in both harnesses for poteto-mode, how, why, unslop, no-comments, create-verification-skill, ketchup and the four changed principle leaves; claude:agent-preload:poteto-agent; and shipped-tools in both harnesses.

Order

After #153 and #160 merge. It runs in parallel with #155 (registry U1), which touches only port-only runner files. Before #157 (registry U3), which edits poteto-mode/SKILL.md.

Source: triage 2026-10-12.

Activity

  1. ericlitman commented on Oct 12, 2026

    @ericlitman
    OwnerAuthor

    Design pass (2026-10-12, Astra high, read-only at 748a9bc)

    Record: ~/projects/docs/projects/open-pstack/records/2026-10-12-batch-153/design-161.md (private docs repo).

    Accepted

    • The audit criterion was wrong. Once UPSTREAM.md moves to the new sync point, upstream-audit.py reports nothing whether or not every change came in. The PR instead reconciles the pre-sync audit (28 paths, 11 commits, taken at 748a9bc) against the final tree, path by path and commit by commit, in its body.
    • check-plan.test.ts is an add/add collision, not a one-hunk conflict. Keep the port's suite and add upstream's fence cases to it.
    • Resolutions, more exact than the ticket's list:
      • poteto-agent.md: take upstream's delegate description and body with Task → Agent, keep general-purpose and the skills preload, and omit is_background. Claude Code documents background, not is_background, and Codex defines agents in TOML.
      • worktree-cleanup.md: take upstream's removal of the introductory paragraph and the -b guidance, on the installed-plugin script path.
      • babysit.md: keep the port's merge-safety paragraph and delete the Reply block upstream removed.
      • check-plan.mjs: adapt upstream's fence handling into toLines with strict types, and keep the role-pointer lane sentence.
      • worktree-audit.sh: keep the port's transcript handling.
      • watch-pr: take the pagination change across reader, types, policy and tests together.
    • The live run names its features explicitly. Run from trusted main: skill-invocation:<name> in both harnesses for poteto-mode, how, why, unslop, no-comments, create-verification-skill, ketchup and the four changed principle leaves; claude:agent-preload:poteto-agent; and shipped-tools in both harnesses.
    • Root plugin.json stays out of this sync, with a corrected reason. The port keeps its current Claude and Codex manifests. The advisor cites OpenAI plugin documentation that describes Agent Plugins v1, which may matter for Submit open-pstack to the ChatGPT Plugin Marketplace #13, so the exclusion row points there.

    Rejected

  2. added a commit that references this issue on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions