Skip to content
Closed
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
47 changes: 22 additions & 25 deletions agystack-models.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
# agystack model configuration. One line per role. Delete a line to fall back to the skill default.
# Antigravity invoke_subagent model tiers:
# - inherit (Runs on the active parent chat session model, e.g. Gemini 3.8 Flash High)
# - pro (High-capability tier: deep reasoning, large refactors, complex design)
# - flash (Fast / balanced reasoning tier: exploration, reading, standard generation)
# - flash_lite (Lightweight tier: fast mechanical scans and lookups)

feature, refactoring: inherit
bug-fix: inherit
perf-issue: inherit
hillclimb: inherit
judgment and prose: inherit
hardest tasks: inherit
how explorer: flash
how explainer: inherit
why investigators: flash
why synthesizer: inherit
reflect tooling: inherit
reflect judgment, divergent, synthesizer: inherit
arena runners: inherit, flash, pro
arena cross-judge pool: inherit, flash, pro
swarm workers: flash
architect runners: inherit, flash, pro
interrogate reviewers: inherit, flash, pro


# 2026.11 Google Gemini 4 Core Model Matrix & Orchestrator (Ultra 5x/20x tiers):
# - Orchestrator (dynamic scheduling mode): Dynamic multi-model collaboration & task handoff
# - Gemini 4 Carbon (heavy reasoning & planning): Flagship reasoning with Low/Medium/High thinking depth
# - Gemini 4 Argon (systems & software engineering): Frontier reasoning for continuous agent workflows
# - Gemini 4 Hydrogen (high-speed execution & verification): Fast subtask execution & automated verification

feature, refactoring: gemini-4-argon
bug-fix: gemini-4-argon
perf-issue: gemini-4-argon
hillclimb: gemini-4-carbon
judgment and prose: gemini-4-carbon
hardest tasks: gemini-4-carbon
how explorer: gemini-4-hydrogen
how explainer: gemini-4-argon
why investigators: gemini-4-hydrogen
why synthesizer: gemini-4-argon
reflect tooling: gemini-4-argon
reflect judgment, divergent, synthesizer: gemini-4-carbon
arena runners: gemini-4-carbon, gemini-4-argon, orchestrator
arena cross-judge pool: gemini-4-carbon, gemini-4-argon, orchestrator
swarm workers: gemini-4-hydrogen
architect runners: gemini-4-carbon, gemini-4-argon, orchestrator
interrogate reviewers: gemini-4-carbon, gemini-4-argon, orchestrator
2 changes: 1 addition & 1 deletion docs/guide/01-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Run:
/setup-agystack
```

[`/setup-agystack`](../../skills/setup-agystack/SKILL.md) detects the models you have access to, shows you each role (code delegates, judgment, the review panels), and asks what you want. Answer the questions. It writes `~/.gemini/config/plugins/agystack/agystack-models.md`, a configuration file every agystack skill reads.
[`/setup-agystack`](../../skills/setup-agystack/SKILL.md) detects the models you have access to, shows you each role (code delegates, judgment, the review panels), and asks what you want. Answer the questions. It writes `~/.gemini/config/plugins/agystack/agystack-models.md`, a configuration file every agystack skill reads. Ultra subscribers can map roles directly to the Gemini 4 matrix (Orchestrator, Gemini 4 Carbon, Gemini 4 Argon, Gemini 4 Hydrogen).

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.

Expand Down
2 changes: 1 addition & 1 deletion rules/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Mirroring pstack in Cursor, enforce strict separation between coordination and c
- **Autonomous & Hillclimb Playbooks (`Autonomous run`, `Hillclimb`, `Swarm`, `/goal`, `/loop`):** Unattended throughput invariant. Use `RequestFeedback: false`. Domain deliverables (`decision_trail.md`, `score.json`, `receipts/`) take precedence without interactive blocking.
- **Read-Only Investigation Playbooks (`Investigation`, `How`, `Why`, `Runtime Forensics`):** Produces `investigation_report.md` with `RequestFeedback: false`.
6. **Cloud Swarm Model Selection & Zero-Friction Fallback:**
- **Prefer Tier 1 Serverless Models:** Default to frictionless serverless models that require zero console forms: `gemini-3.8-flash`, `gemini-4-argon`, or `deepseek-v4.1-flash` (MaaS).
- **Prefer Tier 1 Serverless Models:** Default to frictionless serverless models that require zero console forms: `gemini-4-carbon`, `gemini-4-argon`, `gemini-4-hydrogen`, `gemini-3.8-flash`, or `deepseek-v4.1-flash` (MaaS).
- **Gated Partner Gating Detection:** If a user requests an Anthropic partner model (`claude-3-opus`, `claude-3-5-sonnet`) that is not yet enabled in Vertex AI Model Garden, explain that Google enforces a one-time console form click-through that agents cannot accept programmatically, and immediately offer the Tier 1 zero-friction alternative.
- **Open-Weights vs. MaaS Distinction:** Models like `GLM 5.3` or `Llama 3.3` on Model Garden are deployable open-weights requiring dedicated GPU endpoints (8x H100/B200 instances), not on-demand serverless APIs. Never attempt to dispatch Cloud Run tasks against deploy-only models without an active dedicated endpoint.

Expand Down
21 changes: 13 additions & 8 deletions skills/poteto-mode/references/antigravity-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,23 +161,28 @@ Every playbook completion requires concrete proof on the real target surface bef

## Models

Antigravity subagents use native `invoke_subagent` model tiers. Model tiers (`inherit`, `pro`, `flash`, `flash_lite`) represent Gemini depth and compute budget tiers, not cross-family priors.
Antigravity subagents use native `invoke_subagent` model tiers and the Google Gemini 4 Core Matrix (available to Google AI Ultra subscribers across 5x and 20x tiers). Model tiers (`inherit`, `pro`, `flash`, `flash_lite`) represent Gemini depth and compute budget tiers, while the Gemini 4 matrix provides specialized architectural roles:

- `inherit` (Inherits the active parent model, running your current session choice such as Gemini 3.8 Flash High with Antigravity 2.12.2 ADC support)
- `orchestrator` (Dynamic scheduling mode: multi-model automated collaboration and task handoff across Carbon / Argon / Hydrogen)
- `gemini-4-carbon` (Flagship heavy reasoning and complex planning with Low / Medium / High thinking depth; primary brain for deep orchestration)
- `gemini-4-argon` (Frontier reasoning and systems programming for continuous agent workflows)
- `gemini-4-hydrogen` (High-speed execution and automated verification: Worker/Verifier)
- `inherit` (Inherits the active parent model, running your current session choice such as Gemini 3.8 Flash High with Antigravity ADC support)
- `pro` (High-capability tier)
- `flash` (Balanced fast tier: fast exploration, standard implementation, and reviews)
- `flash_lite` (Lightweight tier: fast mechanical scans and lookups)

| Role / Intent | Antigravity Model Tier |
| Role / Intent | Antigravity Model / Tier |
| --- | --- |
| Primary reasoning / difficult tasks | `inherit` (runs on your active chat model, e.g. Gemini 3.8 Flash High) |
| Fast mechanical scanning / exploration | `flash` or `flash_lite` |
| Deep judgment, prose, architecture | `inherit` or `pro` |
| Multi-model review panels | Diverse combination across `inherit`, `flash`, and `pro` |
| Dynamic multi-model coordination | `orchestrator` |
| Primary reasoning / difficult tasks / architecture | `gemini-4-carbon` or `pro` / `inherit` |
| Systems programming / bug-fixing / refactoring | `gemini-4-argon` |
| Fast execution / verification / exploration | `gemini-4-hydrogen` or `flash` / `flash_lite` |
| Multi-model review panels & arenas | Diverse combination (e.g. `gemini-4-carbon`, `gemini-4-argon`, `orchestrator`) |

Read per-role overrides from `~/.gemini/config/plugins/agystack/agystack-models.md` (or `.agents/plugins/agystack/agystack-models.md`). If a line is missing, use the defaults above.

Keep panels diverse across available tiers (`inherit`, `flash`, `pro`). One subagent runs per list entry.
Keep panels diverse across available models (`gemini-4-carbon`, `gemini-4-argon`, `orchestrator` or `inherit`, `flash`, `pro`). One subagent runs per list entry.

## Antigravity Slash Commands & Multi-Agent Capabilities

Expand Down
8 changes: 7 additions & 1 deletion skills/setup-agystack/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,14 @@ Enumerate the model tiers you can pass to `invoke_subagent` (local) and `cloud_d
- `flash_lite`: Lightweight tier (minimal latency for quick lookups)
- `inherit` (or `auto`): Inherit parent chat model

**Google Gemini 4 Core Matrix (Ultra 5x/20x tiers):**
- `orchestrator`: Dynamic multi-model scheduling and task handoff across Carbon / Argon / Hydrogen
- `gemini-4-carbon`: Flagship heavy reasoning and complex planning with configurable thinking depth
- `gemini-4-argon`: Frontier software engineering and systems implementation for continuous agent workflows
- `gemini-4-hydrogen`: High-speed execution and automated verification (Worker/Verifier)

**Cloud Run swarm model tiers (`cloud_dispatch.py`):**
- **Tier 1 (Zero-Friction MaaS):** `gemini-4-argon`, `gemini-3.8-flash`, `deepseek-v4.1-flash` (Instant on global Vertex endpoint, zero forms).
- **Tier 1 (Zero-Friction MaaS):** `gemini-4-carbon`, `gemini-4-argon`, `gemini-4-hydrogen`, `gemini-3.8-flash`, `deepseek-v4.1-flash` (Instant on global Vertex endpoint, zero forms).
- **Tier 2 (Gated Partner MaaS):** `claude-3-7-sonnet`, `claude-3-5-sonnet`, `claude-3-opus` (Requires one-time Console agreement).
- **Tier 3 (Dedicated GPU Endpoint):** Open-weights models like `glm-5-3-flash` requiring dedicated 8x H100/B200 GPU instances.

Expand Down
2 changes: 2 additions & 0 deletions skills/setup-agystack/scripts/setup_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ def check_model_garden(project_id=None, region="us-central1", run_cmd_fn=None, i
"region": region,
"anthropic_installed": False,
"serverless_models": [
"gemini-4-carbon",
"gemini-4-argon",
"gemini-4-hydrogen",
"gemini-3.8-flash",
"gemini-3.1-pro",
"deepseek-v4.1-flash-maas",
Expand Down
2 changes: 1 addition & 1 deletion skills/swarm/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Before launching cloud swarms, match the model to the project's Model Garden ena

| Tier | Models | Endpoint Type | Friction | Setup Required |
|---|---|---|---|---|
| **Tier 1: Native MaaS** | `gemini-4-argon`, `gemini-3.8-flash`, `deepseek-v4.1-flash` | Global Serverless | **Zero** | Instant via existing ADC / project IAM |
| **Tier 1: Native MaaS** | `gemini-4-carbon`, `gemini-4-argon`, `gemini-4-hydrogen`, `gemini-3.8-flash`, `deepseek-v4.1-flash` | Global Serverless | **Zero** | Instant via existing ADC / project IAM |
| **Tier 2: Gated Partner MaaS** | `claude-3-7-sonnet`, `claude-3-5-sonnet`, `claude-3-opus` | Regional Serverless | **Low / One-Time** | Console agreement click-through required |
| **Tier 3: Dedicated GPU** | `glm-5-3-flash`, `llama-3.3-70b` | Dedicated Endpoint | **High** | Dedicated 8x H100/B200 GPU instance provisioning |

Expand Down
16 changes: 13 additions & 3 deletions skills/swarm/scripts/cloud_dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ def run_preflight(
)

if not vertex_location:
vertex_location = "global" if (model and (model.startswith(("gemini-2.5", "gemini-3", "gemini-4")) or "deepseek" in model.lower())) else region
vertex_location = "global" if (model and (model.startswith(("gemini-2.5", "gemini-3", "gemini-4")) or model == "orchestrator" or "deepseek" in model.lower())) else region

# 1. Git Authentication & Repository Accessibility Check
if not repo_url:
Expand Down Expand Up @@ -1145,9 +1145,17 @@ def resolve_swarm_model(
"pro": "gemini-3.1-pro",
"flash_lite": "gemini-3.1-flash-lite",
"flash-lite": "gemini-3.1-flash-lite",
"carbon": "gemini-4-carbon",
"gemini-carbon": "gemini-4-carbon",
"gemini-4-carbon": "gemini-4-carbon",
"argon": "gemini-4-argon",
"gemini-argon": "gemini-4-argon",
"gemini-4-argon": "gemini-4-argon",
"gemini-4": "gemini-4-argon",
"hydrogen": "gemini-4-hydrogen",
"gemini-hydrogen": "gemini-4-hydrogen",
"gemini-4-hydrogen": "gemini-4-hydrogen",
"orchestrator": "orchestrator",
"gemini": "gemini-3.8-flash",
"deepseek": "deepseek-v4.1-flash",
"deepseek-flash": "deepseek-v4.1-flash",
Expand Down Expand Up @@ -1344,7 +1352,9 @@ def main() -> None:
Vertex AI Model Garden Tiers for Cloud Swarms:
-----------------------------------------------------------------------------------------
Tier 1: Native MaaS (Instant Serverless, Zero Forms)
- gemini-4-argon Global Vertex AI endpoint, deep reasoning
- gemini-4-carbon Global Vertex AI endpoint, flagship reasoning & planning
- gemini-4-argon Global Vertex AI endpoint, deep reasoning & systems engineering
- gemini-4-hydrogen Global Vertex AI endpoint, high-speed execution & verification
- gemini-3.8-flash Global Vertex AI endpoint, balanced speed
- gemini-3.1-pro Global Vertex AI endpoint, high capability
- deepseek-v4.1-flash Global Vertex AI endpoint (deepseek-ai namespace)
Expand Down Expand Up @@ -1409,7 +1419,7 @@ def main() -> None:
explicit_vertex_loc = args.vertex_location or runtime_cfg.get("vertex_location")
if explicit_vertex_loc:
vertex_location = explicit_vertex_loc
elif model and (model.startswith(("gemini-2.5", "gemini-3", "gemini-4")) or "deepseek" in model.lower()):
elif model and (model.startswith(("gemini-2.5", "gemini-3", "gemini-4")) or model == "orchestrator" or "deepseek" in model.lower()):
vertex_location = "global"
else:
vertex_location = region
Expand Down
8 changes: 8 additions & 0 deletions skills/swarm/scripts/cloud_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,9 +756,17 @@ def resolve_worker_model(raw_model: Optional[str] = None, task_item: Any = None)
"pro": "gemini-3.1-pro",
"flash_lite": "gemini-3.1-flash-lite",
"flash-lite": "gemini-3.1-flash-lite",
"carbon": "gemini-4-carbon",
"gemini-carbon": "gemini-4-carbon",
"gemini-4-carbon": "gemini-4-carbon",
"argon": "gemini-4-argon",
"gemini-argon": "gemini-4-argon",
"gemini-4-argon": "gemini-4-argon",
"gemini-4": "gemini-4-argon",
"hydrogen": "gemini-4-hydrogen",
"gemini-hydrogen": "gemini-4-hydrogen",
"gemini-4-hydrogen": "gemini-4-hydrogen",
"orchestrator": "orchestrator",
"gemini": "gemini-3.8-flash",
"deepseek": "publishers/deepseek-ai/models/deepseek-v4.1-flash-maas",
"deepseek-flash": "publishers/deepseek-ai/models/deepseek-v4.1-flash-maas",
Expand Down
13 changes: 13 additions & 0 deletions tests/test_cloud_preflight_and_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,9 @@ def test_cloud_dispatch_list_models_flag(self):
self.assertIn("Tier 3: Dedicated GPU Cluster Endpoints", out)
self.assertIn("glm-5-3-flash", out)
self.assertIn("llama-3.3-70b", out)
self.assertIn("gemini-4-carbon", out)
self.assertIn("gemini-4-argon", out)
self.assertIn("gemini-4-hydrogen", out)
self.assertIn("deepseek-v4.1-flash", out)

@patch("urllib.request.urlopen")
Expand Down Expand Up @@ -853,12 +855,23 @@ def test_resolve_swarm_model_tier_mappings(self):
self.assertEqual(resolve_swarm_model(cli_model="auto"), "gemini-3.8-flash")
self.assertEqual(resolve_swarm_model(cli_model="inherit-parent"), "gemini-3.8-flash")
self.assertEqual(resolve_swarm_model(cli_model="inherit_parent"), "gemini-3.8-flash")
self.assertEqual(resolve_swarm_model(cli_model="carbon"), "gemini-4-carbon")
self.assertEqual(resolve_swarm_model(cli_model="gemini-carbon"), "gemini-4-carbon")
self.assertEqual(resolve_swarm_model(cli_model="argon"), "gemini-4-argon")
self.assertEqual(resolve_swarm_model(cli_model="gemini-argon"), "gemini-4-argon")
self.assertEqual(resolve_swarm_model(cli_model="hydrogen"), "gemini-4-hydrogen")
self.assertEqual(resolve_swarm_model(cli_model="gemini-hydrogen"), "gemini-4-hydrogen")
self.assertEqual(resolve_swarm_model(cli_model="orchestrator"), "orchestrator")
self.assertEqual(resolve_swarm_model(cli_model="gemini"), "gemini-3.8-flash")
self.assertEqual(resolve_swarm_model(cli_model="deepseek"), "deepseek-v4.1-flash")
self.assertEqual(resolve_swarm_model(cli_model="deepseek-flash"), "deepseek-v4.1-flash")
self.assertEqual(cloud_worker.resolve_worker_model("carbon"), "gemini-4-carbon")
self.assertEqual(cloud_worker.resolve_worker_model("gemini-carbon"), "gemini-4-carbon")
self.assertEqual(cloud_worker.resolve_worker_model("argon"), "gemini-4-argon")
self.assertEqual(cloud_worker.resolve_worker_model("gemini-argon"), "gemini-4-argon")
self.assertEqual(cloud_worker.resolve_worker_model("hydrogen"), "gemini-4-hydrogen")
self.assertEqual(cloud_worker.resolve_worker_model("gemini-hydrogen"), "gemini-4-hydrogen")
self.assertEqual(cloud_worker.resolve_worker_model("orchestrator"), "orchestrator")
self.assertEqual(cloud_worker.resolve_worker_model("deepseek"), "publishers/deepseek-ai/models/deepseek-v4.1-flash-maas")
self.assertEqual(cloud_worker.resolve_worker_model("deepseek-flash"), "publishers/deepseek-ai/models/deepseek-v4.1-flash-maas")

Expand Down
4 changes: 4 additions & 0 deletions tests/test_cloud_worker_vertex_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,12 @@ def test_gemini_models_are_not_partner_models(self):
"gemini-3.8-flash",
"gemini-3.1-pro",
"gemini-3.1-flash-lite",
"gemini-4-carbon",
"gemini-4-argon",
"gemini-4-hydrogen",
"carbon",
"argon",
"hydrogen",
"flash",
"pro",
]
Expand Down
6 changes: 3 additions & 3 deletions tests/test_setup_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,11 +512,11 @@ def test_parse_model_config_success(self):
self.assertTrue(res["ok"])
self.assertGreater(res["roles_count"], 0)
self.assertIn("arena runners", res["roles"])
self.assertEqual(res["roles"]["arena runners"], ["inherit", "flash", "pro"])
self.assertEqual(res["roles"]["arena runners"], ["gemini-4-carbon", "gemini-4-argon", "orchestrator"])
self.assertIn("swarm workers", res["roles"])
self.assertEqual(res["roles"]["swarm workers"], ["flash"])
self.assertEqual(res["roles"]["swarm workers"], ["gemini-4-hydrogen"])
self.assertIn("feature", res["roles"])
self.assertEqual(res["roles"]["feature"], ["inherit"])
self.assertEqual(res["roles"]["feature"], ["gemini-4-argon"])

def test_parse_model_config_missing_file(self):
res = setup_runtime.parse_model_config(config_path="/nonexistent/agystack-models.md")
Expand Down