t3-pstack
pstack is Lauren Tan's set of agent skills for Cursor: poteto-mode for everyday work, plus skills for design, review, parallel work, and explaining code.
t3-pstack is the same skill pack as a plugin for T3 Code. It works with both the Claude and the Codex provider, and this repo merges each new upstream version.
Install
If you already use another pstack port, disable it first. Both register pstack:* skills.
claude plugin disable pstack@<other-marketplace>
Then install the plugin for each provider you use in T3 Code.
-
Add the marketplace and install the plugin.
# Claude
claude plugin marketplace add pmwoz/t3-pstack
claude plugin install pstack@t3-pstack
# Codex
codex plugin marketplace add pmwoz/t3-pstack
codex plugin add pstack@t3-pstack
-
On Codex, run codex once in a terminal and trust the pstack hook at the startup prompt, or later with /hooks. Codex runs the hook only after you trust it. Until then, the line that step 4 adds to your Codex AGENTS.md still points the agent at the T3 adapter.
-
Start a new thread in T3 Code.
-
Pick your models. Type /pstack:setup-pstack (Claude) or $pstack:setup-pstack (Codex). It reads the models T3 offers, asks for a reasoning budget, and writes ~/.agents/pstack-models.md with one model per role. Both providers read that file. Run it again to change your models.
Start a task
Type /pstack:poteto-mode (Claude) or $pstack:poteto-mode (Codex), then the goal and a check that can pass or fail. The check tells the agent when the work is done.
/pstack:poteto-mode Fix the timezone bug in the date parser. Done when bun test passes.
Every skill starts the same way, with /pstack:<name> on Claude or $pstack:<name> on Codex. Most skills start only when you type them. The agent can start setup-pstack, deslop, control-cli, and control-ui on its own, and skills start other skills during a task.
For questions about pstack, such as which skill fits a task, type /pstack:poteto-help (Claude) or $pstack:poteto-help (Codex) followed by the question.
Skills to try first
| Skill | What it does |
|---|
poteto-mode | Short answers, subagents where they help, simple code, and verified results. Start each new task with it. |
architect | Sketches types, signatures, and module layout before writing code. |
arena | Runs several attempts at one task in parallel, picks the best, and merges in the strongest parts of the others. |
interrogate | Has reviewers on different models challenge a change and look for blind spots. |
how | Explains how a piece of code works and where new code belongs. |
why | Explains why code is the way it is, from source control, issues, docs, and anything else your MCP servers reach. |
swarm | Splits work across parallel workers and returns one report. |
recall | Rebuilds what you were working on from your chat history, your PRs and branches, and past bug reports and fixes. |
The full list is in plugins/pstack/skills. The principle-* skills hold the principles that poteto-mode applies.
What changes under T3 Code
The skills are written for Cursor. One file, t3-adapter.md, tells the agent how each Cursor feature maps to T3 Code.
- A subagent runs as a T3 child task (
delegate_task). Each child picks its own provider and model, so one review panel can mix Claude and Codex.
/loop around a pull request becomes a T3 PR watch. /loop on a fixed interval becomes a T3 scheduled task.
- Cursor cloud agents become local child tasks. A child that writes code gets its own git worktree.
Everything else stays as upstream wrote it. drift.json lists every file that differs from upstream, with the reason.
Update
# Claude
claude plugin marketplace update t3-pstack && claude plugin update pstack@t3-pstack
# Codex
codex plugin marketplace upgrade t3-pstack
Develop
This section is for work on the port itself.
How the port stays close to upstream
upstream/ holds an exact copy of the upstream files at the commit pinned in pins.json. The plugin in plugins/pstack/ is that copy plus two kinds of change.
- A mechanical transform in
tools/lib.ts. It sets each skill's frontmatter name to its directory name, because Codex names a skill by that field and upstream's poteto-mode says Poteto Mode. It also adds agents/openai.yaml with allow_implicit_invocation: false next to each skill that upstream marks disable-model-invocation: true. Codex ignores the upstream flag and reads this file instead.
- Drift, meaning every other difference. Each drifted file has its reason in
drift.json.