Skip to content
FossShelf
Home / Categories / For AI Engineers

Pstack Claude

Structured coding workflows for Claude Code, Codex, and Pi

Replaces —

4.40K starsMITreviewed 5 Oct 2026last commit 13 Nov 2026
Screenshot of Pstack Claude

Who it's for

Developers fixing bugs that need reproduction evidence

Poteto-mode's bug playbook reproduces the failure first, uses how and why to trace root cause, then delegates the fix and reruns the failing case to confirm. You receive both the fix and the failure-to-passing evidence in the same session, replacing the pattern of applying a guess and hoping it holds.

The bug is already fully understood and isolated. If you have a confirmed root cause and need only a one-line patch, poteto-mode's investigation steps add overhead without benefit.

Teams running PR review and maintenance on Claude Code

The PR maintenance playbook covers review, comment resolution, and pre-merge checks as a structured sequence. On Claude Code, poteto-mode routes PR work through the appropriate skills automatically, including bringing in architect if a change crosses a function boundary.

Your PR workflow is already fully automated by CI or a dedicated review bot. Pstack-claude adds structure to agent-driven review; it does not replace automated linting or CI gates.

Developers using multiple coding agents

The same pstack skill set works on Claude Code, Codex, Pi, OpenCode, and Gemini CLI. A developer or team that switches between coding agents gets the same poteto-mode routing and playbooks on each, without maintaining separate prompt files or configuration per tool.

You are committed to a single coding agent long-term. The multi-platform portability is not useful if you have no plans to work with other agents.

The problem

Coding agents answer whatever prompt they receive with no enforced workflow. Asking an agent to fix a bug typically yields a change applied directly to the code, without first reproducing the failure, verifying the root cause, or confirming that the fix holds under the original failing conditions. The same gap shows up across every task type: a feature request skips planning, a refactor skips checking for unintended side effects, and a performance investigation skips measuring before proposing changes. Teams shipping production code need agent outputs they can verify, not outputs they have to re-check by hand on every run. Without a structured workflow plugin, sessions start from scratch each time, with no investigation steps enforced before a change reaches the repository.

How it works

poteto-mode goal routing

The main entry point. Tell poteto-mode your goal and it selects the matching playbook, from bug fixes to feature planning, refactoring, PR maintenance, and longer project runs. It delegates to architect, arena, or swarm as the task requires, and uses how and why for investigation before any change is applied.

Playbooks for every development task

Named workflows cover bug fixes, feature planning, refactoring, performance investigations, prototypes, PR maintenance, and shipping. Each playbook enforces a defined sequence: plan, delegate, verify. For concurrency bugs and invariants beyond test coverage, a companion plugin (agent-formal-verify) adds TLA+ and Lean proofs.

how and why investigative skills

Before a fix is applied, poteto-mode uses the how skill to reproduce the failure and the why skill to trace root cause. This gives you failure evidence and passing evidence on the same run, not just a diff. The skills are available as standalone slash commands for use outside poteto-mode.

Sub-agent delegation with architect, arena, and swarm

Architect plans cross-boundary changes before implementation begins. Arena runs multiple sub-agents in parallel to explore solutions or perform code review. Swarm coordinates larger task decompositions. Each sub-agent type is invoked by poteto-mode's routing or called directly as a slash command.

Per-role model and reasoning effort configuration

setup-pstack sets default models and reasoning effort per agent role. For example, arena runners can be set to Opus at extra-high effort while the session default stays lower. Claude Code dispatches these through pstack:effort and pstack:poteto-agent agents declared in the plugin manifest.

Features

  • poteto-mode goal routing
  • Playbooks for every development task
  • how and why investigative skills
  • Sub-agent delegation with architect, arena, and swarm
  • Per-role model and reasoning effort configuration

Recommended for this setup

Strengths

  • Multi-platform: one plugin set for Claude Code, Codex, Pi, and more: The same skill set works across Claude Code, Codex, Pi, OpenCode, and Gemini CLI. On Claude Code and Codex the plugin installs a routing hook; on Pi the extension injects the same routing instruction. A team using multiple agents gets the same structured workflows without maintaining separate prompt files per platform.
  • MIT license, no infrastructure: The plugin is MIT licensed with no server, no telemetry, and no cloud dependency. Scripts run locally; PR tools use the developer's existing GitHub CLI login. Any session data goes to the model provider under the developer's own account. There are no subscription tiers or hosting fees specific to pstack-claude.
  • Tracks upstream with named policy forks: Pstack-claude tracks Lauren Tan's upstream Cursor pstack repository and declares any divergences as named forks in tools/forks.json. This keeps the port auditable: you can see exactly where pstack-claude differs from the original and why, rather than relying on undocumented behavioral divergences.
  • Active project with 1,100+ stars: The repo reached 1,187 GitHub stars and 135 forks since its May 2026 launch, with the last push in October 2026. 10 open issues indicates an active project without a large unaddressed backlog. Contributor guidelines and a security disclosure policy are documented in CONTRIBUTING.md and SECURITY.md.

Trade-offs

  • Requires an existing coding agent and account: Pstack-claude is a plugin, not a standalone tool. It requires an active Claude Code, Codex, or Pi account. Developers without an existing coding agent cannot use pstack-claude in isolation. The plugin also requires trusting the routing hook through the agent's /hooks interface, which Codex prompts you to approve before it runs.
  • Install via session commands, not shell scripts: Installation on Claude Code uses /plugin slash commands typed inside an agent session, not shell commands you can script or automate in CI. Codex offers a terminal-level codex plugin command, but Claude Code's install path has no non-interactive equivalent documented in the README.
  • JavaScript-only implementation: The plugin is written in JavaScript with no TypeScript types exported. Teams using TypeScript-centric toolchains will not get type-checked integration with the plugin's internal APIs. The skills-and-hooks model suits JavaScript well, but it limits contribution from teams that require typed interfaces.

Tech stack

Languages
JavaScript, TypeScript, Lean, TLA, Shell, Mermaid, Awk, Python, PowerShell, Java
Frameworks
—
Databases
—
Tooling
—

FAQ

Does pstack-claude replace Claude Code?

No. Pstack-claude is a plugin that runs on top of Claude Code, not a replacement for it. It adds structured workflow skills to Claude Code sessions, but you still need an active Claude Code account and the agent running in your terminal. Think of it as a set of verified playbooks that improve what Claude Code already does, not a substitute for it.

Which coding agents does pstack-claude support?

Claude Code, Codex, Pi, OpenCode, and Gemini CLI are all supported, plus any coding agent that accepts a shared skills-only install (documented in docs/reference.md#shared-skills-installation). On Claude Code and Codex, the routing hook installs automatically; on Pi, the extension injects the same routing instruction. Prime Agent is also listed in the README with a reference to shared installation.

How do I configure the model and reasoning effort per role?

Run setup-pstack (or /pstack:setup-pstack inside Claude Code) to set model defaults and reasoning effort per agent role. For example, you can set arena runners to Opus at extra-high effort while keeping the session default at a lower level. Roles without an explicit setting inherit the session's current effort. Automatic routing can also be turned off from setup-pstack.

Is pstack-claude free to use?

Yes. The plugin itself is MIT licensed with no subscription or licensing fee. You do pay for whatever coding agent you run it on, such as a Claude Code subscription. The plugin adds no cost on top of that. Scripts run locally with no telemetry sent to any pstack-claude server, because there is no pstack-claude server.

What is poteto-mode and how does it work?

Poteto-mode is the main entry point for pstack-claude. You describe your goal and it selects the correct playbook automatically: bug fixes run through reproduce-investigate-fix-verify; features go through planning and delegation; refactors check for side effects before committing. For concurrency bugs and formal invariants, a companion plugin (agent-formal-verify) extends this with TLA+ model checking and Lean proofs.

Similar tools

More in AI Engineers