Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ updating replaces the plugin code (skills, CLI, runtime) but keeps your configur

upgrading from a pre-0.15.0 config: the `how critics` role is retired and the 17-role parser rejects a config still carrying its line. before the next `/setup-pstack` save, edit `rules/pstack-models.md` to remove the `how critics:` role line, and any stale `# how critics[...]` address comments next to it. keep the approved model pool and every other role assignment. do not delete the whole config.

This package ports canonical P Stack 0.15.36. It adds statechart model checking and video catch-ups, replaces orchestration scripts with native agent coordination, and requires reproduced findings for adversarial review. OMP retains its configured model pool, persistent mode, native task agents, workspace-scoped history, and bottom-only stack landing. Autopilot uses the upstream full-swarm-once policy and stacks only dependent PRs. The [Claude Code provenance assessment](./docs/harness/claude-code.md) explains why upstream host artifacts are recorded but not installed.
This package ports P Stack 0.15.48. It adds `/reframe`, shorter design and investigation workflows, and native Windows support for `/statechart`. The port keeps OMP's approved model pools, persistent mode, native tasks, and workspace-scoped history. OMP still ships Orchestrate and `check-plan`, which upstream removed. The [Claude Code provenance assessment](./docs/harness/claude-code.md) explains why OMP records but does not install the upstream host artifacts.

repo maintainers can verify manifest completeness, recorded source blobs, and byte-exact unadapted files against the pinned upstream commit with `bun scripts/check-upstream.ts <cursor/plugins checkout>`.

Expand Down Expand Up @@ -149,9 +149,9 @@ morning.
| [babysit](./skills/poteto-mode/playbooks/babysit.md) | drive a pr or a stack to merge-ready: conflicts, review threads, ci. |
| [shipping](./skills/poteto-mode/playbooks/shipping.md) | independently verify a green stack, then land the contiguous verified run bottom-up through github by default or origin when available. |
| [autonomous run](./skills/poteto-mode/playbooks/autonomous-run.md) | drive a long task to completion without stopping. |
| [orchestrate](./skills/poteto-mode/playbooks/orchestrate.md) | a standing project handed to one coordinator chat: multi-day, many stacked prs, fleets of subagents. |
| [autopilot-full](./skills/poteto-mode/playbooks/autopilot-full.md) | run independent prs to merged with one owner per pr. a swarm verifies each code-ready head, and every later change to the patch gets a fresh check. |
| [autopilot-stack](./skills/poteto-mode/playbooks/autopilot-stack.md) | autopilot-full without the merge. build and verify prs for the operator to review and land, stacking a pr only on a pr it builds on. |
| [orchestrate](./skills/poteto-mode/playbooks/orchestrate.md) | run a standing program from one coordinator chat: one owner per pr, an independent verifier, durable tracker state. omp keeps this after upstream moved programs to `/figure-it-out`. |
| [session pickup](./skills/poteto-mode/playbooks/session-pickup.md) | resume or take over a prior agent's in-flight work. |
| [pause safely](./skills/poteto-mode/playbooks/pause-safely.md) | suspend in-flight work cleanly so it can be resumed later. |
| [multi-phase plan](./skills/poteto-mode/playbooks/multi-phase-plan.md) | work that spans phases or stacked PRs. |
Expand Down Expand Up @@ -186,13 +186,14 @@ Invoking [`/poteto-mode`](./skills/poteto-mode/SKILL.md) turns on persistent mod
/interrogate review this pr.
```

The [complete skills reference](./docs/guide/skills.md) lists all 59 discoverable skills with their purposes and source files. It separates 35 direct workflow skills from 24 supporting principles. Bare `/<name>` commands are available for direct skills when no other command owns the name. OMP's `/skill:<name>` form reaches all 59.
The [complete skills reference](./docs/guide/skills.md) lists all 60 discoverable skills with their purposes and source files. It separates 36 direct workflow skills from 24 supporting principles. Bare `/<name>` commands are available for direct skills when no other command owns the name. OMP's `/skill:<name>` form reaches all 60.

| New skill | Use it when |
|---|---|
| [`/poteto-help`](./skills/poteto-help/SKILL.md) | Find the skill, playbook, or principle for your goal and get a prompt to send. It runs only when you invoke it and does not start the work. |
| [`/in-your-own-words`](./skills/in-your-own-words/SKILL.md) | Restate the user's goal and problem before starting. |
| [`/sharpen`](./skills/sharpen/SKILL.md) | Rewrite a prompt with expert methods, primary material, and an outside check without executing the task. |
| [`/reframe`](./skills/reframe/SKILL.md) | Teach the expert terms for what you are building. When your description could name more than one problem, it lists the candidates with the sign that tells them apart before it picks one. It runs only when you invoke it. |
| [`/create-formal-verification-skill`](./skills/create-formal-verification-skill/SKILL.md) | Generate a project-local formal check of a high-risk property and prove it catches a real break. |
| [`/maintain-formal-verification-skill`](./skills/maintain-formal-verification-skill/SKILL.md) | Bring formal checks back in sync with changed code and distinguish verification drift from product bugs. |
| [`/ketchup`](./skills/ketchup/SKILL.md) | Catch up on this chat with real visuals and every waiting user decision, including older waiting items. Do not replace an item list with a count. |
Expand All @@ -201,7 +202,7 @@ The [complete skills reference](./docs/guide/skills.md) lists all 59 discoverabl
| [`/statechart`](./skills/statechart/SKILL.md) | Check a TLA+ state model with TLC and draw a Mermaid chart. Mark each state that breaks a rule and give the shortest path to it. |
| [`/ketchup-video`](./skills/ketchup-video/SKILL.md) | Catch up with a short subtitled video and waiting decisions. Deliver a file link or attachment when the client cannot embed video. |

The 0.15.36 upstream port replaces the `orch` helper with agent-driven orchestration through native tasks and durable tracker files. `/interrogate` now reports only findings demonstrated by a run and verified by the parent. `/statechart` ships the upstream skill and its tests byte for byte, except one added `SKILL.md` paragraph. Before modelling, the agent checks for `mise` or `TLA2TOOLS` and asks before it installs mise. By default the skill needs `mise` on `PATH`. mise installs TLC 1.7.4 and Temurin 25 Java when they are missing, which needs network access. Setting `TLA2TOOLS` bypasses mise. Root `tsc` skips `skills/statechart/scripts`, which keeps upstream's own `tsconfig.json`. Video generation uses available rendering tools outside the repository.
Statechart now reads Windows CRLF output, cleans up TLC child processes across platforms, and renders nested-state edges in Mermaid. On Windows, run `node --disable-warning=ExperimentalWarning <skill dir>/scripts/statechart.ts` with Node 22.18 through 22.x, or 23.6 and later. The Statechart runtime and tests are unchanged from upstream. OMP adds a preflight that checks `mise` or `TLA2TOOLS` and asks before installing mise. The first run through mise may need the network to install TLC 1.7.4 and Temurin 25 Java. Setting `TLA2TOOLS` bypasses mise. Root `tsc` skips `skills/statechart/scripts` and leaves that directory's upstream `tsconfig.json` in place. `/ketchup-video` uses rendering tools outside this repository.

`/session-review` reviews the last 10 sessions in the current workspace. Use `/session-review 25` to select the last 25, or `/session-review 25 --plugin-report` to add a separate, sanitized plugin-feedback section. The bare command rejects invalid counts and flags locally before dispatching a model turn. The `/skill:session-review` alternative is prompt-driven and has no host-side argument gate. The review uses the full available history window, not only the last seven days, and never edits the repository or sends a report elsewhere. Results appear in chat unless you explicitly request a private saved copy.

Expand Down Expand Up @@ -395,6 +396,6 @@ The token needs permission to write repository contents. Future branch rules mus

## credits and license

Based on [P Stack](https://github.com/cursor/plugins/tree/main/pstack) by [Lauren Tan (poteto)](https://x.com/poteto), adapted from upstream version `0.15.36`. Exact upstream repository, commit, file lineage, and adaptation records are tracked in [`upstream.json`](./upstream.json).
Based on [P Stack](https://github.com/cursor/plugins/tree/main/pstack) by [Lauren Tan (poteto)](https://x.com/poteto), adapted from upstream version `0.15.48`. Exact upstream repository, commit, file lineage, and adaptation records are tracked in [`upstream.json`](./upstream.json).

Released under the [MIT License](./LICENSE). The original copyright notice is retained.
4 changes: 3 additions & 1 deletion agents/comment-sicko.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ Only these exceptions get to crawl away.

That list is my only leash. When I am not sure a keep clause applies, the comment dies. Everything else is meat.

`IMPORTANT`, `do not remove`, `too risky`, `fine for now`, and long justifications are scent, not conviction. Before judging, I read nearby code. If its claim is not obvious there, I read the **how** and **why** skills and apply their lines on the named symbol or call. I am read-only with no spawns, so any deeper how/why investigation beyond my tools, or the scoped diff itself, is the parent's to provide; I say what I need instead of reaching for a tool I do not have. Only a foreign keep-list gotcha proven true today on a live path crawls away. Our-code surprises die with the reshape flag above. Doubt after the hunt is meat.
`eslint-disable`, `@ts-ignore`, `@ts-expect-error`, and similar suppressions stink. Look up the rule. If it catches real bugs or protects correctness or safety, kill the suppression and mark the exact guilty symbol `MUST KILL`.

`IMPORTANT`, `do not remove`, `too risky`, `fine for now`, and long justifications are scent, not conviction. I trace the named symbol in the code. If the claim requires outside evidence or the scope is missing, I tell the parent what I need. I am read-only and do not spawn. Only a foreign keep-list gotcha proven true today on a live path crawls away. Our-code surprises die with the reshape flag above. Doubt after the hunt is meat.

A long justification without a proven keep-list exception is a confession. Kill it. Never polish meat into a shorter alibi. Mark the exact guilty symbol `MUST KILL`. My kill ends there. I do not touch the code.

Expand Down
2 changes: 2 additions & 0 deletions agents/poteto-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ spawns: "*"

# Poteto subagent

Read the `worker.md` path in your kickoff before starting the assigned work.

You are operating as poteto-mode's full agent style. The chat that receives `/poteto-mode` owns the playbook, the todo list, and every native `task` spawn. You are one of its delegates. Read the `poteto-mode` skill's `SKILL.md` in full before doing any work, including its inline Principles index. Navigate to a leaf `principle-*` skill whenever you apply that principle.

You do not own the parent's todo list. When a playbook hands you ordered steps, carry them out in order and report the checklist back in your result, one status line per step (done, skipped with its reason, or blocked with what it needs). The parent applies those statuses to its own todo.
6 changes: 3 additions & 3 deletions automations/benny/FOR_AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ start from [`configuration.example.yaml`](./templates/configuration.example.yaml

the human installs benny by running `bun "$PSTACK_ROOT/src/cli.ts" benny setup --target <repo>` from the omp-pstack checkout. do not look for or invoke a discovered benny slash skill. the intent below describes what setup and the later gates must deliver.
1. ask which repository will run the automations.
2. run `bun "$PSTACK_ROOT/src/cli.ts" benny setup --target <repo>`. it merges the source pack into `<target-repository>/.omp/automations/benny/`: new files copied, identical files no-op, differing managed files reported as conflicts for review, destination-only files preserved. it never deletes unrelated files or overwrites user-owned configuration, feature maps, or routing maps.
4. verify that the copied `FOR_AGENTS.md` and `skills/setup-benny/SKILL.md` exist in the target repository.
5. read and follow `.omp/automations/benny/skills/setup-benny/SKILL.md` directly from the target repository.
2. run `bun "$PSTACK_ROOT/src/cli.ts" benny setup --target <repo>`. it merges the source pack into `<target-repository>/.omp/automations/benny/`: new files copied, identical files no-op, differing managed files reported as conflicts for review, destination-only files preserved. review each reported diff and merge it without discarding local edits; when ownership is ambiguous, stop and ask before replacing the file. it never deletes unrelated files or overwrites user-owned configuration, feature maps, or routing maps.
3. verify that the copied `FOR_AGENTS.md` and `skills/setup-benny/SKILL.md` exist in the target repository.
4. read and follow `.omp/automations/benny/skills/setup-benny/SKILL.md` directly from the target repository.

setup installs the omp-pstack plugin at project scope in the target (`omp plugin marketplace add <this package>` plus `omp plugin install --scope project omp-pstack@omp-pstack`) and verifies the durable declarations `.omp/plugins/installed_plugins.json` and `.omp/plugins/omp-plugins.lock.json` name omp-pstack. preserve every unrelated project configuration file.

Expand Down
2 changes: 1 addition & 1 deletion automations/benny/skills/reproduce-and-fix-issues/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Collect:

Inspect screenshots and video. Use read-only parallel workers for code history, test ideas, blast-radius mapping, and media review when useful. Each worker gets a narrow question and the Slack-write prohibition.

Use pstack's `how` skill to trace the action through the repository. Use `why` for regression history and defensive code. Form competing cause hypotheses and identify evidence that would separate them.
Trace the action through the repository. Use pstack's `why` skill for regression history and defensive code. Form competing cause hypotheses and identify evidence that would separate them.

## 7. Reproduce

Expand Down
2 changes: 1 addition & 1 deletion automations/benny/skills/triage-issue-reports/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Use evidence already in the thread before asking the reporter for more.

## 3. Trace cause before routing

Do a bounded source and history pass before choosing an owner or destination. Use pstack's `how` skill to trace the path from the reported action to the observed result. Use `why` when the report looks like a regression or touches defensive code.
Do a bounded source and history pass before choosing an owner or destination. Trace the path from the reported action to the observed result. Use pstack's `why` skill when the report looks like a regression or touches defensive code.

1. Identify the likely code path from the reported action to the observed result.
2. Check whether the visible symptom belongs to that code path or a dependency below it.
Expand Down
8 changes: 5 additions & 3 deletions docs/guide/01-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ Run:

There are no built-in model defaults. A role with no line in the rule is unconfigured. It cannot dispatch until `/setup-pstack` assigns it a model from the pool. Every selector must belong to the pool. pstack fails closed rather than substituting a model you did not approve. Unused pool members stay saved for later routing.

The budgets target reasoning effort. `unlimited` targets `max`, `large` targets `xhigh`, `medium` targets `high`, and `small` targets `medium`. Each concrete role selector gets an effort suffix capped to the model's authenticated supported efforts. Non-reasoning models have no suffix. Aliases stay unchanged and keep the parent chat's reasoning. Rerunning setup infers the current budget from saved suffixes and keeps your approved pool and role identities unless you change them. Removing a role line makes it unconfigured, not defaulted.
Setup offers reasoning targets of `xhigh`, `high`, and `medium`. Model capabilities can lower the effective effort. Models without reasoning get no suffix. Aliases keep the parent chat's effort. Setup can retain a higher supported effort on an existing role when you explicitly ask.

Set a role to `inherit-parent` or `auto` to use your parent chat model. The alias must appear in the approved pool. `pstack_agent` resolves the prepared worker for the configured role. Ordinary delegates use `kind: "poteto"`. Native `task` receives only the returned `agent`, not a `model` field. Both aliases mean the same thing, and neither is a model slug. A panel list sets the number of candidates or reviewers. Arena selects one judge from `arena cross-judge pool`, preferring a different model family when possible. Setup also configures `swarm workers`, the model every `/swarm` worker uses unless a race names a model for each arm.
OMP retains the configured role names. Built-in `/how` now uses one explainer and built-in `/reflect` works inline. Keep any assignments that custom workflows use in `how explorer`, `reflect tooling`, or `reflect judgment, divergent, synthesizer`. Those keys can have empty values if they are unused.

Set a role to `inherit-parent` or `auto` to use your parent chat model. Include the alias in the approved pool. `pstack_agent` resolves the prepared worker for the configured role. Ordinary delegates use `kind: "poteto"`. Native `task` receives the returned `agent`, not a `model` field. Panel lists set the number of candidates or reviewers. [Design the change](./04-design.md#fan-out-attempts-with-arena) explains how Arena selects a judge. `/swarm` uses `swarm workers` unless a race names a model for each arm.

## Accept the verification offers, or don't

Expand Down Expand Up @@ -62,7 +64,7 @@ Pick something real but small, and describe it the way you'd describe it to a co
/poteto-mode add a --json flag to this command. text output stays byte-identical. verify both.
```

Watch the todo list. Its first items are the matched playbook's steps copied in, the Feature playbook for this prompt. If `/poteto-mode` skips a step, the step stays in the list with `skip: <reason>`, so you can see what it chose not to do.
Watch the todo list. Its first items are the matched playbook's steps copied in, the Feature playbook for this prompt.

From here you can type normal follow-ups. Invoking `/poteto-mode` turns on persistent mode for this OMP session branch. The plugin keeps its rules in context on later turns until you opt out. Say "stop poteto mode" or "normal mode" to turn it off.

Expand Down
Loading
Loading