Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dist/
.venv/
venv/
env/
skills/swarm/scripts/skills/
skills/swarm/scripts/rules/
skills/swarm/scripts/agents/
skills/cloud-swarm/scripts/skills/
skills/cloud-swarm/scripts/rules/
skills/cloud-swarm/scripts/agents/

25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

Where pstack brought anti-slop rigor to editor chats, **agystack expands it into a distributed, multi-tier engineering fleet**:

- **Google Cloud Run Fleets (`/swarm`).** When local machines hit limits, fan out across headless cloud containers. Fleet workers run in parallel, stream real-time milestones, and deliver isolated candidate patches to GCS without git worktree collisions.
- **Google Cloud Run Fleets (`/cloud-swarm`).** When local machines hit limits, fan out across headless cloud containers. Fleet workers run in parallel, stream real-time milestones, and deliver isolated candidate patches to GCS without git worktree collisions.
- **The `/loop` Hillclimb Engine.** Run automated hypothesis-and-verify loops against a concrete test command (`--verify "<cmd>"`). agystack applies discrete edits, reverts regressions, and reactively iterates until green without manual babysitting.
- **Automated PR Babysitting & Stack Shipping (`watch-pr`).** Eliminate GitHub PR friction. Dedicated tooling monitors CI checks, detects merge conflicts across Graphite stacks, and triages review comments. Real defects get fixed with runtime reproduction, while bot noise gets dismissed with concrete reasons.
- **Adversarial Reviews & Bakeoffs (`/interrogate`, `/arena`).** Prevent single-agent blind spots. Dispatch concurrent reviewers to attack diffs from independent angles before shipping, or run competing candidate implementations in parallel worktrees and graft winning pieces sequentially.
Expand Down Expand Up @@ -157,30 +157,33 @@ local subagents work great for up to 8 workers. but when you want massive parall

workers run in isolated containers, never push to git directly, and upload `patch.diff` artifacts and streaming milestones to GCS. the coordinator ranks the winning diffs so you can review and apply them locally.

set it up with [`/setup-agystack`](./skills/setup-agystack/SKILL.md) with your Google Cloud auth and run [`/swarm`](./skills/swarm/SKILL.md) to dispatch.
set it up with [`/setup-agystack`](./skills/setup-agystack/SKILL.md) with your Google Cloud auth and run [`/cloud-swarm`](./skills/cloud-swarm/SKILL.md) to dispatch.

> [!NOTE]
> **Upgrade Note for 0.17.0:** `/swarm` is now Google Antigravity's built-in collaborative swarm skill. agystack's Cloud Run fleet skill is now `/cloud-swarm`. If upgrading via zip archive over an existing installation, remove the legacy `skills/swarm/` directory (`setup_runtime.py --doctor` will flag it if present).

### summoning cloud agents (Gemini & DeepSeek)

Cloud swarms run on Google Cloud Run with zero-friction serverless models:

```bash
# list supported cloud models and tiers
python3 skills/swarm/scripts/cloud_dispatch.py --list-models
python3 skills/cloud-swarm/scripts/cloud_dispatch.py --list-models

# fan out 5 Gemini Argon agents
python3 skills/swarm/scripts/cloud_dispatch.py --tasks 5 --model gemini-4-argon
python3 skills/cloud-swarm/scripts/cloud_dispatch.py --tasks 5 --model gemini-4-argon

# fan out 5 DeepSeek Flash 4.1 agents
python3 skills/swarm/scripts/cloud_dispatch.py --tasks 5 --model deepseek-v4.1-flash
python3 skills/cloud-swarm/scripts/cloud_dispatch.py --tasks 5 --model deepseek-v4.1-flash
```

Or trigger `/swarm` right in chat:
- `/swarm 5 workers using Gemini Argon to test src/`
- `/swarm 5 workers using DeepSeek Flash to explore hypotheses`
Or trigger `/cloud-swarm` right in chat:
- `/cloud-swarm 5 workers using Gemini Argon to test src/`
- `/cloud-swarm 5 workers using DeepSeek Flash to explore hypotheses`

## skills

[`/poteto-mode`](./skills/poteto-mode/SKILL.md) 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:
[`/poteto-mode`](./skills/poteto-mode/SKILL.md) runs most of these for you when a step needs them (`how`, `why`, `architect`, `arena`, `cloud-swarm`, `interrogate`, `unslop`, `no-comments`, `technical-writing`, `tdd`, and the principles). the table below is for when you want one directly:



Expand All @@ -206,7 +209,7 @@ Or trigger `/swarm` right in chat:
| `/grill-me` | your requirements are underspecified or ambiguous and you want Socratic pressure testing before kicking off architecture or autonomous execution ([guide](./docs/guide/04-design.md#flesh-out-ambiguous-requirements-with-grill-me)). |
| [`/architect`](./skills/architect/SKILL.md) | you're about to write code that crosses a function boundary and want the caller's usage, types, and module shape settled first. |
| [`/arena`](./skills/arena/SKILL.md) | you want N parallel attempts at the same thing, then to grab the best parts of each. |
| [`/swarm`](./skills/swarm/SKILL.md) | you want N parallel workers across different slices or races, then one aggregated report. |
| [`/cloud-swarm`](./skills/cloud-swarm/SKILL.md) | you want N parallel workers across different slices or races in Cloud Run, then one aggregated report. |
| [`/interrogate`](./skills/interrogate/SKILL.md) | you have a diff and want several different models to try to break it, including a strict code-quality lens. |
| [`/automate-me`](./skills/automate-me/SKILL.md) | you want your own `-mode` skill, drafted from how you've actually worked. |
| [`/deslop`](./skills/deslop/SKILL.md) | you want to clean defensive code, redundant guards, and AI bloat out of diffs before commit. |
Expand Down Expand Up @@ -262,7 +265,7 @@ architect: design this instrumentation to be high signal with no false p
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
cloud-swarm: /cloud-swarm check every package under packages/ against its check.sh. one worker per
package. one report.
interrogate: /interrogate review this pr.
tdd: /tdd implement
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/01-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Run:

You only override what you care about. A role with no line in the rule keeps the skill's default. To restore a default later, delete that role's line, or just run `/setup-agystack` again.

You might be wondering what happens if you use Auto. Set a role to `inherit-parent` or `auto` and agystack omits the subagent `model` field, so the subagent inherits your parent chat model. Both values mean the same thing, and neither is a model slug. For a panel role the value is a list, and one subagent runs per entry, so the list length sets the panel size. Setup also configures `swarm workers`, the default model for every `/swarm` worker unless a race names a model for each arm.
You might be wondering what happens if you use Auto. Set a role to `inherit-parent` or `auto` and agystack omits the subagent `model` field, so the subagent inherits your parent chat model. Both values mean the same thing, and neither is a model slug. For a panel role the value is a list, and one subagent runs per entry, so the list length sets the panel size. Setup also configures `swarm workers`, the default model for every `/cloud-swarm` or local fan-out worker unless a race names a model for each arm.

## Accept the verification offer, or don't

Expand Down
12 changes: 6 additions & 6 deletions docs/guide/04-design.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Design before you write code

One attempt at a hard design locks in the first shape the model thought of. `/architect` settles types and boundaries before implementation. `/arena` runs several attempts at the same brief and merges the best parts. `/interrogate` has other models try to break the result. When the job is coverage rather than design synthesis, `/swarm` fans out slices or races and aggregates their results.
One attempt at a hard design locks in the first shape the model thought of. `/architect` settles types and boundaries before implementation. `/arena` runs several attempts at the same brief and merges the best parts. `/interrogate` has other models try to break the result. When the job is coverage rather than design synthesis, `/cloud-swarm` (or local fan-out) fans out slices or races and aggregates their results.

![Three robots draft competing bridge models at their own tables under /architect, /arena, and /interrogate panels, while a judge robot with a clipboard inspects skeptically.](./images/design.jpg)

Expand Down Expand Up @@ -56,15 +56,15 @@ The panel comes from your [`/setup-agystack`](../../skills/setup-agystack/SKILL.
/arena this, 5 candidates. the cache key format is expensive to change later.
```

## Cover slices and races with `/swarm`
## Cover slices and races with `/cloud-swarm`

```text
/swarm check every package under packages/ against its check.sh. one worker per package. one report.
/cloud-swarm check every package under packages/ against its check.sh. one worker per package. one report.
```

[`/swarm`](../../skills/swarm/SKILL.md) fans N workers across independent slices, coverage matrices, gauntlet lanes, exploration partitions, or declared race arms. Each worker gets its own scope and check, then reports `PASS`, `ISSUES`, or `BLOCKED`. The parent waits for the workers and returns one compact report with any gaps or dropouts.
[`/cloud-swarm`](../../skills/cloud-swarm/SKILL.md) fans N workers across Google Cloud Run for independent slices, coverage matrices, gauntlet lanes, exploration partitions, or declared race arms (or uses local `invoke_subagent` fan-out for 8 or fewer workers). Each worker gets its own scope and check, then reports `PASS`, `ISSUES`, or `BLOCKED`. The parent waits for the workers and returns one compact report with any gaps or dropouts.

Reach for it when parallelism buys coverage or lets independent checks race. `/arena` gives every worker the same design or code brief, then picks a base and grafts the best parts. `/swarm` covers slices or runs a race with a selection rule declared up front. It does not use the base-selection and grafting ceremony.
Reach for it when parallelism buys coverage or lets independent checks race. `/arena` gives every worker the same design or code brief, then picks a base and grafts the best parts. `/cloud-swarm` covers slices or runs a race with a selection rule declared up front. It does not use the base-selection and grafting ceremony.

## Break it with `/interrogate`

Expand All @@ -83,7 +83,7 @@ You might be wondering whether every change needs this. No. Most changes need no
- A small, finished change you're unsure about needs `/interrogate` alone.
- A change that crosses function boundaries or moves ownership earns `/architect`, which brings `/arena` with it.
- A standalone decision where independent attempts would help, like naming, formats, or an algorithm, is `/arena` directly.
- A coverage matrix, set of parallel checks, or race with declared arms is `/swarm`.
- A coverage matrix, set of parallel checks, or race with declared arms is `/cloud-swarm` (or local fan-out).
- A contested design that's expensive to reverse gets `/architect`, then `/interrogate` before shipping.

`/poteto-mode` already applies this ladder. Boundary-crossing work triggers `/architect` on its own, so you reach for these directly mainly when you want more or less scrutiny than the default.
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/06-verify-and-ship.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ It writes `.agents/skills/verify-<app>/`, agent-facing instructions with exact L

From then on, "verify it in the app" is a step any agent can execute, in this repo, with no setup conversation.

Once the verify skill works, a [`/swarm`](../../skills/swarm/SKILL.md) can split a full pass by feature-map entry and aggregate the results.
Once the verify skill works, a [`/cloud-swarm`](../../skills/cloud-swarm/SKILL.md) or local fan-out can split a full pass by feature-map entry and aggregate the results.

## Keep the verification skill honest

Expand Down
4 changes: 2 additions & 2 deletions docs/guide/10-recipes-and-pitfalls.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Your current design becomes one candidate among several, and the synthesis tells
## Check independent slices in parallel

```text
/swarm check every package under packages/ against its check.sh. one worker per package. one report.
/cloud-swarm check every package under packages/ against its check.sh. one worker per package. one report.
```

Each worker owns one package. The parent waits for every slice and returns one `PASS`, `ISSUES`, or `BLOCKED` report instead of raw worker dumps.
Expand Down Expand Up @@ -159,7 +159,7 @@ The hook intercepts `write_to_file` and `replace_file_content` to keep coordinat
- **Enumerating skills in the prompt.** "use /how then /architect then /arena" reorders steps the playbook already sequences. State the goal and constraints. Name a skill only to override a default.
- **A vague finish condition.** "make it better" gives `/loop` or `/goal` nothing to check. `/loop` requires a command that exits 0. `/goal` requires a checkable predicate or artifact. Give a command or artifact that can pass or fail.
- **Parallel agents in one worktree.** They overwrite each other and the diff becomes archaeology. Say "own worktree per attempt" and the isolation is free.
- **Using `/arena` for coverage.** `/arena` repeats one design or code brief, then picks a base and grafts the best parts. `/swarm` partitions slices or declared race arms and aggregates one report.
- **Using `/arena` for coverage.** `/arena` repeats one design or code brief, then picks a base and grafts the best parts. `/cloud-swarm` (or local fan-out) partitions slices or declared race arms and aggregates one report.
- **Accepting every review comment.** Bots and humans both file real catches and noise in one list. `/interrogate` sorts findings into act-on and dismissed buckets with reasons, and you can override either way.
- **Treating `auto` as a model slug.** `auto` and `inherit-parent` mean "omit the model field so the subagent inherits the parent chat model." [Setup](./01-setup.md) covers the roles.
- **Reporting success off a green build.** A build proves it compiles. Ask for the real command, flow, stored value, or profile, and expect the evidence in the reply.
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Here's what you'll learn:
1. [Set up agystack](./01-setup.md). Install the plugin and pick your models.
2. [Route work through `/poteto-mode`](./02-poteto-mode.md). Give it a goal and watch it pick a playbook.
3. [Understand the code](./03-understand.md). `/how`, `/why`, `/teach`, and `/recall` before you edit anything.
4. [Design the change](./04-design.md). `/architect`, `/arena`, `/swarm`, and `/interrogate` before code locks in a shape.
4. [Design the change](./04-design.md). `/architect`, `/arena`, `/cloud-swarm`, and `/interrogate` before code locks in a shape.
5. [Build and clean the change](./05-build-and-clean.md). The build playbooks, `/tdd`, `/deslop`, `/unslop`, and `/no-comments`.
6. [Verify and ship](./06-verify-and-ship.md). Prove behavior on the real app, then open a focused PR and drive it to merged.
7. [Run work while you sleep](./07-overnight.md). An overnight contract, a decision log you can audit, and the playbooks that scale past one agent.
Expand Down
2 changes: 1 addition & 1 deletion docs/marketplace-listing.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Rigorous agentic engineering framework for Google Antigravity: poteto-mode, play
- **Twenty-Three Rigorous Playbooks:** Structured procedural engines for bug fixes, performance investigations, refactoring, autonomous loops, and stacked shipping.
- **Twenty-Four Anti-Slop Principles:** Invariant rules that prevent speculative code, enforce domain data models, and mandate real-world runtime verification.
- **Subagent Context Isolation:** Guard coordinator chat context windows by delegating code changes over 50 lines to isolated background workers.
- **Google Cloud Run Swarms (`/swarm`):** Scale beyond local machine concurrency with serverless container fleets executing parallel parameter sweeps and candidate patches.
- **Google Cloud Run Swarms (`/cloud-swarm`):** Scale beyond local machine concurrency with serverless container fleets executing parallel parameter sweeps and candidate patches.
- **Multi-Model Adversarial Interrogation (`/interrogate`):** Dispatch concurrent reviewer panels across distinct model tiers to challenge diffs before merge.
- **Native Antigravity Artifacts:** Structured deliverables (`implementation_plan.md`, `walkthrough.md`, `<topic>_report.md`) rendered directly in the IDE canvas.

Expand Down
2 changes: 1 addition & 1 deletion docs/marketplace-submission.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "agystack",
"name": "agystack",
"displayName": "agystack",
"version": "0.16.0",
"version": "0.17.0",
"category": "developer-tools",
"description": "Rigorous agentic engineering framework for Google Antigravity: poteto-mode, playbooks, isolated subagents, adversarial reviews, and cloud swarms. Spinoff of poteto's pstack.",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://antigravity.google/schemas/v1/plugin.json",
"name": "agystack",
"displayName": "agystack",
"version": "0.16.0",
"version": "0.17.0",
"description": "Rigorous agentic engineering framework for Google Antigravity: poteto-mode, playbooks, isolated subagents, adversarial reviews, and cloud swarms. Spinoff of poteto's pstack.",
"author": {
"name": "Joel Taroreh",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "agystack"
version = "0.16.0"
version = "0.17.0"
description = "Agentic swarm orchestration and poteto workflow plugin for Google Antigravity"
readme = "README.md"
requires-python = ">=3.11"
Expand Down
2 changes: 1 addition & 1 deletion rules/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Mirroring pstack in Cursor, enforce strict separation between coordination and c
2. **Mandatory Subagent Fan-Out:** You MUST invoke distinct background subagents via `invoke_subagent` for:
- **Code reviews and adversarial interrogation (`/interrogate`):** Dispatch concurrent reviewers across distinct model tiers (`pro`, `flash`, `inherit`). Simulating reviewer personas in the parent context is strictly forbidden.
- **Multi-candidate design and code bakeoffs (`/arena`):** Dispatch parallel subagents in isolated workspaces or scratch paths.
- **High-volume exploration sweeps and test matrices (`/swarm`):** Offload large payload reads to subagents to guard the main context window.
- **High-volume exploration sweeps and test matrices (`/cloud-swarm` for Cloud Run, local fan-out for <= 8 workers):** Offload large payload reads to subagents to guard the main context window.
- **Blinded behavioral evaluations (`/eval`):** Run candidate attempts through blinded subagents.
- **Cross-model decision audits (`/show-me-your-work`):** Dispatch an independent subagent on a different model family to audit the decision log.
3. **Candidate Integration Invariant:** Parallel candidate diffs from swarms, arenas, or subagent fan-outs must never be bulk-merged. The coordinator must evaluate candidate branches in isolation, rank them by delta, and graft winning modifications sequentially—verifying and benchmarking each change independently before attempting the next (`principle-sequence-verifiable-units`).
Expand Down
Loading
Loading