mstack
mstack is a Claude Code port of pstack, by poteto. Same premise: there's a growing sense that AI writes too much slop code, and throughput without quality isn't a goal worth having. If you want to go fast, go deep first. mstack helps you write less, but higher quality code.
mstack gives you fearless parallelism. When you can go deep on one agent and trust it to write good, verifiable code, you can truly parallelize with confidence. Start multiple agents with poteto-mode and trust that they'll apply rigorous engineering principles to their work.
The skills, playbooks, and principles are poteto's. What changed is the harness: Claude Code paths and tooling, Claude models throughout, background subagents and worktree isolation in place of Cursor's cloud agents, and the three control skills vendored in so nothing depends on another plugin. See NOTICE for the full provenance and the list of modifications.
Upstream's invitation was "fork it. improve it. make it yours." This is that. PRs welcome.
install
/plugin marketplace add MatrixMagician/mstack
/plugin install mstack
Or point Claude Code at a local checkout with claude --plugin-dir /path/to/mstack.
get started
one step: use /poteto-mode whenever you're doing anything that requires rigor.
new here? the mstack guide walks you through a first real task, from setup and prompting through verification and overnight runs. stuck, or unsure which skill fits? ask /poteto-help.
that's it. the other skills are situational; the mode skill uses them for you as needed. out of the box the mode splits work by tier: code goes to sonnet, precisely-specified sequences to opus, prose and judgment to fable, and cheap fan-out to haiku. the default review panel is fable / opus / sonnet. these are tier aliases, so they follow the current release and never go stale — there is no model-setup step to run.
usage
use /poteto-mode at the start of a task. it reads your request, picks from a set of playbooks, and runs the other skills as the steps need them.
this skill is the main shortcut. i use it whenever i need the agent to do rigorous engineering work. it comes with twenty-two playbooks:
/poteto-mode this pr has a subtle bug where the scroll drifts every 750ms even when idle. repro
first, then fix and verify.
/poteto-mode i'm going to bed. land the stack even if ci flakes. i want everything merged by
morning.
the twenty-two playbooks
| playbook | for |
|---|
| investigation | a read-only question. how does x work, why was y built this way, are we sure. |
| bug fix | reproduce a defect, root-cause it, and fix with runtime evidence. |
| perf | trace a measured slowness and improve it against a baseline. |
| hillclimb | sustained, scientific improvement of one metric against a target, looping hypotheses with before/after measurement and one commit per accepted win. |
| runtime forensics | diagnose a live symptom (leak, idle-cpu spin, glitch) from instrumentation. |
| trace forensics | diagnose a captured profiling artifact (cpuprofile, trace, spindump, heap snapshot). |
| feature | new or changed behavior, built from a named data shape. |
| refactoring | a behavior-preserving change to structure or shape. |
| prototype | a throwaway sketch to make a design or behavioral decision cheaply, or to settle an empirical fork by observing it. |
| visual parity | pixel-exact ui equivalence between two implementations. |
| authoring a skill | writing or editing a SKILL.md. |
| eval | test how a skill or prompt change affects agent behavior, blinded. |
| babysit | drive a pr or a stack to merge-ready: conflicts, review threads, ci. |
| shipping | independently verify a green stack, then land the contiguous verified run bottom-up through github by default or origin when available. |
| autonomous run | drive a long task to completion without stopping. |