# Set up pstack

pstack ships with Selesai Code. There is no plugin to install and no setup conversation required. In this page you learn where the skills live, how to optionally pick per-role models, and how to run your first task.

## No install step

The pack seeds into your skill directory with Selesai. Type `$` in a prompt to browse its skills, or name one directly:

```text
$poteto-help which skill should i use to review this branch?
```

`$poteto-mode` runs only when you invoke it; ordinary requests never turn it on. If you installed a personal copy of pstack earlier, move it outside the skill search paths so names don't collide, and keep any customizations you still want. The pack's restatement, test-first and teaching skills are named `pstack-bro`, `pstack-tdd` and `pstack-teach` so they never collide with other skills of those names; the bundled `bro` skill keeps its own name.

## Pick your models (optional)

Run:

```text
$setup-pstack
```

[`$setup-pstack`](../../skills/setup-pstack/SKILL.md) lists the models this session can launch with `selesai --list-models`, shows you each role (code delegates, judgment, the review panels), and asks what you want. It writes `~/.selesai/agent/pstack-models.md`, a plain Markdown file of optional `role: value` lines that pstack skills read when they launch a child. Selesai does not auto-load it, and nothing in it changes your own session model.

No model ids are bundled. A missing preferences file is normal: every role then runs on the runtime's selected model. You only override what you care about. A role with no line keeps the runtime's selection. To restore that default, delete the role's line. A rerun of `$setup-pstack` keeps choices it does not name.

A value is one confirmed `provider/id`, optionally with a supported thinking suffix such as `:high`. Set a role to `inherit-parent` or `auto` and pstack omits the subagent `model` field, so the child inherits the runtime's selection. Both values mean the same thing, and neither is a model id. For a panel role the value is a comma-separated list, and one subagent runs per entry, so the list length sets the panel size. Setup also configures `swarm workers`, the default model for every `$swarm` worker unless a race names a model for each arm. A requested model that is unavailable is reported as degraded coverage, never silently substituted.

## Accept the verification offers, or don't

At the end of setup, `$setup-pstack` looks for a way to prove app behavior in your project, either a `verify-*` skill or an existing harness. If it finds neither, it offers once to generate one with [`$create-verification-skill`](../../skills/create-verification-skill/SKILL.md).

Say yes and it writes `.selesai/skills/verify-<app>/`, a project-local skill that teaches agents to drive your app the way a user does. It proves the skill works once before handing it over. Say no and setup moves on. You can run `$create-verification-skill` yourself any time. [Verify and ship](./06-verify-and-ship.md#create-a-project-verification-skill) covers it in depth.

If you're new to pstack, say yes. An agent that can check its own work keeps going until the check passes. An agent that can't hands every result back to you to check by hand. Of everything in this guide, the verification skill pays off the most.

Then setup offers once to generate a formal verification skill with [`$create-formal-verification-skill`](../../skills/create-formal-verification-skill/SKILL.md), unless the project already has one. Tests check the cases someone thought to write. A formal verification skill checks one key property of your code, such as "a job never runs twice at once", in every case within a stated scope. Say yes when your code has concurrency, retries, a state machine, or a parser, where a bug is costly and tests rarely reach the case that breaks. Otherwise say no, and run it later if that changes. [Verify and ship](./06-verify-and-ship.md#prove-a-property-with-a-formal-verification-skill) covers it.

## Keep the cost in check

pstack spends extra tokens on subagents and review panels. That's the price of the rigor. To spend fewer:

- Rerun `$setup-pstack` and pick cheaper models for the roles that matter less. A strong model in the main chat with cheaper, faster models in the code roles is a good split.
- Set a role to `auto` or `inherit-parent`, or leave it unset, so it runs on the runtime's selection.
- Shorten a panel list. Each entry runs one subagent.
- Save `$poteto-mode` for work that needs rigor. A small, obvious edit doesn't.

## Run your first task

Pick something real but small, and describe it the way you'd describe it to a colleague:

```text
$poteto-mode add a --json flag to this command. text output stays byte-identical. verify both.
```

Watch the todo list (or the in-session checklist). 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. `$poteto-mode` is per-invocation and task-scoped: it applies to the task that message starts and fades as the chat moves on. There is no persistent mode in Selesai (Cursor's Custom Modes are explicitly unsupported), so start each new task with `$poteto-mode` again. Invoking it authorizes delegation for that task; commits, pushes, PRs, installs and other side effects still need your specific permission.

Next: [Route work through `$poteto-mode`](./02-poteto-mode.md).
