█

AI/TLDR

Buy me a coffee
Buy me a coffee

pstack (Claude Code port)

A port of Lauren Tan's Cursor pstack skill stack to Claude Code, Codex, Pi, GitHub Copilot and other agent harnesses

Agent Skills & PluginsOpen source
Latest
v0.9.88
Updated
16 Oct 2026
Language
JavaScript
License
MIT

What's new

v0.9.8816 Oct 2026

Aligned per-role model defaults with upstream pstack, adding a `worker` model tier for routine code roles, and added a check to `principle-prove-it-works` to read the real state and exit code before reporting success.

IN SHORT

What is pstack (Claude Code port)?

pstack (Claude Code port) is a port of Lauren Tan's Cursor pstack skill stack to Claude Code, Codex, Pi, GitHub Copilot and other agent harnesses. It tracks upstream and also carries named policy forks, each declared in the repository's `tools/forks.json`, with Cursor-specific primitives translated for the other tools. It sits in the Agent Skills & Plugins category of the Agents & Automation tools and is open-source, written in JavaScript and licensed MIT.

Updated Markdown version ↗

Overview

pstack is Lauren Tan's opinionated Cursor skill stack, published in Cursor's plugins repository, for getting more reliable results out of coding agents. pstack-claude, maintained by Michael Denyer, is an MIT-licensed port of it for Claude Code, Codex, Pi, GitHub Copilot and other harnesses. It tracks upstream and also carries named policy forks, each declared in the repository's `tools/forks.json`, with Cursor-specific primitives translated for the other tools.

Diagram of poteto-mode turning a request into verified work: choose a playbook (plan, bugs, features, refactor), plan and delegate with architect, arena and swarm, then review and verify with interrogate, tests and measurements, with project playbooks, setup-pstack and the how, why and unslop skills underneath
How poteto-mode works on Claude Code, Codex and Pi: pick a playbook, plan and delegate, then review and verify.pstack-claude README ↗

The entry point is `poteto-mode`. You tell it your goal and it picks a playbook: planning, bugs, features, refactoring, performance issues, investigations, prototypes, PR maintenance, shipping or longer projects. For a bug, the README describes it reproducing the failure, using the `how` and `why` skills to investigate, delegating the fix and rerunning the failing case, bringing in `architect` first if the fix crosses a function boundary. You get the fix plus the failing and passing evidence.

The reference documentation lists 39 public skills and 24 `principle-*` reference skills. Beyond the core loop they include `arena` (parallel attempts at the same task), `interrogate` (three different models try to break a diff), `swarm`, `tdd`, `blast-radius`, `unslop`, `babysit` for open PRs and `fix-ci`. The Claude Code, Codex and Copilot plugins install a session-start routing hook that invokes `poteto-mode` for multi-file changes, design choices, bugs with an unknown cause and performance issues. On Pi, an extension injects the same instruction and adds the subagent, question and wake-up tools the skills rely on. pstack has no server or telemetry; anything the skills read goes to your model provider.

What it does

  • `poteto-mode` routes a request to a playbook for planning, bugs, features, refactoring, performance, investigations, prototypes, PR maintenance or shipping
  • 39 public skills, among them `architect`, `arena`, `swarm`, `interrogate`, `tdd`, `blast-radius`, `thermos`, `fix-ci` and `babysit`, plus 24 principle references
  • Native plugins for Claude Code, Codex and GitHub Copilot with an automatic routing hook, and a Pi package whose extension supplies subagent, question and wake-up tools
  • A shared `~/.agents/skills/` install for OpenCode, Gemini CLI, Prime Agent and skills-only Codex; the docs record which runtimes were verified in live sessions
  • `setup-pstack` sets the model and reasoning effort per role, or turns automatic routing off
  • Tracks the upstream Cursor pstack, with every deliberate divergence declared in `tools/forks.json`

Getting started

Install the plugin for the agent you use; each harness has its own path in the README (https://github.com/michael-denyer/pstack-claude). Then ask for `poteto-mode` with your goal.

Claude Code

Run these inside Claude Code.

texttext
/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claude

Codex

Codex asks you to trust the routing hook through `/hooks` before it runs.

bashbash
codex plugin marketplace add michael-denyer/pstack-claude
codex plugin add pstack@pstack-claude

Pi or GitHub Copilot

The Copilot plugin covers both the Copilot CLI and the GitHub Copilot app; start a new session afterwards. Copilot ships no default pstack models, so the first skill that needs one runs `setup-pstack`.

bashbash
# Pi
pi install git:github.com/michael-denyer/pstack-claude

# GitHub Copilot
copilot plugin marketplace add michael-denyer/pstack-claude
copilot plugin install pstack@pstack-claude

OpenCode, Gemini CLI and other harnesses

These read skills from `~/.agents/skills/`. Clone the repo and link the skills; to update, `git pull` and run the loop again. There is no routing hook here, so ask for `poteto-mode` by name.

bashbash
git clone https://github.com/michael-denyer/pstack-claude
cd pstack-claude
mkdir -p ~/.agents/skills
for s in plugins/pstack/skills/*/; do
  target=~/.agents/skills/"$(basename "$s")"
  test -e "$target" || test -L "$target" || ln -s "$(pwd)/$s" "$target"
done

Give poteto-mode a task

It chooses the playbook, investigates, delegates the fix and reruns the failing case. Run `setup-pstack` (`/pstack:setup-pstack` in Claude Code) to change model defaults or effort per role.

texttext
Use poteto-mode to fix the search filter resetting when I change pages.

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Use Lauren Tan's pstack workflows from Claude Code, Codex, Pi or Copilot instead of Cursor
  • Make an agent reproduce a bug, investigate it and show failing and passing evidence before calling the fix done
  • Have several models attack a diff with `interrogate`, or run parallel attempts with `arena`, before merging
  • Keep one set of agent workflows across several coding harnesses from a single skills tree

How pstack (Claude Code port) compares

pstack (Claude Code port) alongside other open-source agent skills & plugins tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Skills for Real Engineers★ 336kMatt Pocock's everyday agent skills for coding agents, covering alignment grilling, planning, code review and research — small, composable and meant to be edited.
Superpowers★ 331kA composable skills plugin that installs a spec-first, TDD, subagent-driven development methodology into Claude Code, Codex, Cursor, Gemini CLI and other coding harnesses.
ECC★ 313kAn installable plugin that adds 68 agents, 286 skills, hooks, rules, memory and an agent-config security scanner to Claude Code, Codex and other coding harnesses.
Karpathy Coding Guidelines★ 237kA Claude Code plugin and CLAUDE.md rule set built from Andrej Karpathy's observations on LLM coding pitfalls: think before coding, keep it simple, make surgical changes, and work to verifiable success criteria.
Ponytail★ 202kA skill and plugin that makes a coding agent take the laziest correct route — a seven-rung ladder from "does this need to exist?" to "the minimum that works" — while keeping validation, security and accessibility off the chopping block.
Caveman★ 124kA skill plus local proxy that shortens an AI coding agent's prose while leaving code, commands and paths untouched — the rule file cuts what the agent writes, the proxy compresses what it reads.
Taste Skill★ 124kA collection of portable Agent Skills for frontend work: design direction, layout, typography, motion and density dials, plus image-generation skills that produce reference boards for a coding agent to implement.
pstack (Claude Code port)★ 5kA port of Lauren Tan's Cursor pstack skill stack to Claude Code, Codex, Pi, GitHub Copilot and other agent harnesses