← Catalog

pi-mstack

Pinned pstack skills for Pi with native scheduling and delegation

Package

Install

Install with PiG

pig install npm:pi-mstack

Install with Pi

pi install npm:pi-mstack
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "skills": [
    "./generated/skills"
  ],
  "prompts": [
    "./extensions/pstack/prompts"
  ],
  "subagents": {
    "agents": [
      "./generated/agents"
    ]
  },
  "extensions": [
    "./extensions/pstack/index.ts",
    "./extensions/pstack/context.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.4.0 (README.md). PiG does not review it.

pi-mstack

Bring pstack’s task playbooks to Pi—without replacing its native agents or scheduling.

npm CI MIT licence

Quick start · Documentation · Changelog · Report an issue

Why pi-mstack?

If you use Cursor pstack’s review and implementation workflows but work in Pi, this package brings those playbooks into your existing environment. Use a skill for one task, or enable Poteto Mode to keep the playbook active for a session branch.

  • Access 58 upstream skill names, including an explicit unsupported notice for the bot workflow.
  • Keep mode branch-local, send multiline tasks, and save your preferred default.
  • Choose exact authenticated models and ordered review panels instead of Cursor model aliases.
  • Diagnose missing capabilities and blocked model choices before relying on them.
  • Inspect the pinned upstream source and reproduce reviewed updates.

This is not Cursor cloud agents, Benny automation, Bugbot, or a substitute for required product verification. Native agents and scheduling come from the separately installed extensions below.

Install

Requires Node.js 22.19 or later and Pi 1.5.0. Install from npm through Pi’s package manager:

pi install npm:@trevonistrevon/pi-loop@0.7.19
pi install npm:pi-subagents@0.88.1
pi install npm:pi-mstack

Restart Pi after installation. Disable competing pstack ports first; conflicting mode or setup resources block activation rather than silently choosing a package.

See installation and updates for version pinning, checkout installation, and troubleshooting, or compatibility for tested combinations.

Quick start

In Pi, run /pstack doctor to check that the extension loaded. Then choose your next step:

GoalCommand
Configure role models and review panels/setup-pstack
Start a task under the playbook/skill:poteto-mode Fix the parser bug and prove the regression.
Use a standalone skill/skill:how Explain this parser

Setup asks for confirmation before saving. Task and skill requests use your configured model and may incur provider charges. For a no-inference walkthrough, follow your first Pi session.

Usage

Bare /poteto-mode enables persistent mode without sending a model request. /poteto-mode off disables it for the active branch. Forks inherit their ancestors’ mode choices.

To enable mode and start a task, put the task on the same line or a new line. For example:

/poteto-mode
Fix the parser bug and prove the regression.

Only the canonical /poteto-mode route is owned. The accidental /potete-mode alias is removed. These routes work in TUI, RPC, print, and JSON modes. If Pi is busy, the request is refused without changing mode or queuing the task; retry after settlement.

Use /pstack default on or /pstack default off to save the default; /pstack default shows it. Sessions and branches without an explicit choice follow that preference. An explicit /poteto-mode off always overrides a default of on.

Use /goal <text> to set branch intent without inference, /goal to show it, or /goal --clear to clear it. The first accepted task or goal names a never-named session locally, preferring a single Jira-style identifier. Existing names and explicit clears are preserved.

Configure terminology, local memory, and native MCP retrieval in the separate pstack/environment.json. See goals, naming and context for the schema and privacy limits, and configure child context tools for native tool selection. Context never grants authority.

Use the named pstack.ground workflow for bounded repository evidence and optional explanation. See repository grounding for arguments, native acceptance, override behavior, and evidence limits.

Use the packaged pstack-local-explorer and pstack-local-worker agents for ordinary local exploration and implementation. See local explorer and worker agents for their tool defaults, native overrides, and limits. These defaults are not a sandbox.

Two optional flags are off by default. pi --pstack-plan adds a pstack_plan tool that keeps one validated ordered plan on the session branch across compaction, reload, navigation, and forks, with a compare-and-append revision that rejects stale writes. pi --pstack-idle-compact compacts once at 80 percent context usage when the agent settles idle, and rearms at or below 70 percent. See saved plans and idle compaction for the schema, privacy limits, stale-write recovery, and the native abort caveat.

Documentation

Choose the kind of help you need:

NeedStart here
Tutorial — learn by doingYour first Pi session
How-to — complete a taskInstall or update · Configure models
Reference — look up factsCommands and configuration · Local explorer and worker agents · Saved plans and idle compaction · Compatibility
Explanation — understand the designSource, adaptation, and execution

Configuration lives in pstack/models.json under Pi’s agent directory, normally ~/.pi/agent. Missing configuration inherits the exact current parent model; invalid explicit choices remain blockers. Native preflight remains authoritative, worktrees are not cloud sandboxes, and pi-loop needs an active host.

The documentation index also covers maintenance, verification, and releases. The generated Pi adapter defines tool mappings and mandatory gates.

Development

npm ci --ignore-scripts
npm run check
npm run typecheck
npm test

Tests cover packed-package CLI, PTY, RPC, SDK, and native dependency contracts using a local scripted provider, without paid inference or ambient credentials. They require Git, tar, Python 3, and a POSIX environment. Upstream renderer, Java, TLC, and forge integrations are separate from npm test.

Open a pull request for changes. Edit port/, tools/, or extensions/, not the snapshot or generated resources. Follow maintenance for reviewed updates and recovery, and verification for evidence limits.

Licence and attribution

MIT. The original Cursor pstack attribution and 573 source records come from commit 2776ddd2355d6d6c8747d3964600f28daf62f049. The manifest records literal-byte hashes and Git modes; npm packaging requires one documented storage-name exception for .gitignore.