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
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
mstephenholl
added a commit
to mstephenholl/pstack-claude-codex
that referenced
this pull request
Nov 25, 2026
…#53) ## Why The `how` smoke scenario fails on Codex even when Codex follows the skill exactly. The goal is a scenario that passes when Codex does what `how` says, and fails when it doesn't. Upstream's cursor#1236 cut `how` to one file. It starts one read-only subagent with a short brief, and it names no model role. Commit 2214152 retired the dropped roles and removed the stale model checks from the `why` and `reflect` scenarios, but it missed `how`. That scenario still required a read of `~/.agents/pstack-models.md` and a judgment subagent on gpt-6-astra. A kept Codex run shows Codex reading `how` and pstack-harness, then calling `spawn_agent` with only `task_name` and `message`. That is the right call for a skill that names no model. The two failing checks tested for routing that the skill no longer does. ## What changes - The `how` scenario checks `read_harness`, `no_cursor_slugs`, a new `spawned_any`, and that the answer explains the cache. - `spawned_any` passes on any `Agent` or `spawn_agent` call. - In `test_smoke.py`, `HowScenarioTest` builds a Codex transcript in the shape of the real run. A run with a spawn passes. The same run without the spawn fails. - `BraceReadTest` and the new test share one `codex_evidence` helper. ## Verification - The test commit fails on the old checks with the same two misses as the live run, and passes on the fix. - `smoke.py --recheck` on the kept live runs gives Codex FAIL before the fix and PASS after, on the same transcripts. - A fresh live run, `smoke.py --only how --harness codex`, passes 4 checks in 0.9 min. - All unit tests pass, and `check.py` reports 0 problems. ## Not in this PR `how` on Claude Code still fails `read_harness`. Claude Code runs upstream's generated plugin. In the installed 0.15.48, every skill that pointed at a harness file points at upstream's `docs/harness/claude-code.md` adapter, and none point at pstack-harness. This probably affects every Claude scenario, not just `how`. I haven't run the full Claude suite to confirm that. How the smoke test should treat upstream's adapter is a decision for the next upstream sync.
This was referenced Dec 2, 2026
CFBR
pushed a commit
to CFBR/xPstack-skills
that referenced
this pull request
Dec 4, 2026
…xes, sharpen and reflect text (cursor#1236) * feat(pstack): have sharpen ask for prototypes and swap a reflect example - 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]> * chore(pstack): bump to 0.15.37 Co-authored-by: lauren <[email protected]> * fix(pstack): report the spec's line and column when SANY cannot read it 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]> * chore(pstack): bump to 0.15.38 Co-authored-by: lauren <[email protected]> * fix(pstack): enter a parent state through its border in statechart charts 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]> * chore(pstack): bump to 0.15.39 Co-authored-by: lauren <[email protected]> * refactor(pstack): cut why to one short file that names no source 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]> * chore(pstack): bump to 0.15.40 Co-authored-by: lauren <[email protected]> * refactor(pstack): stop routing to how and cut how to one file 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]> * chore(pstack): bump to 0.15.41 Co-authored-by: lauren <[email protected]> * feat(pstack): route defaults to Fable 5.2, Opus 5.5 and Gemini 4 Carbon 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]> * chore(pstack): bump to 0.15.42 Co-authored-by: lauren <[email protected]> --------- Co-authored-by: Cursor Agent <[email protected]>
y2gcoder
added a commit
to y2gcoder/mstack
that referenced
this pull request
Dec 4, 2026
* fix(mstack): benchmark-checklist가 없는 PR 규칙을 가리키지 않게 한다 pstack 0.15.51(cursor/plugins#1249)의 benchmark-checklist를 그대로 가져온다. 번들의 Opening a PR은 #32에서 짧게 바뀌어 "PR 본문의 대표 수치는 하나" 규칙이 없다. 원본도 같은 이유로 이 참조를 지웠다. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(mstack): Why 설명이 하지 않는 MCP 일괄 조회를 약속하지 않게 한다 #29에서 Why 본문은 기록에서 답하는 한 파일로 바뀌었지만 description은 0.15.36의 "MCP를 찾아 증거 범주마다 병렬로 조회한다"를 그대로 두었다. pstack 0.15.51(cursor/plugins#1236)의 description으로 맞춘다. 본문은 바꾸지 않는다. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(mstack): 번들 도움말이 이미 흡수한 Lean, Reframe, Why를 바르게 안내하게 한다 pstack 0.15.51의 poteto-help에서 번들이 이미 가진 기능에 맞는 부분만 가져온다. - Statechart 행: TLA+ 모델과 Lean 4 증명을 모두 다룬다고 쓴다(cursor/plugins#1366). 번들은 0.4.0부터 Lean 경로를 포함한다. - 다른 도구 안내: 한 파일이 된 Why를 하위 에이전트를 띄우는 스킬 목록에서 뺀다(cursor/plugins#1236). - 프롬프트 예시: `/reframe` 예시를 더한다(cursor/plugins#1422). Orchestrate, 건너뛴 단계의 `skip:` 표시, Architect의 "with checkpoint" 문장은 번들에 남아 있으므로 그 줄을 지운 원본 변경은 가져오지 않는다. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(mstack): 에이전트용 문서를 감사하고 줄이는 no-prose를 번들에 더한다 pstack 0.15.51(cursor/plugins#1422)의 `no-prose` 스킬을 그대로 가져온다. 저장소의 에이전트용 문서에서 코드·타입·린트로 강제할 수 있는 규칙을 옮기고, 남은 문장은 블라인드 제거 실험으로 효과를 확인한 것만 남긴다. `disable-model-invocation: true`이므로 사용자가 부를 때만 실행된다. - 호출: `moonpa-mode`에서 no-prose를 이름으로 부르면 번들 스킬을 연다. `mstack:help`가 읽는 번들 도움말에 행과 예시를 더한다. - 런타임 대응: 두 어댑터에 행을 더한다. `.cursor/rules/`, `.cursor/skills/` 목록은 각 런타임의 지침 파일로 넓히고, 원본 Eval 플레이북 링크와 다른 회사 모델 판정자는 mstack Eval을 따른다. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: pstack 0.15.51까지의 원본 변경 검토 결과를 기록한다 0.15.36(`bb68f23`)과 0.15.51(`8bfaf67`) 사이에서 번들이 따라가지 않은 파일 85개를 흡수 5, 건너뜀 41, 보류 39로 나눈 기록을 `docs/pstack-0.15.51.md`에 둔다. 비교 재현 방법, 흡수 전후의 분류별 개수, `poteto-mode` 개정에 대한 권장을 함께 적는다. 번들의 기준은 0.15.36으로 둔다. ADR-0002의 채택하지 않은 목록에 이번에 정한 것을 더하고, README가 새 기록도 가리키게 한다. Refs #45 Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(adr): 원본 PR 번호가 이 저장소의 이슈로 연결되지 않게 한다 Co-Authored-By: Claude Fable 5.2 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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.