diff --git a/agystack-models.md b/agystack-models.md index 89ca3bf..93cbdd1 100644 --- a/agystack-models.md +++ b/agystack-models.md @@ -1,27 +1,29 @@ # 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) +# Only Gemini 4 models are permitted (never use legacy `flash` or `pro` tiers): +# - gemini-4-neon-{low,medium,high,xhigh} (Primary preference: balanced frontier reasoning & coding; default thought_level: high) +# - gemini-4-argon-{low,medium,high} (Deep logic, multi-step math, and strict situational oversight; default thought_level: high) +# - gemini-4-hydrogen-{low,medium,high,xhigh} (High-speed, high-efficiency execution, exploration, and swarm workers; default thought_level: medium) +# +# When invoking Antigravity's native `invoke_subagent` (whose schema only accepts `inherit` / `flash` / `pro` / `flash_lite`), +# always pass `Model: "inherit"` instead of `flash` or `pro`, or use `delegate_task` / `swarm` to target the exact Gemini 4 model + thought_level. -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 +feature, refactoring: gemini-4-neon-high +bug-fix: gemini-4-neon-xhigh +perf-issue: gemini-4-neon-xhigh +hillclimb: gemini-4-neon-xhigh +judgment and prose: gemini-4-neon-xhigh +hardest tasks: gemini-4-neon-xhigh +how explorer: gemini-4-hydrogen-medium +how explainer: gemini-4-neon-high +why investigators: gemini-4-hydrogen-medium +why synthesizer: gemini-4-neon-xhigh +reflect tooling: gemini-4-neon-high +reflect judgment, divergent, synthesizer: gemini-4-neon-xhigh +arena runners: gemini-4-neon-high, gemini-4-argon-high, gemini-4-hydrogen-medium +arena cross-judge pool: gemini-4-neon-xhigh, gemini-4-argon-high +swarm workers: gemini-4-hydrogen-medium +architect runners: gemini-4-neon-high, gemini-4-argon-high, gemini-4-hydrogen-medium +interrogate reviewers: gemini-4-neon-high, gemini-4-argon-high, gemini-4-hydrogen-medium diff --git a/skills/architect/SKILL.md b/skills/architect/SKILL.md index 86aa2f6..54935bc 100644 --- a/skills/architect/SKILL.md +++ b/skills/architect/SKILL.md @@ -32,7 +32,7 @@ Skip Phase A only when the work is genuinely greenfield with no surrounding syst Run the **arena** skill with the design-sketch task and the Phase A grounding artifacts. Pass `references/runner-prompt.md` as each runner's prompt. Each candidate produces a design package shaped per `references/rationale-template.md`: the caller's usage written first, then the type sketch, function signatures, module map, and prose rationale derived from it. -Use your configured architect runners (defaults `pro`, `flash`, `inherit`). +Use your configured architect runners (defaults `gemini-4-neon-high`, `gemini-4-argon-high`, `gemini-4-hydrogen-medium`; never `flash` or `pro`). Design it twice. Require at least two structurally distinct candidates before synthesis, even when the first looks sufficient. This is the **exhaust-the-design-space** principle skill made concrete. Whole-shape alternatives, not point fixes inside one shape. diff --git a/skills/arena/SKILL.md b/skills/arena/SKILL.md index f71c68a..bdfff8a 100644 --- a/skills/arena/SKILL.md +++ b/skills/arena/SKILL.md @@ -21,7 +21,7 @@ Open a todolist tracking the operational phases: 1. **Artifact.** Define the target output each candidate must produce. 2. **Rubric.** Formulate 3-6 concrete, gradeable criteria (e.g. `Adds a --dry-run flag that skips writes`). -3. **Runners.** Use `arena runners` from `~/.gemini/config/plugins/agystack/agystack-models.md` if configured, or default across available tiers: `pro`, `flash`, `inherit`. +3. **Runners.** Use `arena runners` from `~/.gemini/config/plugins/agystack/agystack-models.md` if configured, or default across permitted Gemini 4 models: `gemini-4-neon-high`, `gemini-4-argon-high`, `gemini-4-hydrogen-medium` (never use legacy `flash` or `pro`). 4. **Workspaces.** Assign isolated workspaces via `Workspace: "branch"` or scratch paths (`/brain//scratch/arena-/candidate-/`) per **principle-separate-before-serializing-shared-state**. ## Phase B: Fan out @@ -41,7 +41,7 @@ Provide `{PARENT_CONVERSATION_ID}` in each prompt. Candidates MUST invoke `send_ ## Phase C: Cross-judge -Spawn one judge subagent via `invoke_subagent` (`TypeName: "research"`, `Role: "Arena Cross-Judge"`). The cross-judge must be selected from a different model family than the candidates. For Antigravity, assign the judge role to `Model: "pro"` (Gemini Pro) to ensure deep comparative judgment over Flash candidate drafts. The judge scores candidates against rubric criteria and recommends a base with rationale. +Spawn one judge subagent (`Role: "Arena Cross-Judge"`). Assign the judge role from `arena cross-judge pool` (default: `gemini-4-neon-xhigh` or `gemini-4-argon-high`; never `flash` or `pro`) via `delegate_task`, or `invoke_subagent` with `Model: "inherit"`. The judge scores candidates against rubric criteria and recommends a base with rationale. ## Phase D: Pick a base diff --git a/skills/interrogate/SKILL.md b/skills/interrogate/SKILL.md index 1093ded..12f8ca6 100644 --- a/skills/interrogate/SKILL.md +++ b/skills/interrogate/SKILL.md @@ -5,7 +5,7 @@ description: "Use for \"interrogate\", \"adversarial review\", \"multi-model rev # Interrogate -Spawn one reviewer per configured model to adversarially review code changes. Independent models evaluate code across thinking budgets (`pro`, `flash`, `inherit`) to surface blind spots. Consensus across models represents high-confidence signal; lone-model findings are lower-confidence but worth noting. +Spawn one reviewer per configured model to adversarially review code changes. Independent Gemini 4 models evaluate code across thinking budgets (`gemini-4-neon-high`, `gemini-4-argon-high`, `gemini-4-hydrogen-medium`) to surface blind spots. Consensus across models represents high-confidence signal; lone-model findings are lower-confidence but worth noting. The deliverable is a synthesized verdict. Do not auto-apply edits. @@ -27,16 +27,16 @@ Launch all reviewers in a single turn using `invoke_subagent`. Simulating review Use the `interrogate reviewers` list from `~/.gemini/config/plugins/agystack/agystack-models.md` when present, or fall back to defaults: -| Subagent | Default model tier | +| Subagent | Default Gemini 4 model & effort | |---|---| -| Reviewer A | `pro` | -| Reviewer B | `flash` | -| Reviewer C | `inherit` | +| Reviewer A | `gemini-4-neon-high` | +| Reviewer B | `gemini-4-argon-high` | +| Reviewer C | `gemini-4-hydrogen-medium` | -For each reviewer: +For each reviewer (using `delegate_task` for explicit Gemini 4 model/effort, or `invoke_subagent` with `Model: "inherit"` — never `flash` or `pro`): - `TypeName`: `research` (or `self`) -- `Role`: `Adversarial Reviewer ()` -- `Model`: configured tier (or `pro`, `flash`, `inherit`) +- `Role`: `Adversarial Reviewer ()` +- `Model`: configured Gemini 4 model + `thought_level` (or `inherit` for `invoke_subagent`) - `Workspace`: `inherit` Fill `references/reviewer-prompt.md` with: diff --git a/skills/poteto-mode/references/antigravity-tools.md b/skills/poteto-mode/references/antigravity-tools.md index 2286f0e..6c4b0ea 100644 --- a/skills/poteto-mode/references/antigravity-tools.md +++ b/skills/poteto-mode/references/antigravity-tools.md @@ -72,7 +72,7 @@ For 8 or fewer independent parallel workers, verification lanes, or candidate ra ### Recipe -1. **Batch Spawn:** Dispatch all workers in a single `invoke_subagent` call with `TypeName: "poteto-agent"` (or `"self"`), `Role: "Worker ()"`, `Workspace: "branch"`, and the model resolved from `swarm workers` in `~/.gemini/config/plugins/agystack/agystack-models.md` (default: `flash`). +1. **Batch Spawn:** Dispatch all workers in a single turn with `Workspace: "branch"`, using `delegate_task` / `swarm` with the model resolved from `swarm workers` in `~/.gemini/config/plugins/agystack/agystack-models.md` (default: `gemini-4-hydrogen-medium`), or `invoke_subagent` with `TypeName: "poteto-agent"` (or `"self"`), `Role: "Worker ()"`, and `Model: "inherit"` (never `flash` or `pro`). 2. **Mandatory Reporting Contract:** In each worker's prompt, provide `{PARENT_CONVERSATION_ID}` and mandate that upon completing work and verification, the worker MUST invoke `send_message` with `Recipient: "{PARENT_CONVERSATION_ID}"` and its findings/status. 3. **Reactive Watchdog Protocol:** - Arm a single unconditional watchdog deadline: `schedule(DurationSeconds: 300..600, Prompt="Watchdog: local fan-out timed out", TimerCondition: "never")`. @@ -184,23 +184,23 @@ 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. +Only Gemini 4 models are permitted (`gemini-4-neon`, `gemini-4-argon`, `gemini-4-hydrogen`), with `gemini-4-neon` as the primary preference. Legacy `flash` and `pro` tiers are disallowed. -- `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) -- `pro` (High-capability tier) -- `flash` (Balanced fast tier: fast exploration, standard implementation, and reviews) -- `flash_lite` (Lightweight tier: fast mechanical scans and lookups) +- `gemini-4-neon` (`thought_level`: `low`, `medium`, `high` [default], `xhigh`): Primary model for coding, refactoring, debugging, deep judgment, and synthesis. +- `gemini-4-argon` (`thought_level`: `low`, `medium`, `high` [default]): Heavy logic, multi-step math, and strict situational oversight for diverse panel reviews. +- `gemini-4-hydrogen` (`thought_level`: `low`, `medium` [default], `high`, `xhigh`): High-speed, high-efficiency execution for codebase exploration, investigations, and high-volume swarm workers. +- `inherit` (Native `invoke_subagent` fallback): When using Antigravity's `invoke_subagent` (whose schema only accepts `inherit` / `flash` / `pro` / `flash_lite`), always pass `Model: "inherit"` (never `flash` or `pro`). Use `delegate_task` or `swarm` whenever targeting a specific Gemini 4 model and `thought_level`. -| Role / Intent | Antigravity Model Tier | +| Role / Intent | Gemini 4 Model & Effort (`thought_level`) | | --- | --- | -| 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` | +| Hardest tasks, bugs, perf, judgment, synthesis | `gemini-4-neon-xhigh` | +| Core feature implementation, refactoring, explainers | `gemini-4-neon-high` | +| Fast exploration, investigation, swarm workers | `gemini-4-hydrogen-medium` | +| Multi-model review panels | `gemini-4-neon-high`, `gemini-4-argon-high`, `gemini-4-hydrogen-medium` | 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 the permitted Gemini 4 models (`gemini-4-neon`, `gemini-4-argon`, `gemini-4-hydrogen`). One subagent runs per list entry. ## Antigravity Slash Commands & Multi-Agent Capabilities diff --git a/skills/setup-agystack/SKILL.md b/skills/setup-agystack/SKILL.md index b954da9..1bf007b 100644 --- a/skills/setup-agystack/SKILL.md +++ b/skills/setup-agystack/SKILL.md @@ -54,16 +54,16 @@ Do not leave the user to do the work. Complete the deployment end-to-end for the ### 2. Detect available models -Enumerate the model tiers you can pass to `invoke_subagent` (local) and `cloud_dispatch.py` (Cloud Run): +Enumerate the Gemini 4 models and `thought_level` effort tiers for `delegate_task`, `swarm`, and `cloud_dispatch.py` (never use legacy `flash` or `pro` tiers): -**Local subagent tiers (`invoke_subagent`):** -- `pro`: High-capability tier (maximum reasoning budget for complex code, architecture, and hard tasks) -- `flash`: Balanced fast tier (fast execution for exploration and standard generation) -- `flash_lite`: Lightweight tier (minimal latency for quick lookups) -- `inherit` (or `auto`): Inherit parent chat model +**Permitted Gemini 4 models & effort balancing (`thought_level`):** +- **`gemini-4-neon` (Primary preference — `low`, `medium`, `high` [default], `xhigh`):** Balanced frontier reasoning & coding model. Use `xhigh` for hardest tasks, `bug-fix`, `perf-issue`, `hillclimb`, `judgment and prose`, and synthesis/cross-judging; use `high` for `feature, refactoring`, `how explainer`, and lead panel runners. +- **`gemini-4-argon` (`low`, `medium`, `high` [default]):** Deep logic, multi-step math, and strict situational oversight. Use `high` for diverse panel perspectives (`arena`, `architect`, `interrogate`) and cross-judging. +- **`gemini-4-hydrogen` (`low`, `medium` [default], `high`, `xhigh`):** High-speed, high-efficiency execution. Use `medium` for codebase exploration (`how explorer`, `why investigators`), high-volume `swarm workers`, and fast panel diversity. +- **Native `invoke_subagent` fallback:** When a workflow uses Antigravity's `invoke_subagent` (whose `Model` enum only accepts `inherit` / `flash` / `pro` / `flash_lite`), always pass `Model: "inherit"` (never `flash` or `pro`), or dispatch via `delegate_task` / `swarm` to target the exact Gemini 4 model and `thought_level`. **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-neon`, `gemini-4-argon`, `gemini-4-hydrogen` (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. @@ -83,29 +83,28 @@ Write to `.agents/plugins/agystack/agystack-models.md` if installed workspace-lo ``` # agystack model configuration. One line per role. Delete a line to fall back to the skill default. -# Antigravity model tiers for invoke_subagent: -# - pro (High-capability tier: deep reasoning, large refactors, complex design) -# - flash (Balanced fast tier: exploration, reading, standard code generation) -# - flash_lite (Lightweight tier: fast mechanical lookups) -# - inherit (Runs on the active parent chat session model) - -feature, refactoring: pro -bug-fix: pro -perf-issue: pro -hillclimb: pro -judgment and prose: pro -hardest tasks: pro -how explorer: flash -how explainer: pro -why investigators: flash -why synthesizer: pro -reflect tooling: pro -reflect judgment, divergent, synthesizer: pro -arena runners: pro, flash, inherit -arena cross-judge pool: pro, flash, inherit -swarm workers: flash -architect runners: pro, flash, inherit -interrogate reviewers: pro, flash, inherit +# Only Gemini 4 models are permitted (never use legacy `flash` or `pro` tiers): +# - gemini-4-neon-{low,medium,high,xhigh} (Primary preference: balanced frontier reasoning & coding) +# - gemini-4-argon-{low,medium,high} (Deep logic, multi-step math, and strict oversight) +# - gemini-4-hydrogen-{low,medium,high,xhigh} (High-speed execution, exploration, and swarm workers) + +feature, refactoring: gemini-4-neon-high +bug-fix: gemini-4-neon-xhigh +perf-issue: gemini-4-neon-xhigh +hillclimb: gemini-4-neon-xhigh +judgment and prose: gemini-4-neon-xhigh +hardest tasks: gemini-4-neon-xhigh +how explorer: gemini-4-hydrogen-medium +how explainer: gemini-4-neon-high +why investigators: gemini-4-hydrogen-medium +why synthesizer: gemini-4-neon-xhigh +reflect tooling: gemini-4-neon-high +reflect judgment, divergent, synthesizer: gemini-4-neon-xhigh +arena runners: gemini-4-neon-high, gemini-4-argon-high, gemini-4-hydrogen-medium +arena cross-judge pool: gemini-4-neon-xhigh, gemini-4-argon-high +swarm workers: gemini-4-hydrogen-medium +architect runners: gemini-4-neon-high, gemini-4-argon-high, gemini-4-hydrogen-medium +interrogate reviewers: gemini-4-neon-high, gemini-4-argon-high, gemini-4-hydrogen-medium ``` ### 6. Confirm diff --git a/tests/test_setup_runtime.py b/tests/test_setup_runtime.py index c5f0fa1..0291b30 100644 --- a/tests/test_setup_runtime.py +++ b/tests/test_setup_runtime.py @@ -530,11 +530,14 @@ 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-neon-high", "gemini-4-argon-high", "gemini-4-hydrogen-medium"], + ) self.assertIn("swarm workers", res["roles"]) - self.assertEqual(res["roles"]["swarm workers"], ["flash"]) + self.assertEqual(res["roles"]["swarm workers"], ["gemini-4-hydrogen-medium"]) self.assertIn("feature", res["roles"]) - self.assertEqual(res["roles"]["feature"], ["inherit"]) + self.assertEqual(res["roles"]["feature"], ["gemini-4-neon-high"]) def test_check_skill_collisions_absent(self):