pstack brings multi-agent workflows, engineering playbooks, and consistent supervision and alignment to GitHub Copilot. use it to verify a bounded engineering change or hand an entire outcome to an orchestrator that directs its own worker team.
Project overview and quick start | Full guide | Steward guide | Junior guide
A port of pstack by poteto for GitHub Copilot. 55 skills, 23 playbooks, 24 principles, and 6 agents. MIT, same license as upstream.
This port replaces the upstream installation, scheduling, and stacking tools
with Copilot equivalents. It adds steward,
junior, and double, created by
@doublexmax for pstack-copilot. See
what changed from upstream.
there's a growing sense that ai writes too much slop code. throughput without quality just ships twenty slop diffs faster. if you want to scale agents, each worker has to go deep first, and an owner above the workers has to hold the outcome.
poteto-mode is the core. before you can trust a team of agents, one agent
has to build and verify cleanly. /poteto-mode
gives every engineering task 23 playbooks, 24 principles, multi-model review
panels, and verification against the real artifact. every
poteto-worker runs that same contract on
its slice, so parallelism scales rigor instead of slop.
steward is the everyday outcome owner above poteto-mode.
Give /steward a goal that one session can own.
Steward gathers context, flags missing inputs or tool limits, and directs
poteto-worker subagents and poteto-mode sessions. It checks code and other
deliverables against the outcome you agreed on.
/junior is opt-in. Use it to coordinate
related Steward workstreams. Junior checks current state against your shared
business scenarios and architectural pillars before assigning work.
double checks claims against real artifacts. run
/double inside a worker session, or let steward
attach this read-only supervisor on long unattended runs.
it checks factual claims and edits to tests or comparators against repository
state and session artifacts, and messages the worker only when primary evidence
refutes a claim.
copilot gives every role the right frontier model. every model family has distinct strengths. out of the box, pstack splits code, speed, and judgment across frontier lineages and routes cross-vendor critics and verifiers so an agent does not grade its own work.
fork it. improve it. make it yours. PRs are welcome!
clone it anywhere and register the skills directory globally, so every repo you open gets them:
git clone https://github.com/doublexmax/pstack-copilot ~/.copilot/pstack
copilot skill add ~/.copilot/pstack/skillsCopy the six agents to install poteto, poteto-worker, comment-sicko, double,
steward, and junior:
cp ~/.copilot/pstack/agents/*.agent.md ~/.copilot/agents/confirm with copilot skill list; the pstack skills appear under
Custom skills:. ~/.copilot/agents/ needs no registration.
then turn the mode on by default and grant path trust for playbooks:
node ~/.copilot/pstack/scripts/install-always-on.mjsThe installer writes the always-on block and installs and refreshes the six agents
under ~/.copilot/agents/. It adds ~/.copilot to trustedFolders in config.json
and installs the double runtime extension for this clone.
It also installs a pstack wrapper that passes --add-dir ~/.copilot so headless
runs can read playbooks and model overrides. See always-on for
uninstall options and the setup guide to check path trust.
run /setup-pstack to choose your models. then
work at the layer your problem calls for:
- work above
poteto-modewith/stewardorcopilot --agent steward. use steward when you want an outcome owner to clarify open scope, surface missing context early, and coordinatepoteto-workersubagents andpoteto-modesessions across repository and non-repository deliverables. - drive the
poteto-modecore directly. describe one bounded engineering task, such as a bug fix, refactor, or scoped feature.poteto-modeis already on after the always-on install, or type/poteto-modeexplicitly if you skipped that step. - opt in to
/junior. Use Junior when related workstreams share architectural direction or need separate Stewards.
delegate context defaults to always_long. managed launches require long-context
support for the selected model and tool, and block aliases or unproven support.
/setup-pstack can switch to adaptive or default
without rewriting model or effort choices. existing personal policy choices take precedence.
capability and workload declarations are agent assertions, not independent proof. see
the setup guide.
new here? start with the Steward guide for
outcome-level orchestration, or walk through the full pstack guide
from setup and prompting through verification and overnight runs. out of the box
pstack splits work by model strength. precisely specified code goes to sol, fast
mechanical code goes to grok, and prose and judgment go to gemini, with a
four-vendor default panel of gemini, sol, grok, and opus. /setup-pstack
changes any of it.
steward is a custom addition by
@doublexmax for pstack-copilot, not available in upstream
cursor/plugins pstack.
poteto-mode handles individual engineering tasks. Steward owns the outcome
inside one session and directs poteto-worker
subagents and poteto-mode project sessions to complete it.
type /steward in an existing session or start a
session directly at the orchestration layer:
copilot --agent stewardif you installed the pstack wrapper, run pstack --agent steward.
steward stays active across follow-ups. drop down to direct engineering with
/poteto-mode, or stand steward down for the session with skip steward or
skip steward mode.
steward holds four standing responsibilities in any order, covering outcome,
context and capability, production commitments, and confidence. it
tracks the intended outcome, known facts, open gaps, and active slices in a
session overview.md outside the worktree. before committing to costly builds,
it traces repository or domain context, checks host and shell tools, and
surfaces missing inputs or capability trade-offs that would change what gets
built.
instead of writing deliverables or running multi-step sweeps inline, steward
keeps brief discovery reads, options analysis, slice briefs, and acceptance
judgment in the root session while translating your goal into resolved slice
direction across code, docs, designs, scripts, media pipelines, and test suites
for synchronous poteto-worker slices, parallel waves across clean seams, or
coordinated poteto-mode project sessions. when technical viability or
subjective fit is uncertain, it proves a short sample slice first. when
direction changes, it treats earlier drafts as zero sunk cost.
steward inspects user-visible behavior and deliverables directly rather than
trusting worker self-reports. before returning multi-file or multi-step work, it
verifies scope, numbers, and reader-facing wording against overview.md. it
then runs a bounded rework critic from your configured arena cross-judge pool.
it skips a duplicate critic only after a clean first pass and only if a
coordinating parent owns the combined critic and authorizes the skip. steward
prefers a vendor family different from both steward and the worker, then
different from the worker, and falls back to the first pool entry if none
differs. on supervised or long unattended runs, it also attaches
double when create_session is available.
start from an open brief in chat, even without a repository open, and hand off both code and non-repo deliverables:
/steward take it on from here. own the ticket export flow and the support team's walkthrough.
keep the walkthrough outside the repo. flag anything that changes what we can build before you start,
and hand both back for review without publishing.
pull up mid-session when an engineering thread drifts into implementation weeds:
/steward review our chat against my goal. check what the current changes prove,
what to cut, and what still needs building. don't edit files yet.
pivot in product terms without micromanaging workers:
managers need a printable weekly summary instead of the interactive chart.
keep the verified totals, replace the chart with a one-page pdf, and show me one sample first.
read the Steward guide for the full architecture, five end-to-end workflows, layer-switching commands, and common pitfalls.
Give /junior the business scenarios, architectural pillars, and limits
that related workstreams share. You do not need to split the work or request
multiple sessions up front. Junior checks current behavior before assigning
work. If the scenarios already pass, it reports the evidence without assigning
work. If there's one bounded fix, it can go straight to poteto-mode. Use
/steward when one session can own the whole outcome.
When related workstreams need separate owners, Junior briefs the Stewards,
records their shared contract in shared-context.md, and verifies that the
accepted branches or revisions work together.
In the GitHub Copilot App, send /junior or select the junior agent for
separate sessions or cross-repository work. For one checkout, run
copilot --agent junior or pstack --agent junior in the terminal.
Ask Junior to check shared behavior before assigning work:
/junior Check that the dashboard and import tool reject the same invalid dates.
The shared validation package owns the date rules.
Check both callers before assigning work. Leave any changes for review.
Ask Junior to coordinate work across repositories:
/junior Coordinate ticket export across the Support Dashboard and Tickets API repositories.
Keep existing export columns and enforce queue permissions in the API.
Verify the download as an allowed user and a denied user. Leave the changes for review.
Read the Junior guide for more examples and how to switch layers.
poteto-mode is the core execution engine underneath steward's workers, and the
direct entry point whenever you already have one bounded engineering task. use
/poteto-mode to pick from twenty-three
playbooks and run the supporting skills as each step needs them.
just use /poteto-mode
this skill is the main shortcut for direct engineering execution:
/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-three 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 pr chain, then land the contiguous verified run with ado auto-complete. |
| autonomous run | drive a long task to completion without stopping. |
| orchestrate | a standing project handed to one coordinator chat: multi-day, many stacked prs, fleets of subagents. |
| autopilot-full | run independent prs to merged with one owner per pr and root verification of each merge-ready head. |
| autopilot-stack | build and verify one linear ado pr chain for the operator to review and land. |
| session pickup | resume or take over a prior agent's in-flight work. |
| pause safely | suspend in-flight work cleanly so it can be resumed later. |
| multi-phase plan | work that spans phases or stacked PRs. |
| worktree cleanup | reclaim disk by pruning merged or abandoned worktrees and stale ios simulators, safety-gated. |
| opening a pr | the shared tail every other playbook runs: worktree hygiene, commit shaping, and how the pr gets opened. |
when invoked it:
- opens a todo list. the first item is reading the inline principles index in the skill.
- matches your task to a playbook and copies the steps in verbatim.
- routes to the other skills as the steps fire.
- writes unslopped replies framed for the consumer and the maintainer.
the full rules and playbooks live in skills/poteto-mode/SKILL.md.
/poteto-mode also holds across turns: once entered it stays on for the conversation, applying itself when a playbook matches or the task needs rigor and staying out of the way otherwise. copilot has no host-enforced mode flag, so the skill carries that contract itself. say "new task" to re-match, or say so plainly to opt out. want a session that starts in the mode and never leaves it? launch copilot --agent poteto.
/poteto-mode works extremely well with copilot's autopilot mode. you can let the agent work for many hours without sacrificing rigor.
/poteto-mode runs most of these for you when a step needs them (how, why, architect, arena, swarm, interrogate, unslop, no-comments, technical-writing, tdd, and the principles). the table below is for when you want one directly:
/how do we cancel runs? do we have an n+1 when we look up every run to cancel?
/interrogate review this pr.
all skills
| skill | use it when |
|---|---|
/poteto-mode |
default entry point for any non-trivial task. |
/how |
you want a walkthrough of how a subsystem works. |
/why |
you want to know why something was built this way. discovers available MCPs at run time and queries each evidence category in parallel (source control, issue tracker, long-form docs, real-time chat, infra observability, error tracking, analytics warehouse). |
/recall |
you're starting or resuming work and want your recent context on a topic rebuilt from your own chat history and the shared record, handed back as a tight current-state brief. |
/blast-radius |
you have a small-looking change and want to know what else it could break, with the one fact it's safe because of proven by running code, not asserted. |
/architect |
you're about to write code that crosses a function boundary and want the caller's usage, types, and module shape settled first. |
/arena |
you want N parallel attempts at the same thing, then to grab the best parts of each. |
/swarm |
you want N parallel workers across different slices or races, then one aggregated report. |
/interrogate |
you have a diff and want several different models to try to break it, including a strict code-quality lens. |
/automate-me |
you want your own -mode skill, drafted from how you've actually worked. |
/make-bot-ui |
you want a page or dashboard whose buttons wake a bot over a webhook, including the sender-key handoff and Tailscale. copilot has no webhook trigger, so the user brings the endpoint. |
/setup-pstack |
you want to pick which models pstack uses per role. detects your models and writes a config rule. |
/reflect |
a long task landed and you want the recipe captured as a skill edit. |
/correct |
you keep correcting agents for the same mistakes. mines history for mistake classes, fixes each at the highest level that works (architecture, then types, lint, and ci, then tests, with docs last), and keeps a table pairing each rule with what enforces it. |
/teach |
you want to actually understand a change or subsystem, not just have it summarized. runs how + why and weaves one plain explanation, built up diagram by diagram. |
/tdd |
you're fixing a bug and there's a cheap local test path. write the failing test first, then the fix. |
/benchmark-checklist |
you ran a benchmark or measured a speedup or regression. vets the number (limiter, tuning, errors, repeat runs, end-to-end relevance) before you report or act on it. |
/no-comments |
strip comments before review; spawns Comment Sicko, fixes accepted findings, offers encodings for claimed constraints. |
/typescript-best-practices |
you're reading or editing typescript. grounds the type-system-discipline principle in syntax. |
/figure-it-out |
no bundled playbook fits. designs a rigorous, auditable playbook for the task. |
/show-me-your-work |
you want a reviewable decision trail. logs decisions to a tsv you can commit. |
/double |
you want an independent supervisor session to check factual claims and test edits against real session artifacts, preferring a different model vendor family from your configured pool. custom to pstack-copilot by @doublexmax, not in upstream pstack. |
/steward |
you want a manual alignment manager with standing responsibilities for outcome, context and capability, production commitments, and confidence. it gathers relevant context and reports gaps or capability limits early. it bounds worker production across repo and non-repo work and runs a pre-handback rework critic from your configured arena cross-judge pool, preferring a different model vendor family. custom to pstack-copilot by @doublexmax, not in upstream pstack. |
/junior |
A question or outcome spans related workstreams and needs shared architectural direction. |
/create-verification-skill |
your project has no scripted way to prove app behavior. generates a project-local verify skill with a feature map, for any language or platform. |
/maintain-verification-skill |
your verify skill's feature map has drifted from the app. source wave + one live pass, at most one PR of proven corrections. |
/unslop |
you're cleaning up writing or a code diff. prose path removes AI tells; code path is the old deslop pass. |
/bro |
you want the last message restated in plain human language, no jargon. |
/technical-writing |
layered doc standard (Diátaxis + Google developer style + STE + Global English) for docs, RFCs, readmes, PR descriptions, commit messages. |
mostly i type /poteto-mode at the start of a task and let it route to a playbook. the other skills fire as the steps need them. a few i reach for directly.
all the examples
bug fix: /poteto-mode this pr has a subtle bug where the scroll drifts every 750ms even
when idle. repro first, then fix and verify.
perf: /poteto-mode a big list takes a second or two to load even though we virtualize.
run a cpu trace and tell me why.
feature: /poteto-mode build a small feature behind a feature flag. verify it really works.
prototype: /poteto-mode build two prototypes of the markdown renderer so we can compare.
spawn an agent for each.
multi-phase: /poteto-mode open source these skills as a plugin. nothing internal leaks, work
in a temp dir, show me the dependency graph first.
overnight run: /poteto-mode i'm going to bed. land the stack even if ci flakes. i want
everything merged by morning.
babysit: /poteto-mode check on pr 123. anything outstanding?
visual parity: /poteto-mode the row spacing is too tall when this flag is on. the second image
is correct. repro and fix until it matches.
figure it out: /poteto-mode i'm stepping away. migrate every caller from the synchronous store
to the new async one, keeping behavior identical. i want to trust it was done
right when i'm back.
how: /how do we cancel runs? do we have an n+1 when we look up every run to cancel?
why: /why is this feature flag not on yet?
architect: design this instrumentation to be high signal with no false positives. /architect
this first.
arena: /arena take my prompt to the arena verbatim. i want to compare their proposals
with yours.
swarm: /swarm check every package under packages/ against its check.sh. one worker per
package. one report.
interrogate: /interrogate review this pr.
tdd: /tdd implement
unslop: can we unslop and tighten the new changes?
reflect: /reflect that took too long. capture what we learned so the next run doesn't
repeat it.
correct: /correct
show-me-your-work: /show-me-your-work keep a decision trail i can review when i'm back.
steward: /steward own this end to end and keep the team aligned with the outcome we discussed.
junior: /junior Coordinate ticket export across the dashboard and API repositories.
Keep queue permissions in the API and verify the download through the dashboard.
automate-me: /automate-me
pstack also ships a subagent that runs my style end to end. spawn it from a parent agent via agent_type: "poteto-worker". it reads poteto-mode in full, including its inline principles index, before doing any work. substituting general-purpose skips that read and drifts.
/poteto-mode and agent_type: "poteto-worker" route through the same wrapper.
pstack also ships Comment Sicko, a read-only comment reviewer available as agent_type: "comment-sicko". usually invoke it through /no-comments, not directly.
double is a custom addition by
@doublexmax for pstack-copilot.
it is not available in upstream
cursor/plugins pstack.
double checks factual claims and test or comparator edits against real repository
state and session artifacts. it is a read-only supervisor. it never writes the
worker's code or prescribes fixes.
double messages the worker only when primary evidence refutes a claim. it stays silent on verified and unverified claims. silence is not approval.
run /double inside the worker session, not a separate chat:
/double
look for the nested Double: <worker name> verifier session. long unattended tasks
in /poteto-mode attach double automatically.
double selects from your configured double verifier pool. it prefers a model
with a different vendor family from the worker. it falls back to the first pool
entry if none differs.
double needs python, with python on your PATH. a local python watcher waits
at zero model tokens. the runtime extension at
~/.copilot/extensions/double/extension.mjs wakes an idle double session when the
worker resumes. verification turns spend model tokens.
the always-on installer installs the extension.
twenty-four short skills, one principle each. poteto-mode indexes them inline and reads that index at task start. the standalone files are there so other skills can reference a principle by name, and so the index can point at the full rule for each.
all twenty-four principles
| principle | group | rule |
|---|---|---|
| laziness-protocol | core | Bias toward deletion and the smallest change that solves the problem. |
| foundational-thinking | core | Apply before writing logic: choosing core types and data structures, sequencing scaffold-vs-feature work, asking what concurrent actors share. Get the data structures right so downstream code becomes obvious. |
| redesign-from-first-principles | core | Redesign as if the requirement had been a foundational assumption from day one, instead of bolting it on. |
| attack-the-premise | core | Apply when two or more fixes that share one premise have failed the same gate. Take a census of which actors hold the imbalance before the next fix, then question the premise instead of writing another fix that assumes it. |
| subtract-before-you-add | core | Remove dead weight, redundant validators, and stub references first, then build on the simpler base. |
| minimize-reader-load | core | Count layers between question and answer, and hidden state in the reader's head; collapse one-caller wrappers and shrink mutable scope. |
| outcome-oriented-execution | core | Apply during planned rewrites and migrations with explicit phase boundaries. Converge on the target architecture; don't preserve smooth intermediate states with throwaway compatibility code. |
| experience-first | core | Choose user delight over implementation convenience; ship fewer polished features over more rough ones. |
| exhaust-the-design-space | core | Build 2-3 competing prototypes and compare side by side before committing. |
| build-the-lever | core | Apply to any non-trivial work, not just bulk work: edits, migrations, analyses, checks. Build the tool that does it or proves it (codemod, script, generator, or a skill your subagents follow) instead of working by hand. The tool is the artifact a reviewer can rerun. |
| model-the-domain | architecture | Encode the domain in a structure instead of scattered conditionals. |
| boundary-discipline | architecture | Concentrate guards at system boundaries (CLI, config, network, external APIs); trust internal types and keep business logic in pure functions. |
| type-system-discipline | architecture | Make illegal states unrepresentable, brand semantic primitives, parse external data at boundaries, refuse to lie to the compiler, exhaust variants, derive from authoritative schemas. |
| make-operations-idempotent | architecture | Converge to the same end state regardless of partial prior runs. |
| migrate-callers-then-delete-legacy-apis | architecture | Migrate callers and delete the old API in the same wave instead of preserving compatibility layers. |
| separate-before-serializing-shared-state | architecture | Eliminate the sharing first; serialize structurally only when one shared writer is a real invariant. |
| prove-it-works | verification | Apply after completing a task, before declaring done. Verify against the real artifact (run the feature, read the actual value, inspect the diff), not a proxy, self-report, or 'it compiles.'. |
| fix-root-causes | verification | Trace each symptom to its root cause and fix it there; reproduce first, ask why until you reach it, resist nil-check guards that silence crashes. |
| sequence-verifiable-units | verification | Apply to multi-step work (sweeps, migrations, runs of similar edits) and to how you stack commits and PRs. Break work into small units that each end in a verifiable state, check each before the next, and order delivery so the sequence proves itself to a reviewer. |
| test-behavior-not-implementation | verification | Apply when you write, change, or keep a test. Call the code the way its users do and assert the result they observe against a literal expected value. If the test would still pass when every imported function returns undefined, rewrite the assertion or delete the test. |
| explain-the-number | verification | Apply before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think. |
| guard-the-context-window | delegation | Route bulk to subagents; keep summaries in the main thread, not raw payloads. |
| never-block-on-the-human | delegation | Proceed, present the result, let the human course-correct after the fact; reserve confirmation for irreversible actions. |
| encode-lessons-in-structure | meta | Encode the rule as a lint, metadata flag, runtime check, or script instead of more text. |
a few things poteto-mode references but doesn't bundle:
this fork resolves the upstream plugin dependencies rather than pointing at them:
deslopis the Code section of/unslop. there is no separate deslop skill;deslop,deslop it, and "clean the diff" all run that path./create-skillis authored here, because copilot has no built-in equivalent./babysitis the babysit playbook, which is the only babysit in this fork.
still genuinely absent as bundled host tools: control-cli and control-ui from cursor-team-kit. playbooks do not depend on those names. they drive the project's .github/skills/verify-* skill, generate one with /create-verification-skill when missing, or use the repo's own harness (Playwright, PTY, curl, the built binary). hand the operator the wheel only after stating why no harness can reach the target.
copilot already has a great plan mode which works great with pstack. but personally, i don't believe in planning. the best spec is code. if you do want to make a plan, /poteto-mode covers it, but it's not a default.
poteto-mode is my style. you may not want exactly that.
type /automate-me. it mines your recent transcripts, drafts a <your-name>-mode skill from how you've actually worked, and routes through pstack underneath. you keep pstack as the base and end up with your own routing skill alongside poteto-mode.
models are configurable too. type /setup-pstack. it detects the models you have access to and writes ~/.copilot/pstack-models.md, a small override file mapping each role (code, judgment, the review panels) to a model. the context resolver reads it and falls back to checked-in defaults when a line is absent, so you override only what you want.
an override file written before this sync pins the old default models. delete those role lines, or delete the file, then run /setup-pstack again. a rerun keeps any role whose model differs from the default.
pstack also ships a dormant benny workflow pack. benny triages incoming issue reports, then reproduces and fixes confirmed bugs with real ui evidence. its files are read by path and are not registered skills.
to set it up, point the agent at FOR_AGENTS.md. setup copies the pack into the target repository under .github/automations/benny/ and keeps user configuration outside the copied pack. no per-repo registration is needed, since pstack is registered globally. the two automations run as scheduled copilot workflows created with save_workflow, and the intake defaults to azure devops work items.
upstream cursor makes the mode sticky with mode: true in the skill frontmatter.
copilot ignores that key, so the port carries the same behaviour a different way.
node scripts/install-always-on.mjsthe installer manages six user-scoped changes:
- a managed block in
~/.copilot/copilot-instructions.md. copilot loads that file into the system prompt of every session, in every directory, git or not. the block is a short router. it names when the mode applies and tells the agent to invoke thepoteto-modeskill by name, so a trivial question doesn't drag two hundred lines of playbook into context. invoking by name matters: a block that pointed at an absolute path under~/.copilotwould be denied the read, while the skill tool loads the same file with no permission at all. - the six managed agents (
poteto,poteto-worker,comment-sicko,double,steward, andjunior) under~/.copilot/agents/, refreshing earlier pstack copies while preserving unrelated custom agents. ~/.copilotinconfig.jsontrustedFolders, so the host treats that tree as trusted without wiping folders you already listed.- a
pstackCLI wrapper (~/.copilot/bin/*plus a marked profile/rc block) that runscopilot --add-dir ~/.copilot .... playbooks, references, andpstack-models.mdare normal disk reads. without that grant, non-interactive sessions fail the read and used to invent upstream behavior from memory. the mode skill now stops on a denied playbook read instead. ~/.copilot/hooks/pstack-context.jsonbinds pstack-managed launches to the canonical context resolver. it uses direct Node execution, not a shell. ordinary unmanaged delegates stay unchanged. decisions have machine-readable records, andskip poteto modeopts the session out of routing too when hooks are enabled.~/.copilot/extensions/double/extension.mjsactivates an idle double child when a supervised worker resumes. the installer binds the extension to this clone.
three properties worth knowing:
- it is user-scoped, so a fresh
git cloneyou open tomorrow already has it. - the always-on block rides in the system prompt, which is re-sent with every model request, so a long autopilot run cannot lose the mode to context compaction.
- it is idempotent, and each write only touches its own markers or the
~/.copilottrust entry. anything else you keep survives.
--dry-run shows the change without writing. --uninstall removes the managed
instructions, managed agents, hooks, double runtime extension, trust entry, and wrappers, not your context, model policy, or unrelated custom agents.
--skip-shell leaves profiles and shims alone. --skip-trust leaves config.json
unchanged, including JSONC comments. COPILOT_HOME isolates the target directory.
--hooks skip leaves existing hooks and the double runtime extension unchanged while refreshing the other integration.
--hooks remove removes only the owned hook config, copied hook entry, and double runtime extension.
the default installer or --hooks install enables them again.
--uninstall cannot be combined with --hooks.
On Windows, the installer asks PowerShell for $PROFILE.CurrentUserCurrentHost
instead of assuming where Documents is located. It prefers pwsh.exe and uses
powershell.exe only when pwsh.exe is not installed. This targets one edition,
not every installed PowerShell edition. Set PSTACK_PROFILE_PATH to select an
explicit profile instead. Profile discovery failures stop the installer rather
than falling back to a guessed path.
skip poteto mode
stands the mode down for a session without changing your preferences.
without native hooks, that command does not update the durable opt-out marker.
hook timeouts and disabled hooks can bypass native routing. callers also copy the resolver's explicit tier. this never changes an already-running parent's window or per-agent defaults. context routing defines the launch contract and its limits.
the always-on source text lives at
always-on/copilot-instructions.md.
edit that and re-run the installer to change what every session sees. a session
assembles its system prompt at startup, so an edit reaches new sessions, not
ones already running.
node scripts/check-copilot-port.mjs
node scripts/check-upstream-sync.mjs
node scripts/check-upstream-sync.mjs --upstream <cursor/plugins checkout>one zero-dependency script guards the things that silently break a copilot skill. it fails when a name doesn't match its folder (the skill then registers under the wrong slash command), when a description is missing or past copilot's 1024-character load limit, when frontmatter carries a key copilot ignores, when a relative link in the docs or skills doesn't resolve, and when prose still names a tool from another agent runtime.
a second script guards the port against its source. scripts/upstream-sync.manifest.tsv has one row per upstream file, pinned by commit and by content hash, and marked identical, adapted, or excluded with a reason. the gate fails on a source file that changed upstream, a source file that appeared or disappeared, an import edited in place, and an adaptation that drifted from its reviewed hash. without --upstream it does the local half, no clone needed. docs/upstream-sync.md is the source of record, including the pin, the host adaptations, and how to update the manifest after an upstream bump.
there is no CI gate. this org disables hosted runners and the repo has no self-hosted ones, so a workflow here would fail on every PR without ever running the script. enforcement lives in the authoring path instead. the create-skill procedure and the authoring-a-skill playbook both name this command as a required step, which is the path an agent actually takes through this repo. run it yourself before you open a PR.
| upstream (cursor plugin) | here |
|---|---|
.cursor-plugin/plugin.json, /add-plugin |
a skillDirectories entry in ~/.copilot/settings.json |
| project-scoped plugin install | global; every repo you open gets the skills |
mode: true sticky frontmatter |
a managed block in ~/.copilot/copilot-instructions.md, plus trustedFolders and a pstack --add-dir wrapper, installed by install-always-on.mjs |
AGENTS.md subagent contract |
.agent.md files spawned through the task tool |
AskQuestion tool |
the ask_user tool |
| one model slug per role | model plus reasoning_effort, two fields |
| three-vendor panel (opus 5.5 / sol / grok) | a fourth seat, gemini-4-argon, so the panels read four lineages |
graphite (gt) stacking and github PR review flows |
github PR tools on github repos; az repos PR chains and the ado mcp on azure devops repos |
| event-triggered automations | scheduled copilot workflows via save_workflow |
| slack intake for benny | intake adapter, defaults to ado work items |
separate deslop skill |
Code path inside /unslop |
bundled create-skill |
authored here; copilot ships no equivalent |
control-cli / control-ui |
project verify-* skills + /create-verification-skill |
control-cli and control-ui are not bundled. verification goes through a
project verify skill or a generated one, not an operator-drive default.
@doublexmax created
double, /double,
steward, /steward,
junior, and /junior
for pstack-copilot. They are custom additions, not available in upstream
cursor/plugins pstack.
See the local-only files for this port's additions.
MIT