michael-denyer / pstack-claude
git clone https://github.com/michael-denyer/pstack-claude.git
v0.9.95 · today
🔥 on GitHub Trending today
Claude Code, Codex, Copilot, Pi, OpenCode, Gemini, and Prime Agent versions of Poteto's pstack. Rigorous agent workflows with Cursor primitives translated for other harnesses.
—
stars, 24h
+1.2k
stars, 7 days · #59
+2.6k
stars, 30 days · #132
3.2k
★ total · +61% this week
298
forks · 7 open issues
Star history starts 2026-10-20; the chart appears after the second daily snapshot.
LanguageJavaScript
LicenseMIT
Created2026-05-26 (4mo ago)
Last pushtoday
Watchers5
OwnerUser
Seen on GitHub Trending
- 2026-10-20 — #6 monthly in javascript · +2,575 ★
- 2026-10-20 — #1 weekly in javascript · +1,198 ★
GitHub topics
agent-pluginagent-skillsagentic-aianthropicchatgptclaudeclaude-codeclaude-code-skillsclaude-pluginclaude-skillscode-reviewcodexcodex-clicodex-plugincodex-skillscoding-agentdeveloper-toolsgemini-cliopencodepstack
Links
README excerpt
# pstack Lauren Tan's pstack is an opinionated Cursor skill stack that improves agent outcomes. This is a port for Claude Code, Codex, Pi, GitHub Copilot and other agent harnesses. It tracks upstream and also carries named policy forks, each declared in `tools/forks.json`. Tell `poteto-mode` your goal and it will invoke the correct workflow for the task. It keeps your code concise, simple and verified. For concurrency bugs and invariants that tests cannot reach, `/create-formal-verification-skill` picks the riskiest property in your code, verifies it with a tool that fits, and leaves a project skill the next agent reruns. The separate agent-formal-verify plugin goes deeper on the method, with guided TLA+ model checking, Lean proofs, and Kani for Rust. ## Install Claude Code Run in Claude Code 2.1.292 or later: [code] Codex Run in your terminal: [code] Pi Run in your terminal: [code] The package loads the skills and the pstack Pi extension, which adds the subagent, question, and wake-up tools the skills use, plus `/loop` and the routing instruction. Invoke a skill with `/skill: `. GitHub Copilot Run in your terminal: [code] This installs pstack for the Copilot CLI and the GitHub Copilot app, which share `~/.copilot`. Start a new session afterwards. Copilot ships no default pstack models, so the first skill that needs one runs `setup-pstack` to pick from the models your account lists, and later sessions reuse that choice. The Copilot build is tested on Copilot CLI 1.0.87 through 1.0.92. On those versions the routing hook's context reaches the session alongside other plugins' session-start context. If a later version keeps only one plugin's context, `setup-pstack` offers a standing instruction for `~/.copilot/copilot-instructions.md` instead. On 1.0.92, once the CLI caches its computer-use experiment assignment, `copilot -p` sessions list no plugin skills and a `skill` call returns "Skill not found". Interactive sessions, the hooks, and the agents are unaffected. Other harnesses OpenCode (the CLI and the desktop app), Gemini CLI, Prime Agent, and skills-only Codex installs read skills from `~/.agents/skills/`. Run in your terminal: [code] To update, run `git pull` in the clone, then run the `for` loop again to link skills added since the last run. These installs have no routing hook, so ask for `poteto-mode` by name or add a standing instruction to the harness's instruction file. See shared installation for per-harness notes and uninstalling. ### Configure pstack routes tasks to `poteto-mode` automatically. At session start, a hook injects an instruction that points the agent at it: the plugin's hook on Claude Code, Codex, and GitHub Copilot, and the pstack extension on Pi. Codex runs the hook only after you trust it through `/hooks`. Other harnesses have no hook. Run `setup-pstack` to turn automatic routing on or off, change model defaults, or set a reasoning effort per role (`arena runners: opus @xhigh, fable @max`). ## Getting