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.
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.

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.
/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claudeCodex
Codex asks you to trust the routing hook through `/hooks` before it runs.
codex plugin marketplace add michael-denyer/pstack-claude
codex plugin add pstack@pstack-claudePi 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`.
# 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-claudeOpenCode, 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.
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"
doneGive 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.
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.
| Tool | Stars | What it does |
|---|---|---|
| Skills for Real Engineers | ★ 336k | Matt Pocock's everyday agent skills for coding agents, covering alignment grilling, planning, code review and research — small, composable and meant to be edited. |
| Superpowers | ★ 331k | A 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 | ★ 313k | An 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 | ★ 237k | A 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 | ★ 202k | A 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 | ★ 124k | A 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 | ★ 124k | A 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) | ★ 5k | A port of Lauren Tan's Cursor pstack skill stack to Claude Code, Codex, Pi, GitHub Copilot and other agent harnesses |
