A 100% native Google Antigravity adaptation of Lauren Tan (poteto)'s pstack — rigorous engineering playbooks, 24 first-principles rules, multi-agent arenas, adversarial reviews, and verified shipping, wired directly into Antigravity's native primitives.
"If you want to go fast, go deep first. The goal is not to maximize LOC — in fact it's the opposite. pstack helps you write less, higher quality, verifiable code."
Rather than wrapping Cursor instructions in a compatibility shim, every workflow, agent, script, and path in agy-pstack is adapted 1:1 to Antigravity's native runtime — and Cursor/Claude-only baggage (.cursor-plugin, claude-code.md, automations/benny, make-bot-ui, cursor-team-kit, origin CLI, hardcoded Cursor model slugs, and the duplicate skills/swarm that would shadow Antigravity's built-in /swarm) is stripped out.
| Workflow Need | Antigravity Native Feature Used |
|---|---|
| Parallel writers, owners & independent verifiers | Native /swarm (swarm tool, shared message board, workspace: "share", fork, built-in monitor) |
| Programmatic fan-out & schema-validated aggregation | run_workflow (parallel, pipeline, agent(..., schema=...), phase, trajectory) |
| Single-task delegation & read-only codebase research | invoke_subagent (poteto-agent, comment-sicko, built-in research, browser), reactive wakeup, send_message |
| Overnight & long-running autonomous execution | Native /goal + schedule tool (DurationSeconds / CronExpression) + show-me-your-work |
| Recurring scheduled maintenance | Native /automation (cron sidecars) & /schedule |
| Upfront planning & design alignment | Native /plan & /grill-me alongside /architect, /arena, and prototype |
| Live UI / desktop / CLI verification | Project .agents/skills/verify-<app>/, native /browser (browser subagent), cua-driver MCP, run_command |
| Structured user questions | Native ask_question |
| Conversation history, recall & eval verification | Native transcripts (~/.gemini/antigravity/brain/<id>/.system_generated/logs/transcript.jsonl) & conversation:// links |
| Capturing learnings & managing context | /reflect + /correct paired with native /learn and /compact |
| Model & tier configuration | /setup-pstack → ~/.gemini/config/rules/pstack-models.md (inherit / pro / flash / flash_lite + live swarm{action:"models"}) |
| Scripts & PR watcher | Bun-native (watch-pr, statechart, worktree-audit.sh) |
Clone directly into Antigravity's global plugins directory:
git clone https://github.com/ahmetdotsh/agy-pstack.git ~/.gemini/config/plugins/pstackgit clone https://github.com/ahmetdotsh/agy-pstack.git .agents/plugins/pstackAntigravity discovers the plugin automatically — no restart required. Manage, inspect, or toggle it anytime with /plugin.
- (Optional) Run
/setup-pstackto pick your budget (balanced,max, orlean), configure subagent tiers and/swarmpanel models in~/.gemini/config/rules/pstack-models.md, and optionally generate a project verification skill in.agents/skills/verify-<app>/. - Start any non-trivial task with
/poteto-mode:
/poteto-mode this PR has a subtle bug where scroll drifts every 750ms even when idle. repro first, then fix and verify.
/goal /poteto-mode i'm going to bed. land the stack even if ci flakes. i want everything merged by morning.
New here? Read the pstack guide or ask /poteto-help.
All 22 playbooks
| Playbook | Purpose |
|---|---|
| investigation | Read-only subsystem or root-cause questions. |
| bug fix | Reproduce a defect on the real surface, binary-search root cause, fix with runtime evidence. |
| perf issue | Measure a baseline trace, vet with /benchmark-checklist, optimize against real numbers. |
| hillclimb | Sustained scientific loop improving one metric against a target with a frozen harness and one commit per win. |
| runtime forensics | Diagnose a live symptom (leak, 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 and throughput checkpoint. |
| refactoring | Behavior-preserving structural change pinned by characterization tests or equivalence checks. |
| prototype | Throwaway sketch to settle a design or empirical fork by running code. |
| visual parity | Pixel-exact UI equivalence against a frozen baseline. |
| authoring a skill | Writing or editing an Antigravity SKILL.md with validation. |
| eval | Blinded evaluation of a skill or prompt change verified from transcript.jsonl. |
| babysit | Drive a PR to merge-ready via gh and watch-pr: conflicts, review threads, CI. |
| shipping | Independently verify a green stack via native /swarm, then land bottom-up via gh. |
| autonomous run | Drive a long task to a falsifiable exit predicate with /goal and schedule. |
| autopilot-full | Run independent PRs to merged via /swarm owners (workspace: "share") + independent verifiers. |
| autopilot-stack | Autopilot-full without the merge — wake up to verified PRs ready to land. |
| session pickup | Resume a prior Antigravity conversation from its transcript and decision trail without redoing work. |
| pause safely | Suspend in-flight work cleanly with a checkpoint and resume note. |
| multi-phase plan | Plan phased or stacked PRs after design settles. |
| worktree cleanup | Safety-gated disk reclamation for merged/stale git worktrees and simulators. |
| opening a pr | Small ordered commits, /unslop + /no-comments, conventional title, briefing body, ready gh pr create. |
All workflow skills
| Skill | Use it when |
|---|---|
/poteto-mode |
Default entry point for any non-trivial engineering task. |
/poteto-help |
You want guidance on which skill, playbook, or native Antigravity command fits. |
/setup-pstack |
Configure Antigravity subagent tiers and /swarm panel models in ~/.gemini/config/rules/pstack-models.md. |
/in-your-own-words |
Play back your goal and problem before starting work. |
/sharpen |
Rewrite a prompt deeper (not bigger) before sending it. |
/how |
Architecture walkthrough of how a subsystem works (via read-only research subagent). |
/why |
Historical motivation from git commits, PRs, and records. |
/teach |
Plain diagram-by-diagram explanation combining /how + /why. |
/recall |
Rebuild recent context across Antigravity transcripts, git, and shared records. |
/ketchup |
Plain-English catch-up of what changed since your last message plus decisions waiting on you. |
/ketchup-video |
/ketchup catch-up rendered as a short subtitled slide video. |
/blast-radius |
Find what a small diff could break outside itself and prove safety with a run. |
/architect |
Settle caller usage, types, and module boundaries before writing code. |
/arena |
Parallel competing attempts via /swarm or run_workflow, cross-judged and grafted into one base. |
/interrogate |
Adversarial /swarm review where only findings proven by a real run survive. |
/tdd |
Failing test first, then minimal fix when a cheap local test path exists. |
/benchmark-checklist |
Scientifically vet a measured speedup or regression before trusting it. |
/no-comments |
Invoke comment-sicko to strip unnecessary comments, fix accepted flags, and encode constraints. |
/typescript-best-practices |
Concrete TypeScript type-system discipline rules. |
/figure-it-out |
Design a custom auditable playbook when no bundled playbook fits. |
/show-me-your-work |
Maintain and audit a TSV decision log against Antigravity's transcript.jsonl. |
/create-verification-skill |
Generate a project-local .agents/skills/verify-<app>/ skill with a feature map. |
/maintain-verification-skill |
Keep a project's verification skill and feature map synced via parallel source reads + live pass. |
/create-formal-verification-skill |
Formally verify a race, retry, state machine, or parser invariant (TLA+, model checking, etc.). |
/maintain-formal-verification-skill |
Re-sync a formal verification skill after code changes. |
/statechart |
Check a TLA+ model and draw a Mermaid statechart with shortest paths to invariant violations. |
/unslop |
Strip AI writing tells from prose. |
/bro |
Restate the last message in plain human language. |
/technical-writing |
Layered doc standard (Diátaxis + Google developer style + STE + Global English). |
/automate-me |
Mine your Antigravity transcripts to draft a personal <name>-mode skill. |
/reflect |
Mine the current conversation for durable skill edits (pairs with native /learn). |
/correct |
Eliminate recurring agent mistake classes via architecture, types, lints, and tests. |
All 24 principles
| Principle | Group | Rule |
|---|---|---|
| laziness-protocol | core | Bias toward deletion and the smallest change that solves the problem. |
| foundational-thinking | core | Get core types, data structures, and boundaries right before writing logic. |
| redesign-from-first-principles | core | Redesign as if the requirement had been foundational from day one. |
| attack-the-premise | core | After two failed fixes sharing one premise, write down and test the premise directly. |
| subtract-before-you-add | core | Delete dead weight first, then build on the simpler base. |
| minimize-reader-load | core | Collapse one-caller wrappers and shrink mutable scope. |
| outcome-oriented-execution | core | Converge on the target architecture instead of preserving throwaway compatibility layers. |
| experience-first | core | Choose user delight over implementation convenience. |
| exhaust-the-design-space | core | Compare 2–3 competing prototypes side by side before committing. |
| build-the-lever | core | Build the script, codemod, or check that proves/does the work instead of doing it by hand. |
| model-the-domain | architecture | Encode the domain in a structure instead of scattered conditionals. |
| boundary-discipline | architecture | Concentrate guards at system boundaries; keep internal logic pure. |
| type-system-discipline | architecture | Make illegal states unrepresentable, brand primitives, parse at boundaries. |
| 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. |
| separate-before-serializing-shared-state | architecture | Eliminate sharing first; serialize structurally only for real invariants. |
| prove-it-works | verification | Verify against the real artifact, never a proxy or "it compiles". |
| fix-root-causes | verification | Trace each symptom to the first place the system went wrong and fix it there. |
| sequence-verifiable-units | verification | Break work into small verifiable units and verify each before the next. |
| test-behavior-not-implementation | verification | Assert observable user behavior, not internals. |
| explain-the-number | verification | Identify the limiter and rule out measurement artifacts before trusting any number. |
| guard-the-context-window | delegation | Route bulk reads to subagents and workflows; keep summaries in the main thread. |
| never-block-on-the-human | delegation | Proceed on reversible work; reserve confirmation for irreversible actions. |
| encode-lessons-in-structure | meta | Encode recurring rules as types, lints, or scripts instead of more prose. |
poteto-agent— delegate subagent invoked viainvoke_subagent(TypeName="poteto-agent", ...)during/poteto-moderuns. Readspoteto-mode/SKILL.mdand its inline principles index before doing any work.comment-sicko— comment auditor invoked via/no-commentsto strip unnecessary comments and flag refactor targets (MUST KILL) without touching application code.
Forked and adapted natively for Google Antigravity from cursor/plugins/pstack by Lauren Tan (poteto).
Licensed under the MIT License.