Repository navigation
feat(pstack): new default models, one-file why and how, statechart fixes, sharpen and reflect text - #1236
Merged
Conversation
- sharpen: the rewritten prompt now asks the agent to prototype any choice an experiment can settle and recommend an option from what it observed. Product and preference choices stay with the user. The README and guide describe the new last line. - reflect: the synthesizer's example of a detail that drifts is now a function rename instead of a model-name rename. Co-authored-by: lauren <[email protected]>
Co-authored-by: lauren <[email protected]>
When SANY's XML run fails, check() reruns SANY in plain mode and reports that run's error section, capped at 40 lines. The message used to be the tail of the XML run, which is a Java stack trace. Three tests cover an unknown name, a parse error, and twelve unknown names. Co-authored-by: lauren <[email protected]>
Co-authored-by: lauren <[email protected]>
…arts An arrow from outside a parent state could run through the parent's title. The Mermaid backend now ends such an arrow at the parent's border, and the parent's start marker goes on to the state inside. A lone arrow keeps its label. When one state leads to several states inside, each label moves to the start marker's arrow. A parent that two or more states lead into keeps its direct arrows. Tests share one reader of a chart's arrows in test/drawn.ts. Two chart tests and one render test cover the new drawing. Co-authored-by: lauren <[email protected]>
Co-authored-by: lauren <[email protected]>
why is now one file with a 48-word body. It tells the agent to answer from the commits and PR discussions behind the code, to look further when that trail is thin, to cite what the authors wrote, to mark inferences, and to say what the record does not answer. The investigators, the synthesizer, the model routing, the output format, and the files under references/ are deleted. - recall starts its own investigator for each source instead of borrowing why's investigators and source playbooks. - blast-radius and teach stop pointing at parts why no longer has. - poteto-mode keeps its route to why and drops it from the lists of skills that set their own subagent type or model roles. - setup-pstack drops the two why roles. - poteto-help, the README and the guide describe the new why. Co-authored-by: lauren <[email protected]>
Co-authored-by: lauren <[email protected]>
how is now one file. It starts one read-only subagent with a short brief and presents the output. The model routing, complexity gate, explorers, output format and both prompt templates are deleted. poteto-mode no longer runs how. The trigger line is gone. The Investigation, Feature, Bug fix, Hillclimb, Perf issue and Refactoring playbooks, architect, no-comments and its comment-sicko agent tell the agent to trace the code itself. setup-pstack drops the two how roles. The Benny automation skills trace directly and no longer require how. teach and the poteto-help catalog keep how. The README and guide describe the new flow. Co-authored-by: lauren <[email protected]>
Co-authored-by: lauren <[email protected]>
The role labels and the four budgets stay. Only the defaults change. - hardest tasks: claude-fable-5-2-max. - feature, refactoring, bug-fix, perf-issue, hillclimb: claude-opus-5-5-xhigh. - swarm workers, reflect tooling, verification and trivial mechanical edits: claude-opus-5-5-high-fast. - arena runners, arena cross-judge pool, architect runners and interrogate reviewers: claude-fable-5-2-high, claude-opus-5-5-high-fast, gemini-4-carbon-high. Fable is its own family, apart from the other Claude models, and the two are one vendor for arena's cross-judge. Gemini tops out at high, and Fable 5.2 and Gemini have no fast slug. Each budget now moves a role's default effort by steps, so large still equals the defaults. setup-pstack writes a defaults marker line. A rule without it is from an older setup, and its old default values take the new defaults on the next run. Other values stay as the user's choice. Grok 4.7 is no longer a default. setup-pstack names its slug pattern once, to recognize an old default in an existing rule file. Co-authored-by: lauren <[email protected]>
Co-authored-by: lauren <[email protected]>
SmailG
added a commit
to SmailG/claude-cursor-plugins
that referenced
this pull request
Nov 15, 2026
…ne-file why and how, statechart fixes, sharpen and reflect text (cursor#1236) chore: sync with cursor/plugins — feat(pstack): new default models, one-file why and how, statechart fixes, sharpen and reflect text (cursor#1236)
This was referenced Nov 15, 2026
shiro-el
added a commit
to shiro-el/pstack-shiro
that referenced
this pull request
Nov 15, 2026
Takes upstream cursor#1236: why and how cut to one file each, poteto-mode no longer routes to how, new default models (Fable 5.2, Opus 5.5, Gemini 4 Carbon), sharpen asks for prototypes, and statechart fixes. Conflicts kept the fork's model-to-job table and hc routing, with upstream's structure on top: - poteto-mode: the table drops the how explorer, how explainer, why investigators, and why synthesizer roles, and the routed-skill list drops how and why. The family rule now says Fable and the other Claude models are one Claude family, the arena skill's vendor. - Playbooks keep the fork's spec-driven text and no default slugs, and trace the subsystem directly instead of running how. - setup-pstack takes upstream's text and defaults and keeps the debate panel and debate judge pool roles. - The Claude Code adapter takes upstream's default slug mapping and keeps the hc setup line.
This was referenced Nov 15, 2026
kyle-sexton
added a commit
to melodic-software/claude-code-plugins
that referenced
this pull request
Nov 16, 2026
…found The fifth script group's review: the launcher names a rejected --runtime, escapeText folds line breaks, and the chart skill documents exit 127. The claim-protocol skill records the three-claimant run without renew and the source line behind EndStateReclaimable. The upstream record says the copy lacks the renderer fix of cursor/plugins#1236. The README no longer says the jar is undeclared. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This was referenced Nov 17, 2026
mstephenholl
added a commit
to mstephenholl/pstack-claude-codex
that referenced
this pull request
Nov 17, 2026
Closes #44. Upstream: cursor/plugins@536a3352a050, which brings 2 pstack commits, cursor#1236 and cursor#1249. The daily sync stopped on eight conflicts and opened #44, so this is the manual merge from `pstack/port/merge-upstream.py`, plus the ports #44 lists and two problems it doesn't. ## What changes - **Merge (`20af844`)**: drops 249 upstream paths outside the port. In the port: - `how` and `why` (cursor#1236) are one-file skills. Their explorer, investigator, and synthesizer prompts and `why`'s per-source playbooks are gone. - `reflect` (cursor#1249) is one pass. Its three reviewer prompts and synthesizer are gone. - `poteto-mode` (cursor#1249) has shorter playbooks and a new `worker.md` that every spawned agent reads first. The Orchestrate playbook and `check-plan.mjs` are deleted. Opus 5.5 is the default for every role, capped at `xhigh`. - `statechart` (cursor#1236) gets fixes, and `architect` and `sharpen` get new text. - **Conflicts**: - `babysit`, `opening-a-pr`, `shipping`: upstream's rewritten text, with configurable PR readiness (#43) reapplied. Upstream dropped the Readiness heading, so `babysit` now names **Opening a PR**. - `multi-phase-plan`: upstream's. It no longer has the PR checklist our readiness line edited. - The three `reflect` reviewer prompts: deleted, as upstream did. Upstream also dropped the used-skill routing sentence the port had widened, so it has nowhere to go. - `setup-pstack`: the port's version, which runs `pstack configure`. Upstream's retired roles and `xhigh` cap go into `configure` in a follow-up PR. - **Port fixes in the merge**: - `poteto-agent.md`: dropped upstream's new `model: claude-opus-5-5-xhigh-fast`. Claude Code can't use that Cursor slug: a spawned agent falls back with "This agent switched to Opus 5 because its earlier model could not be used", and `claude -p --model claude-opus-5-5-xhigh-fast` fails outright. The port picks models per spawn from `pstack-models.md`. - `worker.md` said to open every PR ready, which undid a `pull requests: draft` setting for any agent that opens a PR. It now opens a draft when the kickoff asks, and **Opening a PR** tells the parent to ask. - `pstack-harness`: dropped the two `check-plan.mjs` notes, since upstream deleted the checker and the plan template that needed them. - README: the `sharpen` and `why` rows now describe upstream's current skills. - **`fix(pstack): drop mentions of the Orchestrate playbook upstream removed` (`582d6de`)**: the README, `pstack doctor`'s `bun` hint, and `pstack-harness`'s long-run list still named it. `merge-upstream.py` matches deleted paths, not playbook titles, so it didn't flag these. - **Not ported**: the ~20 Cursor-term lines in #44 use terms the harness already maps (`Task`, `pstack-models.mdc`, `cursor-team-kit`, `AskQuestion`, `agent-transcripts/`). `check.py` confirms each. ## Risk - **`pstack configure` still writes eight roles no skill reads** (`hardest tasks`, `how explorer`, `how explainer`, `why investigators`, `why synthesizer`, `reflect tooling`, `reflect judgment, divergent, synthesizer`, `architect runners`), and still offers `unlimited`. The lines go unused until the follow-up retires them. - **Upstream's own Claude Code plugin has the same bad `model:` line** in `poteto-agent`, so its delegates run on Opus 5. Reported as cursor#1270. It doesn't affect a `--claude` install of this fork. ## Proof - `check.py`: 0 problems, 0 warnings across 56 pstack skills. - Port unit tests: 267 pass. - `install_test.sh`: passes with bash 5.2. A scratch-HOME install for Codex and Claude links `poteto-agent.md` with no `model:` line. - `poteto-mode`'s bun tests: 54 pass, and the `watch-pr` typecheck is clean. - Smoke test: not run, for the same reason as #39. After the release: `pstack update`, then `smoke.py --only how,reflect,poteto-mode`.
mstephenholl
added a commit
to mstephenholl/pstack-claude-codex
that referenced
this pull request
Nov 18, 2026
#46) Stacked on #45. Merge that first, then retarget this to `main`. ## Why #45 brings in upstream's cursor#1236 and cursor#1249, which retired eight roles and capped every role at `xhigh`. `pstack configure` still wrote all seventeen roles and offered `unlimited` (max effort), so after #45 the models file carries eight lines nothing reads, and `unlimited` breaks the cap. ## What changed - **`pstack configure`** writes the nine roles skills read. An existing file's `hardest tasks`, `how explorer`, `how explainer`, `why investigators`, `why synthesizer`, `reflect tooling`, `reflect judgment, divergent, synthesizer`, and `architect runners` lines are reported as `dropped`, as retired lines already were. - **Per-role effort**, as upstream does: coding roles and `judgment and prose` start at `xhigh`, and the panels, `arena cross-judge pool`, and `swarm workers` at `high`. `medium` and `small` lower each one or two steps, down to `low`. The `# budget` line still names where the `xhigh` roles land. - **No `unlimited`.** `--budget unlimited` is rejected, a recorded `# budget: unlimited` becomes `large`, and the JSON's `previous.budget` says so. `--set` refuses an entry whose effort is above `xhigh`. - **`pstack-harness`**: the defaults table drops the retired roles and gains an Effort column, `reflect tooling`'s seat rule is gone, and effort moves among `low` through `xhigh` only. - **`setup-pstack`** offers three budgets and says when `unlimited` became `large`. Both READMEs stop listing `architect` and `reflect` as foreign-seat users. - **Smoke**: `why` and `reflect` no longer expect the subagents and seats they dropped, and a subagent at `max` effort fails `spawned`. ## Scope - Default models are unchanged: Sonnet and `gpt-6.1-sol` for coding roles, Opus and `gpt-6-astra` for the rest. Upstream moved every role to Opus 5.5. Doing the same here would roughly match upstream, but it's a cost call for the port, so it isn't in this PR. - `install.sh` still generates `pstack-effort-max`. Nothing selects it now, and removing it would also change the doctor check and the install test. ## Tradeoffs - Clamping `--set ...@max` to `xhigh` was the other option. Refusing it matches upstream's setup step, which asks again instead of writing an effort above `xhigh`. ## Blast Radius The next `pstack configure` (or `$setup-pstack`) rewrites the models file without the retired lines, and with panels and swarm workers at `high` instead of `xhigh` under `large`. Until then, skills ignore the retired lines. Overrides on the remaining roles are kept, at the new effort. A script that passes `--budget unlimited` now exits 2. ## Verification - `python3 -m unittest discover -s pstack/port/tests` passes 267 tests. `test_configure_drops_upstreams_retired_roles_and_the_unlimited_budget` covers the retired lines, the `unlimited` migration, the rejected flag, and the refused `@max`. Five existing tests now expect `high` for the panels and swarm workers. - `check.py`: 0 problems, 0 warnings. `install_test.sh` passes with bash 5.2. - Smoke: not run, as in #45.
This was referenced Nov 18, 2026
4 of 5 tasks
bramvera
added a commit
to bramvera/pstack-claude
that referenced
this pull request
Nov 19, 2026
…ile how, why, and reflect Moves the pstack pin from c742dd6 to 2f87c85 (cursor/plugins#1236, #1249). Every fork in tools/forks.json survives except the seven files upstream deleted that the port had edited. Retired roles leave models.json, new substitution rules cover upstream's new Cursor slugs, and 34 dead rules go. Release 0.9.140; CHANGES.md has the details.
This was referenced Nov 21, 2026
feat(p-stack): fold architect, how, why and reflect into single-file skills
Samuel-Harris/foundry#77
Merged
Merged
Samuel-Harris
added a commit
to Samuel-Harris/foundry
that referenced
this pull request
Nov 21, 2026
…skills (#77) Port upstream pstack's move of these four skills to one SKILL.md each (cursor/plugins#1236, #1249). The how, why and reflect reviewer, explorer and investigator prompts and the architect runner prompts are deleted; architect now runs arena for large designs, how starts one read-only subagent, why answers from the record, and reflect runs a single pass. Upstream's text is adapted to British English and target-neutral wording as for the rest of the port. The remaining upstream changes and the pin move follow in the next PR. Co-authored-by: Claude Opus 5.5 <[email protected]>
Samuel-Harris
added a commit
to Samuel-Harris/foundry
that referenced
this pull request
Nov 21, 2026
…utput (#78) Port upstream pstack's statechart changes (cursor/plugins#1236, #1292): the CLI runs on native Windows, verdict parsing accepts TLC's \r\n line ends, a janitor and kill helper clean up stray TLC processes, and the chart draws a parent's start marker. Upstream's scripts are taken verbatim; the tests keep the port's tests/statechart/ layout, with import paths adjusted, and gain the shared drawn.ts helper. Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Six changes to pstack, each as its own commit followed by a version bump (0.15.37 to 0.15.42): text updates to
/sharpenand/reflect, two/statechartfixes, one-file/whyand/how, and new default models.1.
/sharpenasks for prototypes, and/reflectgets a new example/sharpen: the last line of the skill now has the rewritten prompt ask the agent to prototype any choice an experiment can settle and to recommend an option from what it observed. Product and preference choices that no experiment can settle stay with you. Before, the skill left every choice open./reflect: the synthesizer's list of details that drift used a model-name rename as its example. It now uses a function rename (parseConfigtoloadConfig), so the example does not age./sharpenand the guide's poteto-mode chapter describe the new last line.Checks:
node scripts/generate-pstack-harness-trees.mjs --checkis up to date,node scripts/check-pstack-docs.mjsfinds 0 problems, andnode scripts/validate-plugins.mjsvalidates all plugins. Version is 0.15.37, andharness/pstack/is regenerated.2.
/statechartreports the spec's line and column when SANY cannot read itWhen
/statechartcould not read a TLA+ spec, the error showed the last lines of SANY's XML run, which is a Java stack trace. It did not say where the spec was wrong.check()now runs SANY a second time in plain mode when the first run fails, and reports that run's error section. The message starts at SANY's*** Errors,*** Abort messagesor*** Parse Errorline, so it names the line and column in the spec. It is capped at 40 lines. If the second run cannot start or has no error section, the message falls back to the old tail.Three new tests in
test/corpus.test.tswrite a broken spec and assert the message: an unknown name, a parse error, and twelve unknown names. Each asserts that noat tla2sany.stack frame is in the message.Checks:
test/corpus.test.tswithTLA2TOOLSset to the pinnedtla2tools.jar: 50 pass, 0 fail. The three new tests fail without therun.tschange.node --test pstack/skills/*/scripts/test/*.test.tswithoutTLA2TOOLS: 267 pass, 0 fail, 70 skipped. The new tests are among the skipped, like every test that needs TLC.3.
/statechartcharts enter a parent state through its borderIn a
/statechartchart, an arrow from outside a parent state to a state inside it could run through the parent's title. Pele 1.9.0 places a parent's title after layout, in one of three slots, and arrows that go straight to the states inside can cover all three.The Mermaid backend now draws those arrows so they cannot cross the title:
drawnEdgesinbackends/mermaid.ts).Scope:
Tests:
test/drawn.tsis a new shared reader of a chart's arrows. It replaces the copy intest/cli.test.tsand also reads start-marker arrows inside a parent.test/chart.test.tshas two new tests: a parent with one way in, and a parent that two states lead into.test/render.test.tshas a new test that renders a chart in Pele 1.9.0 and checks that no arrow enters a parent's title bar.test/labels.tsbuilds its expected edges fromdrawnEdges, and five expected arrow lists intest/cli.test.tschange with the new drawing.Checks:
TLA2TOOLSset to the pinnedtla2tools.jar: 373 pass, 0 fail, 0 skipped.TLA2TOOLS: 270 pass, 0 fail, 70 skipped.4.
/whyis one short file that names no source/whyis now one file with a 48-word body. It names no data source and no tool, so it works the same in every project.why/SKILL.md: the body tells the agent to answer from the record, not the code: the commits and PR discussions that introduced the target and each later change, and other sources if that trail is thin. It cites what the authors wrote, marks its own inferences, and says what the record does not answer. The investigators, the synthesizer, the model routing, the output format, and all 12 files underwhy/references/are deleted.recall: it borrowed thewhyinvestigators and source playbooks for its sweep of the shared record. It now starts its own investigator for each source. The source names stay generic.blast-radius,teach: they no longer point at partswhyno longer has (its step 2, its rules, its full sweep and narrowing advice).poteto-mode:whystays a routed skill in the playbooks. It leaves the two lists of skills that set their own subagent type or model roles.setup-pstack: thewhy investigatorsandwhy synthesizerroles are gone from the rule shape. A rule file that still has them loses those lines on the next/setup-pstackrun, like any retired role.poteto-help, the README and the guide's "Understand the code" chapter describe the new/why.What a user sees:
/whyreturns a shorter answer with no fixed headings, and it no longer searches each connected source in turn. It starts from source control and looks further only when that trail is thin./recallstill sweeps the shared record, with its own investigators.Checks:
node scripts/generate-pstack-harness-trees.mjs --check: up to date. The generatedwhyno longer carries the adapter line, because it uses no Cursor-only name.node scripts/check-pstack-docs.mjs: 0 problems.node scripts/validate-plugins.mjs: all plugins validate.pstack/finds no reference to a deleted file or to awhyrole, apart from the retired-role example insetup-pstack. Version is 0.15.40.5. Nothing routes to
/how, and/howis one file/howstays as a short skill you invoke yourself./poteto-modeand the skills it routes to no longer run it. They trace the code directly.how/SKILL.md: one file. It starts one read-only subagent with a three-sentence brief and presents the output. The model routing, the complexity gate, the explorers, the output format, and both prompt templates underhow/references/are deleted.poteto-mode: the "nontrivial change → how" trigger is gone, andhowleaves the two lists of routed skills.how. The multi-phase plan template no longer nameshowin its reading list.architect: Phase A and the scrap step trace the subsystems. Thearchitect runnersline and the interface-depth text are unchanged.no-commentsand itscomment-sickoagent trace the symbol or run/why.setup-pstack: thehow explorerandhow explainerroles are gone from the rule shape. A rule file that still has them loses those lines on the next/setup-pstackrun, like any retired role.howleaves the list of pstack skills the target repository must resolve. They still usewhy./teachstill runs/howand/why, and thepoteto-helpcatalog still lists/how.What a user sees:
/howreturns one subagent's explanation with no fixed headings and no per-role models. A/poteto-moderun no longer spends a step on/howbefore it designs or debugs.Checks:
pstack/finds no reference to a deleted file or to ahowrole, apart from the retired-role example insetup-pstack. Version is 0.15.41.6. Defaults route to Fable 5.2, Opus 5.5 and Gemini 4 Carbon
pstack's default models change. The role labels and the four budgets stay, so an existing
pstack-models.mdcrule keeps working. This changes which model every default user runs.hardest tasksclaude-opus-5-5-xhighclaude-fable-5-2-maxfeature, refactoring,bug-fix,perf-issue,hillclimbgrok-4.7-xhigh-fastclaude-opus-5-5-xhighjudgment and prose,reflect judgment, divergent, synthesizerclaude-opus-5-5-xhighswarm workers,reflect tooling, verification, trivial mechanical editsgrok-4.7-xhigh-fastclaude-opus-5-5-high-fastarena runners,arena cross-judge pool,architect runners,interrogate reviewersclaude-opus-5-5-xhigh, grok-4.7-xhigh-fastclaude-fable-5-2-high, claude-opus-5-5-high-fast, gemini-4-carbon-highGrok 4.7 is no longer a default anywhere.
Rules that changed with the defaults:
xhigh. They are nowxhighorhigh, andmaxforhardest tasks. Gemini has noxhigh,maxor fast slug, so a Gemini subagent runs athigh. Fable 5.2 has no fast slug, so an urgent Fable 5.2 subagent runs at standard speed.claude-fable-*) is its own family, apart from the other Claude models, so a panel with a Fable seat and an Opus seat stays diverse. A leadingcursor-is dropped before families are compared. Any other slug's family is its text before the first hyphen.gemini-4-carbon-high, and arena skips the judge if that is refused. A parent from another vendor getsclaude-fable-5-2-highfirst.largekeeps it,unlimitedraises it one step,mediumlowers it one step, andsmalllowers it two. For a role whose default isxhigh, the result is the same as before. The change keepslargeequal to the defaults now that the defaults are not allxhigh, and a re-run still gives the same file.swarm workersline. pstack has no separate role for them, and this change adds none.Existing rule files:
/setup-pstackwrites a new# defaults: 2line. A rule without that line comes from an older setup, which wrote a line for every role, so some of its values are old defaults and not choices. On the next/setup-pstackrun:grok-*value in a role that used to default to Grok 4.7 takes the role's new default.claude-opus-*value inhardest taskstakes the new default.claude-opus-*entry and onegrok-*entry takes the new three-seat list. In any other panel list, eachgrok-*entry becomesclaude-opus-5-5-high-fast.grok-*value in a role that never defaulted to it, and everyinherit-parentorautovalue.Until that run,
/poteto-modekeeps honoring the old lines and tells the user once per session to rerun/setup-pstack.Where Grok is still named:
setup-pstackstep 2 names thegrok-*pattern once. It needs that to recognize an old default in an existing rule file./make-bot-uiand the three places that list that skill is a product name, not a model choice. This change does not touch it.scripts/check-pstack-docs.mjsandscripts/generate-pstack-harness-trees.mjskeep their existing guard patterns. With this change, the docs check fails if a Grok slug comes back into the README or the guide.Files:
setup-pstack: rule shape, budget step, old-default step.poteto-mode: the defaults sentence and "Match the model to the job".arena,architect,swarm,reflect: default slugs, families and the cross-judge rule.feature,bug-fix,perf-issue,hillclimb,refactoring,multi-phase-plan: the "(default ...)" lines.docs/harness/claude-code.md: the non-Claude slug row and the default mapping. In Claude Code,claude-opus-5-5-high-fastisopus high,claude-fable-5-2-maxisfable max, andgemini-4-carbon-highisinherit-parent.Checks:
node --test pstack/skills/*/scripts/test/*.test.ts: 270 pass, 0 fail, 70 skipped. The model change touches no script.pstack/andharness/pstack/for Grok finds only the places listed above.