Repository navigation
Closed
Description
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 from2bd5dd4. Keep the port'sskills: [pstack:poteto-mode]preload from Preload poteto-mode in the Claude poteto-agent #49. Omit upstream'sis_background: trueand record it inUPSTREAM.md: Claude Code documentsbackground, notis_background, and Codex defines agents in TOML.poteto-mode/SKILL.mdSubagents line. Keep the port's sentence and add upstream's rule that the chat receiving/poteto-moderuns the playbook and never spawns apoteto-agentto run it.unslop/SKILL.md. Take the new description text. Keepdisable-model-invocationoff, asUPSTREAM.mdalready records.no-comments/SKILL.md. Keep the port'sAgenttool name. Thecomment-sickoid now matches the port.create-verification-skill/SKILL.md. Take the readiness text with the.cursorto.claudesubstitution.playbooks/worktree-cleanup.md. Take the-bflag 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.mjsandcheck-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 anUPSTREAM.mdexclusion row: the port keeps its current Claude and Codex manifests, and Agent Plugins v1 is revisited with Submitopen-pstackto the ChatGPT Plugin Marketplace #13.
Scope
- In: the skill and script content of every commit above,
README-UPSTREAM.mdverbatim, theUPSTREAM.mdsync point and exclusion rows,NOTICE.mdprovenance rows, and aCHANGES.mdsection 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
mainwith these features:skill-invocation:<name>in both harnesses forpoteto-mode,how,why,unslop,no-comments,create-verification-skill,ketchupand the four changed principle leaves;claude:agent-preload:poteto-agent; andshipped-toolsin 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.
Metadata
Metadata
Assignees
Labels
No labels
Activity
ericlitman commentedon Oct 12, 2026
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
UPSTREAM.mdmoves to the new sync point,upstream-audit.pyreports nothing whether or not every change came in. The PR instead reconciles the pre-sync audit (28 paths, 11 commits, taken at748a9bc) against the final tree, path by path and commit by commit, in its body.check-plan.test.tsis an add/add collision, not a one-hunk conflict. Keep the port's suite and add upstream's fence cases to it.poteto-agent.md: take upstream's delegate description and body withTask→Agent, keepgeneral-purposeand theskillspreload, and omitis_background. Claude Code documentsbackground, notis_background, and Codex defines agents in TOML.worktree-cleanup.md: take upstream's removal of the introductory paragraph and the-bguidance, 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 intotoLineswith 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.main:skill-invocation:<name>in both harnesses forpoteto-mode,how,why,unslop,no-comments,create-verification-skill,ketchupand the four changed principle leaves;claude:agent-preload:poteto-agent; andshipped-toolsin both harnesses.plugin.jsonstays 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 Submitopen-pstackto the ChatGPT Plugin Marketplace #13, so the exclusion row points there.Rejected
features/recipes.tsbeside verify-open-pstack: accept only the resolver launcher in the Reflect recipe, and give the fixture openers equal length #152 and Move Claude, Codex and Grok behind the provider adapter contract (registry U1) #155, and run-these sends PRs that share a file one at a time. Upstream's unit tests for fence handling, pagination andworktree-audit -bcome in with the sync and run in CI. The PR lists the missing live coverage under Not verified.hasNextPage: truepage with no cursor inwatch-pr. GitHub's GraphQL contract returns anendCursorwheneverhasNextPageis true, so the case is off-contract. Taking upstream's code as is keeps the sync cheap.Merge pull request #170 from ericlitman/sync/161-cursor-pstack-0.15.20
sync: port Cursor pstack 0.15.18-0.15.20 skill content (ericlitman#161)
release: sync Cursor pstack 0.15.20 as Open Pstack 1.7.0 (ericlitman#161