pstack
pstack coordinates engineering work in Codex and Claude Code. Give it a goal and a way to check completion. poteto-mode selects a playbook, calls the skills and workers the task needs, and returns evidence for the result.
This adaptation makes the original workflows available in both hosts while you choose workers through setup. Keep or change role assignments as model access and available quota change.
This is an unofficial adaptation of Lauren Tan's pstack. It also bundles control-ui, control-cli, and deslop from cursor-team-kit.
Choose your host to get started:
- Codex. Install
pstack-codex and select workers with setup.
- Claude Code. Install
pstack-cc in the terminal or Claude desktop's local Code sessions.
The host is where you talk to the parent agent. Each workflow role has its own worker executor, model, and reasoning effort. Setup saves these choices separately for each host and leaves the parent chat model unchanged.
flowchart LR
CX[Codex host] --> P["pstack playbook and skills<br/>Role settings"]
CC[Claude Code host] --> P
P --> CW["Claude workers<br/>Selected Claude model"]
P --> XW["Codex workers<br/>Selected Codex model"]
P --> AW["Antigravity workers<br/>Selected exact agy model"]
AW --> V
CW --> V[Parent reviews and verifies]
XW --> V
V --> R[Answer, change, or PR with evidence]
For example, start a development task in Codex with:
$pstack-codex:poteto-mode the export writes duplicate rows when a retry lands mid-run. reproduce it, then fix and verify.
In Claude Code, use /pstack-cc:poteto-mode with the same request. Expect the agent to reproduce the issue, check the change against the real behavior, and report the evidence and remaining limits. The Codex guide and Claude Code guide explain the playbooks and review steps.
pstack reuses your host and official CLI authentication, including subscription access supported by your account. API-key or Console credentials follow their own billing. Model access and usage limits still depend on your account and configuration. See Codex authentication and Claude Code authentication.
Install in Claude Code
Use the Claude Code terminal client or Claude desktop's Code tab with a Local session. Ordinary Claude chat is not a pstack host. Setup needs Git, Node.js 24.12+, and the claude CLI. Native worker effort requires Claude Code 2.1.292+ with delegation effort support. Codex workers also need a shared Codex login and a worker server. By default that is the complete matching-platform codex-app-server package from official Codex releases, which keeps worker threads out of Codex history. Where it cannot be downloaded, setup saves codexWorkers: "visible" and uses the npm Codex CLI's codex app-server, and worker threads appear in Codex history. See the setup guide for installation, login, and PATH troubleshooting.
In your terminal, add the marketplace from the repository's default branch and install the plugin:
claude plugin marketplace add https://github.com/ystory/pstack.git
claude plugin install pstack-cc@pstack-cc
In Claude desktop, open Customize, then Plugins, Add plugin, Add marketplace, and Add from a repository. Enter ystory/pstack, select Sync, and install the pstack-cc entry. See Desktop setup for UI variants.
Start a local Code session in your project and run:
/pstack-cc:setup-pstack
Setup offers Claude Code, Codex, and Antigravity as worker executors. The host running setup prepares missing selected tools from official sources, makes them available to future workers, and checks readiness. Only interactive authentication or operating-system approvals need your participation. Codex workers use the server that the saved codexWorkers setting selects, with shared Codex authentication and persistent history. Pstack does not distribute or pin native server versions or manage their updates. Then choose supported exact models, role assignments, and a reasoning budget across the 13 roles. Review the proposal before saving. Preferences live at ${CLAUDE_CONFIG_DIR:-~/.claude}/pstack-cc/models.json, independently of Codex-host preferences.
Start a new session after setup so Claude discovers the registered agents. Try a read-only question about a real module in your project:
/pstack-cc:how explain how src/cli.ts handles --help. Do not edit files.