Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
Upgrade Gemini integration to Antigravity CLI
[._.]/ Adam Eivye065447a0cae
diff --git a/CLAUDE.md b/CLAUDE.mdindex 21e9f9f2c9..469cbdb6b1 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -75,7 +75,7 @@ The AI provider/runner/prompt toolkit is vendored in-tree at `server/lib/aiToolk- When adding new provider fields (e.g., `fallbackProvider`, `lightModel`), update `createProvider()` in `server/lib/aiToolkit/providers.js`- `updateProvider()` uses spread so existing providers preserve custom fields, but `createProvider()` has an explicit field list-**Override consistency.** PortOS replaces `aiToolkit.services.runner.executeCliRun` in `server/index.js` with a stdin-based variant that knows the per-CLI argv conventions (Codex `exec -`, Gemini stdin piping, Claude Code `-p -`). Two patches follow from this:+**Override consistency.** PortOS replaces `aiToolkit.services.runner.executeCliRun` in `server/index.js` with a stdin-based variant that knows the per-CLI argv conventions (Codex `exec -`, Antigravity `agy --print`, Claude Code `-p -`). Two patches follow from this:- The PortOS variant tracks live child processes in `_portosActiveRuns`, not the toolkit's internal `activeRuns`. **Every sibling method that reads or writes the runner's process map must be patched together** — `stopRun` and `isRunActive` are already overridden alongside `executeCliRun`; if you add a new method (e.g. `pauseRun`, `getActiveRunCount`), add a matching override or the runs router will report inconsistent state.- Time-based state transitions need read-side mirrors. `providerStatus.init()` clears expired `estimatedRecovery` entries; every reader (`getStatus`, `getAllStatuses`, `isAvailable`) must re-apply the same recovery check on read — otherwise providers stay "unavailable" past their recovery deadline until the next process restart.diff --git a/GOALS.md b/GOALS.mdindex 79c77f0b93..1f7b86e1db 100644--- a/GOALS.md+++ b/GOALS.md@@ -14,7 +14,7 @@ Single dashboard for managing active git repos, PM2 processes, logs, and JIRA in### 2. Autonomous AI Agent Orchestration-Chief of Staff (CoS) system that autonomously generates tasks from goals, routes them to the best AI provider based on learned success rates, and executes without human intervention. Multi-provider support (Claude, Codex, Gemini, Ollama, LM Studio) with fallback chains, model tier selection, and continuous learning from outcomes. The system should get smarter over time, not just execute.+Chief of Staff (CoS) system that autonomously generates tasks from goals, routes them to the best AI provider based on learned success rates, and executes without human intervention. Multi-provider support (Claude, Codex, Antigravity, Ollama, LM Studio) with fallback chains, model tier selection, and continuous learning from outcomes. The system should get smarter over time, not just execute.### 3. Personal Knowledge Managementdiff --git a/README.md b/README.mdindex ef705b2830..193b350f64 100644--- a/README.md+++ b/README.md@@ -60,7 +60,7 @@ Bring your entire portfolio of projects under one roof.An autonomous AI agent orchestrator that manages your development workflow. Submit a task, and CoS dispatches the right AI agent to handle it — then learns from the result. ([Full docs](./docs/features/chief-of-staff.md))-- **Multi-Agent Orchestration** — Run Claude Code, Codex, Gemini CLI, Ollama, and LM Studio concurrently with global and per-project limits, capacity management, and fair scheduling ([Agent Runner docs](./docs/features/cos-agent-runner.md))+- **Multi-Agent Orchestration** — Run Claude Code, Codex, Antigravity CLI, Ollama, and LM Studio concurrently with global and per-project limits, capacity management, and fair scheduling ([Agent Runner docs](./docs/features/cos-agent-runner.md))- **Intelligent Routing** — 6 agent skill templates (bug-fix, feature, security-audit, refactor, docs, mobile) route tasks to the best model based on complexity ([Agent Skills docs](./docs/features/agent-skills.md))- **Task Learning** — Tracks success rates, error patterns, and model performance to dynamically improve routing decisions ([Memory System docs](./docs/features/memory-system.md))- **Goal Tracking** — Define goals and track progress across hundreds of completed tasks with success rate metrics@@ -212,7 +212,7 @@ Track your biological self alongside your digital one.- **Command Palette (⌘K)** — Fuzzy-search every page, action, and dashboard layout in PortOS from one input. The same manifest powers voice navigation (`ui_navigate`)- **Dashboard Layouts** — Multiple named dashboard layouts (default, focus, morning-review, ops) with a 12-column drag/resize grid; switch between them from `⌘K`- **Theming** — Day/night theme pairs with one-click toggle-- **Multi-Provider AI** — Configure Claude, OpenAI, Gemini, Ollama, LM Studio, and more with model tiers, fallback chains, and per-provider availability tracking+- **Multi-Provider AI** — Configure Claude, OpenAI, Antigravity, Ollama, LM Studio, and more with model tiers, fallback chains, and per-provider availability tracking- **Secret Management** — Environment variable masking, API key redaction, and PTY shell allowlisting- **File Uploads** — Drag-and-drop file storage with preview support- **Multi-Instance** — Peer-to-peer networking between PortOS instances with app and agent availability across nodes@@ -276,7 +276,7 @@ PortOS binds to `0.0.0.0` so you can access it from any device on your Tailscale| **Frontend** | React 18, Vite, Tailwind CSS, Three.js, xterm.js || **Backend** | Express.js, Socket.IO, PM2, Zod validation || **Data** | PostgreSQL, JSON file persistence, vector embeddings |-| **AI** | Claude Code, Codex, Gemini CLI, Ollama, LM Studio (via [portos-ai-toolkit](https://www.npmjs.com/package/portos-ai-toolkit)) |+| **AI** | Claude Code, Codex, Antigravity CLI, Ollama, LM Studio (via [portos-ai-toolkit](https://www.npmjs.com/package/portos-ai-toolkit)) |## Project Structure@@ -315,7 +315,7 @@ Each registered app includes:### AI Providers (`data/providers.json`)Configure AI providers for the runner and Chief of Staff:-- **CLI-based**: Claude Code, Codex, Gemini CLI+- **CLI-based**: Claude Code, Codex, Antigravity CLI- **API-based**: OpenAI, Anthropic, Google (with model tier management)- **Local models**: Ollama, LM Studio (OpenAI-compatible endpoints)diff --git a/client/src/components/cos/ReviewerPicker.jsx b/client/src/components/cos/ReviewerPicker.jsxindex 42f66394ba..f024eecced 100644--- a/client/src/components/cos/ReviewerPicker.jsx+++ b/client/src/components/cos/ReviewerPicker.jsx@@ -7,6 +7,7 @@ import {} from './constants';const labelFor = (value) => REVIEWER_OPTIONS.find(o => o.value === value)?.label || value;+const normalizeReviewerValue = (value) => value === 'gemini' ? 'antigravity' : value;/*** Ordered multi-reviewer picker. Click a reviewer to append it (run order =@@ -29,7 +30,7 @@ export default function ReviewerPicker({// dupes would otherwise collide on the `key={value}` below and corrupt// reorder/remove. An empty list shows the "defaults to Copilot" hint and lets// the user clear copilot; the server/submit layer resolves [] → ['copilot'].- const selected = Array.isArray(reviewers) ? [...new Set(reviewers)] : [];+ const selected = Array.isArray(reviewers) ? [...new Set(reviewers.map(normalizeReviewerValue))] : [];const available = REVIEWER_OPTIONS.filter(o => !selected.includes(o.value));const hasNonCopilot = selected.some(r => r !== 'copilot');diff --git a/client/src/components/cos/ReviewerPicker.test.jsx b/client/src/components/cos/ReviewerPicker.test.jsxindex 7462eefc87..0cec85e2aa 100644--- a/client/src/components/cos/ReviewerPicker.test.jsx+++ b/client/src/components/cos/ReviewerPicker.test.jsx@@ -5,7 +5,7 @@ import ReviewerPicker from './ReviewerPicker';describe('ReviewerPicker', () => {it('renders the selected reviewers in order with numbered badges', () => {- render(<ReviewerPicker reviewers={['codex', 'gemini', 'copilot']} onChange={() => {}} />);+ render(<ReviewerPicker reviewers={['codex', 'antigravity', 'copilot']} onChange={() => {}} />);expect(screen.getByText('1.')).toBeInTheDocument();expect(screen.getByText('2.')).toBeInTheDocument();expect(screen.getByText('3.')).toBeInTheDocument();@@ -19,7 +19,7 @@ describe('ReviewerPicker', () => {});it('de-dupes a malformed list with duplicates (order-preserving)', () => {- render(<ReviewerPicker reviewers={['codex', 'codex', 'gemini']} onChange={() => {}} />);+ render(<ReviewerPicker reviewers={['codex', 'codex', 'antigravity']} onChange={() => {}} />);// Two distinct pills (badges 1 and 2), not three.expect(screen.getByText('1.')).toBeInTheDocument();expect(screen.getByText('2.')).toBeInTheDocument();@@ -45,9 +45,9 @@ describe('ReviewerPicker', () => {it('reorders with the up arrow', async () => {const onChange = vi.fn();const user = userEvent.setup();- render(<ReviewerPicker reviewers={['codex', 'gemini', 'copilot']} onChange={onChange} />);- await user.click(screen.getByLabelText('Move Gemini earlier'));- expect(onChange).toHaveBeenCalledWith(expect.objectContaining({ reviewers: ['gemini', 'codex', 'copilot'] }));+ render(<ReviewerPicker reviewers={['codex', 'antigravity', 'copilot']} onChange={onChange} />);+ await user.click(screen.getByLabelText('Move Antigravity earlier'));+ expect(onChange).toHaveBeenCalledWith(expect.objectContaining({ reviewers: ['antigravity', 'codex', 'copilot'] }));});it('removes a reviewer', async () => {@@ -61,10 +61,15 @@ describe('ReviewerPicker', () => {it('shows the stop-mode select only for 2+ reviewers', () => {const { rerender } = render(<ReviewerPicker reviewers={['codex']} onChange={() => {}} />);expect(screen.queryByText('Stop mode:')).not.toBeInTheDocument();- rerender(<ReviewerPicker reviewers={['codex', 'gemini']} onChange={() => {}} />);+ rerender(<ReviewerPicker reviewers={['codex', 'antigravity']} onChange={() => {}} />);expect(screen.getByText('Stop mode:')).toBeInTheDocument();});+ it('normalizes legacy Gemini reviewer values to Antigravity', () => {+ render(<ReviewerPicker reviewers={['gemini']} onChange={() => {}} />);+ expect(screen.getByText('Antigravity')).toBeInTheDocument();+ });+it('shows the reviewer-applies toggle only when a non-copilot reviewer is present', () => {const { rerender } = render(<ReviewerPicker reviewers={['copilot']} onChange={() => {}} />);expect(screen.queryByText(/Reviewer applies fixes/)).not.toBeInTheDocument();diff --git a/client/src/components/cos/constants.js b/client/src/components/cos/constants.jsindex f63813e0be..334fd3cefa 100644--- a/client/src/components/cos/constants.js+++ b/client/src/components/cos/constants.js@@ -60,7 +60,7 @@ export const AGENT_OPTIONS = [];// Reviewer choices for the Review Loop. `copilot` requests a GitHub Copilot-// review via the native reviewer API; CLI reviewers (claude/gemini/codex)+// review via the native reviewer API; CLI reviewers (claude/antigravity/codex)// instruct the follow-up agent to invoke the named CLI; local-LLM reviewers// (lmstudio/ollama) route the diff through PortOS's `POST /api/code-review/local`// endpoint, which runs the model configured on the AI Providers → Code Review@@ -69,7 +69,7 @@ export const AGENT_OPTIONS = [export const REVIEWER_OPTIONS = [{ value: 'copilot', label: 'Copilot', description: 'GitHub Copilot (GitHub-only)' },{ value: 'claude', label: 'Claude', description: 'Claude CLI reviews the PR diff' },- { value: 'gemini', label: 'Gemini', description: 'Gemini CLI reviews the PR diff' },+ { value: 'antigravity', label: 'Antigravity', description: 'Antigravity CLI (agy) reviews the PR diff' },{ value: 'codex', label: 'Codex', description: 'Codex CLI reviews the PR diff' },{ value: 'lmstudio', label: 'LM Studio', description: 'Local LM Studio model reviews the diff (set model on AI Providers)' },{ value: 'ollama', label: 'Ollama', description: 'Local Ollama model reviews the diff (set model on AI Providers)' }@@ -91,6 +91,7 @@ export const DEFAULT_REVIEW_STOP_MODE = 'all';// server's normalizeReviewers): prefers `reviewers`, falls back to legacy// single `reviewer`, defaults to `['copilot']`.const REVIEWER_VALUES = REVIEWER_OPTIONS.map(o => o.value);+const REVIEWER_ALIASES = { gemini: 'antigravity' };export function normalizeReviewers(meta) {const raw = meta && typeof meta === 'object' && !Array.isArray(meta) ? meta : {};const source = Array.isArray(raw.reviewers)@@ -99,7 +100,8 @@ export function normalizeReviewers(meta) {const seen = new Set();const out = [];for (const r of source) {- if (REVIEWER_VALUES.includes(r) && !seen.has(r)) { seen.add(r); out.push(r); }+ const normalized = REVIEWER_ALIASES[r] || r;+ if (REVIEWER_VALUES.includes(normalized) && !seen.has(normalized)) { seen.add(normalized); out.push(normalized); }}return out.length ? out : [...DEFAULT_REVIEWERS];}@@ -272,7 +274,8 @@ const DYNAMIC_AVATAR_RULES = {provider: {codex: 'esoteric', // OpenAI Codex → mystical/ancient aesthetic'lm-studio': 'sigil', // Local LM Studio → arcane/occult aesthetic- 'gemini-cli': 'sigil', // Gemini → arcane aesthetic+ 'antigravity-cli': 'sigil', // Antigravity → arcane aesthetic+ 'gemini-cli': 'sigil', // Legacy Gemini configs → arcane aesthetic},// Improvement task analysis types → cyberpunk (system working on itself)analysisType: {diff --git a/client/src/components/digital-twin/tabs/TasteTab.jsx b/client/src/components/digital-twin/tabs/TasteTab.jsxindex 1ce12eb3ab..26dc2ecf1e 100644--- a/client/src/components/digital-twin/tabs/TasteTab.jsx+++ b/client/src/components/digital-twin/tabs/TasteTab.jsx@@ -90,7 +90,7 @@ export default function TasteTab({ onRefresh }) {const loadProviders = useCallback(async () => {const data = await api.getProviders().catch(() => ({ providers: [] }));// Taste summaries / personalized questions need a chat-completions endpoint —- // CLI providers (Claude Code, Codex, Gemini CLI) can't run them. Filter the+ // CLI providers (Claude Code, Codex, Antigravity CLI) can't run them. Filter the// picker so the user can't accidentally select an incompatible default.const apiProviders = (data.providers || []).filter(p => p.enabled && isApiProvider(p));setProviders(apiProviders);diff --git a/client/src/components/settings/VoiceTab.jsx b/client/src/components/settings/VoiceTab.jsxindex 72ba8eb627..4bc701afef 100644--- a/client/src/components/settings/VoiceTab.jsx+++ b/client/src/components/settings/VoiceTab.jsx@@ -117,7 +117,7 @@ export function VoiceTab() {.finally(() => setLoading(false));// Load the provider registry once. The conversational brain can only// stream through `api`-type providers (filtered here); the code-agent- // picker draws from `cli`/`tui` providers (Claude Code, Codex, Gemini) —+ // picker draws from `cli`/`tui` providers (Claude Code, Codex, Antigravity) —// those are the ones that can actually edit code. Silent: the empty-list// fallback is the error UI, so don't also pop a toast.getProviders({ silent: true })diff --git a/client/src/pages/AIProviders.jsx b/client/src/pages/AIProviders.jsxindex 9ab774f136..37a8d07348 100644--- a/client/src/pages/AIProviders.jsx+++ b/client/src/pages/AIProviders.jsx@@ -103,8 +103,8 @@ export default function AIProviders() {if (isTuiProvider(provider)) {return false;}- // Gemini CLI doesn't require model specification- if (provider.type === 'cli' && provider.command === 'gemini') {+ // Antigravity/Gemini CLIs use their own local model configuration.+ if (provider.type === 'cli' && (provider.command === 'agy' || provider.command === 'gemini')) {return false;}// All other providers support refresh (API and CLI)diff --git a/client/src/pages/Shell.jsx b/client/src/pages/Shell.jsxindex 084ff1626e..db6ea343ba 100644--- a/client/src/pages/Shell.jsx+++ b/client/src/pages/Shell.jsx@@ -15,7 +15,7 @@ const MAX_SESSIONS = 5;const QUICK_COMMANDS = [{ label: 'claude', command: 'claude --dangerously-skip-permissions' },{ label: 'codex', command: 'codex' },- { label: 'gemini', command: 'gemini' },+ { label: 'antigravity', command: 'agy' },{ label: 'openclaw', command: 'openclaw tui' },{ label: 'git status', command: 'git status' },{ label: 'git pull', command: 'git pull --rebase --autostash' },diff --git a/client/src/utils/providers.js b/client/src/utils/providers.jsindex e103ff2406..4aa3271c97 100644--- a/client/src/utils/providers.js+++ b/client/src/utils/providers.js@@ -4,6 +4,7 @@* model lists so the UI shows the explanatory note instead of a token dropdown.*/export const CODEX_CONFIGURED_DEFAULT = 'codex-configured-default';+export const ANTIGRAVITY_CONFIGURED_DEFAULT = 'antigravity-configured-default';/*** Provider-type enum mirrored from server/lib/aiToolkit/constants.js#PROVIDER_TYPES.@@ -26,7 +27,7 @@ export const PROVIDER_TYPES = Object.freeze({* @returns {string[]}*/export const filterSelectableModels = (models) =>- (models || []).filter(m => m !== CODEX_CONFIGURED_DEFAULT);+ (models || []).filter(m => m !== CODEX_CONFIGURED_DEFAULT && m !== ANTIGRAVITY_CONFIGURED_DEFAULT);/*** Check if a provider is a TUI-backed agent provider. Mirror ofdiff --git a/client/src/utils/providers.test.js b/client/src/utils/providers.test.jsindex 35f1561944..d963b23b11 100644--- a/client/src/utils/providers.test.js+++ b/client/src/utils/providers.test.js@@ -1,5 +1,6 @@import { describe, it, expect } from 'vitest';import {+ ANTIGRAVITY_CONFIGURED_DEFAULT,CODEX_CONFIGURED_DEFAULT,PROVIDER_TYPES,filterSelectableModels,@@ -33,8 +34,8 @@ describe('PROVIDER_TYPES', () => {});describe('filterSelectableModels', () => {- it('drops the codex-configured-default sentinel', () => {- expect(filterSelectableModels(['gpt-4', CODEX_CONFIGURED_DEFAULT, 'gpt-5'])).toEqual(['gpt-4', 'gpt-5']);+ it('drops configured-default sentinels', () => {+ expect(filterSelectableModels(['gpt-4', CODEX_CONFIGURED_DEFAULT, ANTIGRAVITY_CONFIGURED_DEFAULT, 'gpt-5'])).toEqual(['gpt-4', 'gpt-5']);});it('returns an empty array for null/undefined input', () => {diff --git a/data.reference/providers.json b/data.reference/providers.jsonindex cdb7c71251..fc15cf4d4a 100644--- a/data.reference/providers.json+++ b/data.reference/providers.json@@ -49,22 +49,20 @@"enabled": true,"envVars": {}},- "gemini-cli": {- "id": "gemini-cli",- "name": "Gemini CLI",+ "antigravity-cli": {+ "id": "antigravity-cli",+ "name": "Antigravity CLI","type": "cli",- "command": "gemini",- "args": [],- "models": ["gemini-3.1-pro", "gemini-3-flash", "gemini-2.5-pro", "gemini-2.5-flash"],- "defaultModel": "gemini-2.5-flash",- "lightModel": "gemini-2.5-flash",- "mediumModel": "gemini-3-flash",- "heavyModel": "gemini-3.1-pro",+ "command": "agy",+ "args": ["--print", "--dangerously-skip-permissions"],+ "models": ["antigravity-configured-default"],+ "defaultModel": "antigravity-configured-default",+ "lightModel": "antigravity-configured-default",+ "mediumModel": "antigravity-configured-default",+ "heavyModel": "antigravity-configured-default","timeout": 300000,"enabled": true,- "envVars": {- "GEMINI_SANDBOX": "false"- }+ "envVars": {}},"codex-tui": {"id": "codex-tui",@@ -100,22 +98,20 @@"tuiPromptDelayMs": 2500,"tuiIdleTimeoutMs": 180000},- "gemini-tui": {- "id": "gemini-tui",- "name": "Gemini TUI",+ "antigravity-tui": {+ "id": "antigravity-tui",+ "name": "Antigravity TUI","type": "tui",- "command": "gemini",- "args": [],- "models": ["gemini-3.1-pro", "gemini-3-flash", "gemini-2.5-pro", "gemini-2.5-flash"],- "defaultModel": "gemini-2.5-flash",- "lightModel": "gemini-2.5-flash",- "mediumModel": "gemini-3-flash",- "heavyModel": "gemini-3.1-pro",+ "command": "agy",+ "args": ["--dangerously-skip-permissions"],+ "models": ["antigravity-configured-default"],+ "defaultModel": "antigravity-configured-default",+ "lightModel": "antigravity-configured-default",+ "mediumModel": "antigravity-configured-default",+ "heavyModel": "antigravity-configured-default","timeout": 600000,"enabled": false,- "envVars": {- "GEMINI_SANDBOX": "false"- },+ "envVars": {},"tuiPromptDelayMs": 2500,"tuiIdleTimeoutMs": 180000},diff --git a/server/cos-runner/index.js b/server/cos-runner/index.jsindex a349749265..dafa1cecca 100644--- a/server/cos-runner/index.js+++ b/server/cos-runner/index.js@@ -33,6 +33,7 @@ const ALLOWED_COMMANDS = new Set(['aider','codex','copilot',+ 'agy','gemini']);diff --git a/server/index.js b/server/index.jsindex 181918df69..04e38707ad 100644--- a/server/index.js+++ b/server/index.js@@ -293,7 +293,7 @@ if (activeLocalLlmBackend === 'ollama') {}// Swap the toolkit's generic executeCliRun for PortOS's variant that adds-// CLI-provider-specific args building (Codex `exec -`, Gemini stdin piping,+// CLI-provider-specific args building (Codex `exec -`, Antigravity `agy --print`,// Claude Code `-p -`). The toolkit's in-tree implementation is also safe// (no shell, prompt via stdin) — the PortOS variant exists for the per-CLI// invocation conventions, not for security.diff --git a/server/lib/aiToolkit/defaults/providers.sample.json b/server/lib/aiToolkit/defaults/providers.sample.jsonindex b042f8f0ed..a09b648a72 100644--- a/server/lib/aiToolkit/defaults/providers.sample.json+++ b/server/lib/aiToolkit/defaults/providers.sample.json@@ -90,14 +90,17 @@"tuiPromptDelayMs": 2500,"tuiIdleTimeoutMs": 180000},- "gemini-tui": {- "id": "gemini-tui",- "name": "Gemini TUI",+ "antigravity-tui": {+ "id": "antigravity-tui",+ "name": "Antigravity TUI","type": "tui",- "command": "gemini",- "args": [],- "models": [],- "defaultModel": null,+ "command": "agy",+ "args": ["--dangerously-skip-permissions"],+ "models": ["antigravity-configured-default"],+ "defaultModel": "antigravity-configured-default",+ "lightModel": "antigravity-configured-default",+ "mediumModel": "antigravity-configured-default",+ "heavyModel": "antigravity-configured-default","timeout": 600000,"enabled": false,"envVars": {},@@ -105,14 +108,17 @@"tuiPromptDelayMs": 2500,"tuiIdleTimeoutMs": 180000},- "gemini-cli": {- "id": "gemini-cli",- "name": "Gemini CLI",+ "antigravity-cli": {+ "id": "antigravity-cli",+ "name": "Antigravity CLI","type": "cli",- "command": "gemini",- "args": [],- "models": [],- "defaultModel": null,+ "command": "agy",+ "args": ["--print", "--dangerously-skip-permissions"],+ "models": ["antigravity-configured-default"],+ "defaultModel": "antigravity-configured-default",+ "lightModel": "antigravity-configured-default",+ "mediumModel": "antigravity-configured-default",+ "heavyModel": "antigravity-configured-default","timeout": 300000,"enabled": true,"envVars": {},diff --git a/server/lib/aiToolkit/index.js b/server/lib/aiToolkit/index.jsindex ec510b43ac..56bc55f214 100644--- a/server/lib/aiToolkit/index.js+++ b/server/lib/aiToolkit/index.js@@ -40,7 +40,7 @@ export function createAIToolkit(config = {}) {hooks = {},maxConcurrentRuns = 5,enableProviderStatus = true,- defaultFallbackPriority = ['claude-code', 'codex', 'nvidia-kimi', 'lmstudio', 'ollama', 'gemini-cli']+ defaultFallbackPriority = ['claude-code', 'codex', 'nvidia-kimi', 'lmstudio', 'ollama', 'antigravity-cli', 'gemini-cli']} = config;const providerService = createProviderService({diff --git a/server/lib/aiToolkit/providerStatus.js b/server/lib/aiToolkit/providerStatus.jsindex fdafb0e32e..7977b7ec30 100644--- a/server/lib/aiToolkit/providerStatus.js+++ b/server/lib/aiToolkit/providerStatus.js@@ -15,7 +15,7 @@ export function createProviderStatusService(config = {}) {const {dataDir = './data',statusFile = 'provider-status.json',- defaultFallbackPriority = ['claude-code', 'codex', 'lmstudio', 'local-lm-studio', 'ollama', 'gemini-cli'],+ defaultFallbackPriority = ['claude-code', 'codex', 'lmstudio', 'local-lm-studio', 'ollama', 'antigravity-cli', 'gemini-cli'],defaultUsageLimitWait = 24 * 60 * 60 * 1000,defaultRateLimitWait = 5 * 60 * 1000,onStatusChange = nulldiff --git a/server/lib/aiToolkit/providers.js b/server/lib/aiToolkit/providers.jsindex 2120102fd5..30a77a6890 100644--- a/server/lib/aiToolkit/providers.js+++ b/server/lib/aiToolkit/providers.js@@ -5,6 +5,15 @@ import { atomicWrite } from './internal/atomicWrite.js';import { fileURLToPath } from 'url';import { execFile } from 'child_process';import { promisify } from 'util';+import {+ ANTIGRAVITY_CLI_ID,+ ANTIGRAVITY_CONFIGURED_DEFAULT,+ ANTIGRAVITY_TUI_ID,+ ensureAntigravityPrintArgs,+ ensureAntigravityTuiArgs,+ LEGACY_GEMINI_CLI_ID,+ LEGACY_GEMINI_TUI_ID,+} from '../antigravity.js';const __dirname = dirname(fileURLToPath(import.meta.url));const DEFAULT_SAMPLE_PATH = join(__dirname, 'defaults/providers.sample.json');@@ -13,6 +22,7 @@ const execFileAsync = promisify(execFile);const CODEX_CONFIGURED_DEFAULT = 'codex-configured-default';const CODEX_MODEL_KEYS = ['defaultModel', 'lightModel', 'mediumModel', 'heavyModel'];+const ANTIGRAVITY_MODEL_KEYS = ['defaultModel', 'lightModel', 'mediumModel', 'heavyModel'];// Auto-migrate legacy codex provider configs that pin a real model id// (e.g. "gpt-5.2") to the sentinel "codex-configured-default" so the Codex@@ -41,6 +51,50 @@ function migrateCodexProvider(data) {return changed;}+function migrateAntigravityProviders(data) {+ if (!data?.providers) return false;+ let changed = false;+ const mappings = [+ { legacyId: LEGACY_GEMINI_CLI_ID, targetId: ANTIGRAVITY_CLI_ID, name: 'Antigravity CLI', type: 'cli', timeout: 300000 },+ { legacyId: LEGACY_GEMINI_TUI_ID, targetId: ANTIGRAVITY_TUI_ID, name: 'Antigravity TUI', type: 'tui', timeout: 600000 },+ ];++ for (const mapping of mappings) {+ const legacy = data.providers[mapping.legacyId];+ if (!legacy) continue;++ if (!data.providers[mapping.targetId]) {+ const envVars = { ...(legacy.envVars || {}) };+ delete envVars.GEMINI_SANDBOX;+ const migrated = {+ ...legacy,+ id: mapping.targetId,+ name: mapping.name,+ type: mapping.type,+ command: 'agy',+ args: mapping.type === 'cli'+ ? ensureAntigravityPrintArgs(legacy.args || [])+ : ensureAntigravityTuiArgs(legacy.args || []),+ models: [ANTIGRAVITY_CONFIGURED_DEFAULT],+ timeout: legacy.timeout || mapping.timeout,+ envVars,+ };+ for (const key of ANTIGRAVITY_MODEL_KEYS) {+ migrated[key] = ANTIGRAVITY_CONFIGURED_DEFAULT;+ }+ data.providers[mapping.targetId] = migrated;+ }++ if (data.activeProvider === mapping.legacyId) {+ data.activeProvider = mapping.targetId;+ }+ delete data.providers[mapping.legacyId];+ changed = true;+ }++ return changed;+}+export function createProviderService(config = {}) {const {dataDir = './data',@@ -89,9 +143,12 @@ export function createProviderService(config = {}) {const content = await readFile(PROVIDERS_PATH, 'utf-8');const data = await parseOrRescue(content, PROVIDERS_PATH);- if (migrateCodexProvider(data)) {+ const migratedCodex = migrateCodexProvider(data);+ const migratedAntigravity = migrateAntigravityProviders(data);+ if (migratedCodex || migratedAntigravity) {await atomicWrite(PROVIDERS_PATH, data);- console.log('🔧 Migrated codex provider config to codex-configured-default sentinel');+ if (migratedCodex) console.log('🔧 Migrated codex provider config to codex-configured-default sentinel');+ if (migratedAntigravity) console.log('🔧 Migrated Gemini provider config to Antigravity CLI (agy)');}return data;@@ -341,6 +398,10 @@ export function createProviderService(config = {}) {return await this._fetchAnthropicModels(provider);}+ if (providerName.includes('antigravity') || provider.command === 'agy') {+ return [ANTIGRAVITY_CONFIGURED_DEFAULT];+ }+if (providerName.includes('gemini') || provider.command === 'gemini') {return await this._fetchGeminiModels(provider);}diff --git a/server/lib/aiToolkit/providers.test.js b/server/lib/aiToolkit/providers.test.jsindex 186ba9fded..c881b3bd7f 100644--- a/server/lib/aiToolkit/providers.test.js+++ b/server/lib/aiToolkit/providers.test.js@@ -414,5 +414,45 @@ describe('Provider Service', () => {expect(codex.models).toEqual([CODEX_SENTINEL]);expect(codex.defaultModel).toBe(CODEX_SENTINEL);});++ it('migrates legacy Gemini providers to Antigravity agy providers', async () => {+ await writeProvidersFile({+ activeProvider: 'gemini-cli',+ providers: {+ 'gemini-cli': {+ id: 'gemini-cli',+ name: 'Gemini CLI',+ type: 'cli',+ command: 'gemini',+ args: ['--yolo', '-m', 'gemini-2.5-pro', '--output-format', 'text'],+ envVars: { GEMINI_SANDBOX: 'false', KEEP_ME: '1' },+ models: ['gemini-2.5-pro'],+ defaultModel: 'gemini-2.5-pro'+ },+ 'gemini-tui': {+ id: 'gemini-tui',+ name: 'Gemini TUI',+ type: 'tui',+ command: 'gemini',+ args: ['--yolo'],+ envVars: { GEMINI_SANDBOX: 'false' },+ }+ }+ });++ const antigravity = await providerService.getProviderById('antigravity-cli');+ const antigravityTui = await providerService.getProviderById('antigravity-tui');+ const legacy = await providerService.getProviderById('gemini-cli');+ const active = await providerService.getActiveProvider();++ expect(active.id).toBe('antigravity-cli');+ expect(legacy).toBeNull();+ expect(antigravity.command).toBe('agy');+ expect(antigravity.args).toEqual(['--print', '--dangerously-skip-permissions']);+ expect(antigravity.defaultModel).toBe('antigravity-configured-default');+ expect(antigravity.envVars).toEqual({ KEEP_ME: '1' });+ expect(antigravityTui.command).toBe('agy');+ expect(antigravityTui.args).toEqual(['--dangerously-skip-permissions']);+ });});});diff --git a/server/lib/antigravity.js b/server/lib/antigravity.jsnew file mode 100644index 0000000000..5ced8b3be0--- /dev/null+++ b/server/lib/antigravity.js@@ -0,0 +1,52 @@+export const ANTIGRAVITY_CLI_ID = 'antigravity-cli';+export const ANTIGRAVITY_TUI_ID = 'antigravity-tui';+export const LEGACY_GEMINI_CLI_ID = 'gemini-cli';+export const LEGACY_GEMINI_TUI_ID = 'gemini-tui';+export const ANTIGRAVITY_CONFIGURED_DEFAULT = 'antigravity-configured-default';++export function isAntigravityCommand(command) {+ return command === 'agy' || command === 'antigravity';+}++export function isAntigravityCliProvider(provider) {+ return provider?.id === ANTIGRAVITY_CLI_ID || isAntigravityCommand(provider?.command);+}++export function ensureAntigravityPrintArgs(args = []) {+ const out = stripAntigravityUnsupportedArgs(args);+ if (!out.some((arg) => arg === '--print' || arg === '-p' || arg === '--prompt')) {+ out.unshift('--print');+ }+ if (!out.includes('--dangerously-skip-permissions') && !out.includes('--sandbox')) {+ out.push('--dangerously-skip-permissions');+ }+ return out;+}++export function ensureAntigravityTuiArgs(args = []) {+ const out = stripAntigravityUnsupportedArgs(args);+ if (!out.includes('--dangerously-skip-permissions') && !out.includes('--sandbox')) {+ out.push('--dangerously-skip-permissions');+ }+ return out;+}++export function stripAntigravityUnsupportedArgs(args = []) {+ const out = [];+ for (let i = 0; i < args.length; i++) {+ const arg = args[i];+ if (arg === '--yolo') continue;+ if (arg === '--model' || arg === '-m' || arg === '--output-format' || arg === '-o') {+ i += 1;+ continue;+ }+ if (+ typeof arg === 'string'+ && (arg.startsWith('--model=') || arg.startsWith('-m=') || arg.startsWith('--output-format=') || arg.startsWith('-o='))+ ) {+ continue;+ }+ out.push(arg);+ }+ return out;+}diff --git a/server/lib/cliProviderArgs.js b/server/lib/cliProviderArgs.jsindex 5755a01ee9..10f9b6987c 100644--- a/server/lib/cliProviderArgs.js+++ b/server/lib/cliProviderArgs.js@@ -11,11 +11,13 @@** Each CLI reads its prompt from stdin under a different convention:* - Codex: `codex exec -` (+ `--model` when not the sentinel)- * - Gemini CLI: prompt piped to stdin (+ `-m <model>`)+ * - Antigravity: `agy --print` with prompt piped to stdin+ * - Gemini CLI: legacy prompt piped to stdin (+ `-m <model>`)* - Claude Code: `-p -` (+ `--model <id>`)*/import { resolveCliModel, hasModelFlag } from './providerModels.js';+import { ensureAntigravityPrintArgs, isAntigravityCliProvider } from './antigravity.js';/*** Build CLI args based on provider type. Each CLI provider has different@@ -53,6 +55,13 @@ export function buildCliArgs(provider) {return args;}+ // Antigravity CLI (`agy`) replaces the old Gemini CLI for Google's coding+ // agent. Print mode is the headless one-shot interface; prompt text still+ // travels over stdin so large PortOS prompts do not hit OS argv limits.+ if (isAntigravityCliProvider(provider)) {+ return ensureAntigravityPrintArgs(baseArgs);+ }+// Gemini CLI: prompt is piped via stdin directly. `-m <model>` is gemini-// cli's documented short flag for model selection (long form: `--model`).// Skip injection when the user's saved args already pin a model (eitherdiff --git a/server/lib/cliProviderRun.test.js b/server/lib/cliProviderRun.test.jsindex 6e69da2d3e..f93c026eeb 100644--- a/server/lib/cliProviderRun.test.js+++ b/server/lib/cliProviderRun.test.js@@ -7,7 +7,7 @@ describe('pickCliProvider', () => {const providers = {'claude-code': cli('claude-code', { defaultModel: 'claude-opus-4-7', models: ['claude-opus-4-7', 'claude-haiku-4-5'] }),'codex': cli('codex', { defaultModel: 'codex-configured-default', models: ['codex-configured-default'] }),- 'gemini-cli': cli('gemini-cli', { defaultModel: 'gemini-2.5-pro', models: ['gemini-2.5-pro'] }),+ 'antigravity-cli': cli('antigravity-cli', { command: 'agy', defaultModel: 'antigravity-configured-default', models: ['antigravity-configured-default'] }),'ollama': { id: 'ollama', type: 'api', enabled: true, defaultModel: 'llama3' },'disabled-cli': cli('disabled-cli', { enabled: false }),};@@ -18,8 +18,8 @@ describe('pickCliProvider', () => {});it('accepts an array shape', () => {- const { provider } = pickCliProvider(Object.values(providers), { providerId: 'gemini-cli' });- expect(provider.id).toBe('gemini-cli');+ const { provider } = pickCliProvider(Object.values(providers), { providerId: 'antigravity-cli' });+ expect(provider.id).toBe('antigravity-cli');});it('falls back to claude-code when providerId is unset', () => {@@ -72,12 +72,12 @@ describe('runCliProviderPrompt', () => {});it('rejects an empty prompt without spawning', async () => {- const result = await runCliProviderPrompt({ provider: cli('gemini-cli'), prompt: '' });+ const result = await runCliProviderPrompt({ provider: cli('antigravity-cli'), prompt: '' });expect(result.error).toMatch(/non-empty/);});it('delivers the prompt via stdin and collects stdout', async () => {- // gemini-cli with no model → buildCliArgs returns [] (no flags), so `cat`+ // A legacy gemini-cli test double with no model returns [] (no flags), so `cat`// simply echoes stdin back out — a clean end-to-end spawn test.const result = await runCliProviderPrompt({provider: { id: 'gemini-cli', type: 'cli', command: 'cat', args: [] },diff --git a/server/lib/promptRunner.js b/server/lib/promptRunner.jsindex ae40b10d1c..b38f0b81aa 100644--- a/server/lib/promptRunner.js+++ b/server/lib/promptRunner.js@@ -178,7 +178,7 @@ export function assertProvider(provider, { message, code, status = 503 } = {}) {* @param {string} args.source — run-record tag (`'universe-builder-expansion'`,* `'media-prompt-refine'`, `'messages-triage'`, `'staged-llm'`, etc.)* @param {string} [args.model] — model id hint; ignored when the- * provider doesn't honor it (claude-code, gemini-cli today).+ * provider doesn't honor it (claude-code, antigravity-cli today).* @param {string} [args.runId] — caller-supplied run id (skip createRun* round-trip when the caller has already created the run)* @param {(chunk: string) => void} [args.onData] — incremental streamdiff --git a/server/lib/providerModels.js b/server/lib/providerModels.jsindex 40ae864a4f..baa8b731d5 100644--- a/server/lib/providerModels.js+++ b/server/lib/providerModels.js@@ -4,6 +4,7 @@*/export const CODEX_CONFIGURED_DEFAULT = 'codex-configured-default';+export const ANTIGRAVITY_CONFIGURED_DEFAULT = 'antigravity-configured-default';export const isCodexConfiguredDefault = (model) => model === CODEX_CONFIGURED_DEFAULT;@@ -22,7 +23,7 @@ export const resolveCliModel = (model) => isCodexConfiguredDefault(model) ? null* @returns {string[]}*/export const filterSelectableModels = (models) =>- (models || []).filter(m => m !== CODEX_CONFIGURED_DEFAULT);+ (models || []).filter(m => m !== CODEX_CONFIGURED_DEFAULT && m !== ANTIGRAVITY_CONFIGURED_DEFAULT);/*** Detects whether the provider's stored argv already pins a model with adiff --git a/server/lib/providerModels.test.js b/server/lib/providerModels.test.jsindex 54be9ff6d9..086c89e214 100644--- a/server/lib/providerModels.test.js+++ b/server/lib/providerModels.test.js@@ -1,5 +1,6 @@import { describe, it, expect } from 'vitest';import {+ ANTIGRAVITY_CONFIGURED_DEFAULT,CODEX_CONFIGURED_DEFAULT,isCodexConfiguredDefault,resolveCliModel,@@ -41,8 +42,8 @@ describe('providerModels', () => {});describe('filterSelectableModels', () => {- it('strips the codex sentinel from the list', () => {- expect(filterSelectableModels(['a', CODEX_CONFIGURED_DEFAULT, 'b'])).toEqual(['a', 'b']);+ it('strips configured-default sentinels from the list', () => {+ expect(filterSelectableModels(['a', CODEX_CONFIGURED_DEFAULT, ANTIGRAVITY_CONFIGURED_DEFAULT, 'b'])).toEqual(['a', 'b']);});it('returns an empty list for nullish input', () => {diff --git a/server/lib/tuiHandshake.js b/server/lib/tuiHandshake.jsindex c81c5a2a14..c5e5b65591 100644--- a/server/lib/tuiHandshake.js+++ b/server/lib/tuiHandshake.js@@ -4,7 +4,7 @@* Two execution paths need these: `server/lib/tuiPromptRunner.js` (one-shot* prompts from the central handler) and `server/services/agentTuiSpawning.js`* (long-running CoS agents). Both shell into the same set of TUI binaries- * (Claude Code, Codex, Gemini) and use identical PTY-paste choreography to+ * (Claude Code, Codex, Antigravity) and use identical PTY-paste choreography to* deliver the prompt — banner repaint wait, bracketed-paste, Enter handshake.* Without this shared module they had verbatim copies that would silently* drift the first time anyone tweaked one side's paste timing.@@ -13,6 +13,7 @@*/import { resolveCliModel, hasModelFlag } from './providerModels.js';+import { ensureAntigravityTuiArgs, isAntigravityCommand } from './antigravity.js';// ─── Paste handshake constants ────────────────────────────────────────────@@ -64,6 +65,7 @@ export const RAW_SPOOL_MAX_BYTES = 256 * 1024 * 1024;export function inferTuiCommand(id) {if (!id) return 'claude';if (id.includes('codex')) return 'codex';+ if (id.includes('antigravity')) return 'agy';if (id.includes('gemini')) return 'gemini';return 'claude';}@@ -74,6 +76,9 @@ export function applyCommandDefaults(command, args) {if (command === 'codex' && !args.includes('--ask-for-approval')) {return ['--ask-for-approval', 'never', ...args];}+ if (isAntigravityCommand(command)) {+ return ensureAntigravityTuiArgs(args);+ }return args;}@@ -88,7 +93,7 @@ export function buildTuiInvocation(provider, model) {const command = provider?.command || inferTuiCommand(provider?.id);const baseArgs = applyCommandDefaults(command, [...(provider?.args || [])]);const effectiveModel = resolveCliModel(model);- const shouldInject = effectiveModel && !hasModelFlag(baseArgs);+ const shouldInject = !isAntigravityCommand(command) && effectiveModel && !hasModelFlag(baseArgs);const args = shouldInject ? [...baseArgs, '--model', effectiveModel] : baseArgs;return { command, args };}diff --git a/server/lib/tuiHandshake.test.js b/server/lib/tuiHandshake.test.jsindex 7b6d401bc4..828cae70e9 100644--- a/server/lib/tuiHandshake.test.js+++ b/server/lib/tuiHandshake.test.js@@ -84,7 +84,7 @@ describe('tuiHandshake — paste timing constants', () => {describe('tuiHandshake.inferTuiCommand', () => {// Catch-all default also returns claude; the claude rows just confirm- // an explicit match isn't accidentally tagged codex/gemini.+ // an explicit match isn't accidentally tagged codex/antigravity/gemini.it.each([['', 'claude'],[null, 'claude'],@@ -93,6 +93,8 @@ describe('tuiHandshake.inferTuiCommand', () => {['codex', 'codex'],['openai-codex', 'codex'],['codex-cloud', 'codex'],+ ['antigravity', 'agy'],+ ['google-antigravity-2', 'agy'],['gemini', 'gemini'],['google-gemini-2', 'gemini'],['claude', 'claude'],@@ -121,6 +123,12 @@ describe('tuiHandshake.applyCommandDefaults', () => {expect(applyCommandDefaults('something-else', args)).toBe(args);});+ it('adds Antigravity permission bypass and strips legacy Gemini flags', () => {+ expect(applyCommandDefaults('agy', ['--yolo', '--model', 'gemini-2.5-pro'])).toEqual([+ '--dangerously-skip-permissions',+ ]);+ });+it('preserves the original arg list when injecting (caller can still mutate before spawn)', () => {const args = ['exec', '-'];const result = applyCommandDefaults('codex', args);@@ -186,6 +194,12 @@ describe('tuiHandshake.buildTuiInvocation', () => {expect(out.args).toEqual(['--model', 'opus-x']);});+ it('does not append --model for Antigravity TUI', () => {+ const out = buildTuiInvocation({ id: 'antigravity-tui', command: 'agy', args: [] }, 'antigravity-configured-default');+ expect(out.command).toBe('agy');+ expect(out.args).toEqual(['--dangerously-skip-permissions']);+ });+it('handles a missing provider with no id (falls back to claude)', () => {const out = buildTuiInvocation(undefined, 'opus-x');expect(out.command).toBe('claude');diff --git a/server/lib/tuiPromptRunner.js b/server/lib/tuiPromptRunner.jsindex e45f458971..5eba64544a 100644--- a/server/lib/tuiPromptRunner.js+++ b/server/lib/tuiPromptRunner.js@@ -1,7 +1,7 @@/*** One-shot TUI prompt runner.*- * Spawns a TUI binary (Claude Code, Codex, Gemini, etc.) in a PTY, waits for+ * Spawns a TUI binary (Claude Code, Codex, Antigravity, etc.) in a PTY, waits for* the prompt cursor to become input-ready, bracketed-pastes the prompt + Enter,* watches for the model response to complete via sustained output-idle, then* strips ANSI and returns the captured text. Persists a run record underdiff --git a/server/lib/validation.js b/server/lib/validation.jsindex e07536dc3f..b68c3bdb47 100644--- a/server/lib/validation.js+++ b/server/lib/validation.js@@ -561,12 +561,13 @@ export const searchQuerySchema = z.object({// =============================================================================// Reviewer choices for the Review Loop. `copilot` requests a native GitHub-// Copilot review; `claude`/`gemini`/`codex` instruct the review-loop follow-up+// Copilot review; `claude`/`antigravity`/`codex` instruct the review-loop follow-up// agent to invoke the named CLI to critique the PR diff; `lmstudio`/`ollama`// route the diff through PortOS's local code-review endpoint// (`POST /api/code-review/local`) which runs the configured local LLM model.// Mirrored in client/src/components/cos/constants.js → REVIEWER_OPTIONS.-export const REVIEWER_VALUES = ['copilot', 'claude', 'gemini', 'codex', 'lmstudio', 'ollama'];+export const REVIEWER_VALUES = ['copilot', 'claude', 'antigravity', 'codex', 'lmstudio', 'ollama'];+export const REVIEWER_ALIASES = { gemini: 'antigravity' };export const DEFAULT_REVIEWER = 'copilot';export const DEFAULT_REVIEWERS = ['copilot'];// Reviewers that resolve to a local-LLM backend (rather than a CLI or GitHub@@ -594,10 +595,19 @@ export function normalizeReviewers(meta, fallback = DEFAULT_REVIEWERS) {const seen = new Set();const out = [];for (const r of source) {- if (REVIEWER_VALUES.includes(r) && !seen.has(r)) { seen.add(r); out.push(r); }+ const normalized = REVIEWER_ALIASES[r] || r;+ if (REVIEWER_VALUES.includes(normalized) && !seen.has(normalized)) { seen.add(normalized); out.push(normalized); }}if (out.length) return out;- const fallbackList = Array.isArray(fallback) ? fallback.filter((r) => REVIEWER_VALUES.includes(r)) : [];+ const fallbackList = [];+ const fallbackSeen = new Set();+ for (const r of Array.isArray(fallback) ? fallback : []) {+ const normalized = REVIEWER_ALIASES[r] || r;+ if (REVIEWER_VALUES.includes(normalized) && !fallbackSeen.has(normalized)) {+ fallbackSeen.add(normalized);+ fallbackList.push(normalized);+ }+ }return fallbackList.length ? [...fallbackList] : [...DEFAULT_REVIEWERS];}@@ -1221,9 +1231,10 @@ export function sanitizeTaskMetadata(raw) {hasKeys = true;}}- // `reviewer` is a legacy single constrained string (copilot/claude/gemini/codex).- if (Object.prototype.hasOwnProperty.call(raw, 'reviewer') && REVIEWER_VALUES.includes(raw.reviewer)) {- clean.reviewer = raw.reviewer;+ // `reviewer` is a legacy single constrained string.+ const normalizedReviewer = REVIEWER_ALIASES[raw.reviewer] || raw.reviewer;+ if (Object.prototype.hasOwnProperty.call(raw, 'reviewer') && REVIEWER_VALUES.includes(normalizedReviewer)) {+ clean.reviewer = normalizedReviewer;hasKeys = true;}// `reviewers` is the ordered multi-reviewer list — filter to known values, dedupe, preserve order.@@ -1231,7 +1242,8 @@ export function sanitizeTaskMetadata(raw) {const seen = new Set();const list = [];for (const r of raw.reviewers) {- if (REVIEWER_VALUES.includes(r) && !seen.has(r)) { seen.add(r); list.push(r); }+ const normalized = REVIEWER_ALIASES[r] || r;+ if (REVIEWER_VALUES.includes(normalized) && !seen.has(normalized)) { seen.add(normalized); list.push(normalized); }}if (list.length) { clean.reviewers = list; hasKeys = true; }}diff --git a/server/lib/validation.test.js b/server/lib/validation.test.jsindex 3569c40daa..221ca769c2 100644--- a/server/lib/validation.test.js+++ b/server/lib/validation.test.js@@ -559,7 +559,8 @@ describe('validation.js', () => {it('should accept a valid reviewer string', () => {expect(sanitizeTaskMetadata({ reviewer: 'copilot' })).toEqual({ reviewer: 'copilot' });expect(sanitizeTaskMetadata({ reviewer: 'claude' })).toEqual({ reviewer: 'claude' });- expect(sanitizeTaskMetadata({ reviewer: 'gemini' })).toEqual({ reviewer: 'gemini' });+ expect(sanitizeTaskMetadata({ reviewer: 'antigravity' })).toEqual({ reviewer: 'antigravity' });+ expect(sanitizeTaskMetadata({ reviewer: 'gemini' })).toEqual({ reviewer: 'antigravity' });expect(sanitizeTaskMetadata({ reviewer: 'codex' })).toEqual({ reviewer: 'codex' });expect(sanitizeTaskMetadata({ reviewLoop: true, reviewer: 'claude' })).toEqual({ reviewLoop: true, reviewer: 'claude' });@@ -574,10 +575,10 @@ describe('validation.js', () => {});it('should accept an ordered reviewers list, dedupe, and drop unknowns', () => {- expect(sanitizeTaskMetadata({ reviewers: ['codex', 'gemini', 'copilot'] }))- .toEqual({ reviewers: ['codex', 'gemini', 'copilot'] });+ expect(sanitizeTaskMetadata({ reviewers: ['codex', 'antigravity', 'copilot'] }))+ .toEqual({ reviewers: ['codex', 'antigravity', 'copilot'] });expect(sanitizeTaskMetadata({ reviewers: ['codex', 'codex', 'bogus', 'gemini'] }))- .toEqual({ reviewers: ['codex', 'gemini'] });+ .toEqual({ reviewers: ['codex', 'antigravity'] });expect(sanitizeTaskMetadata({ reviewers: ['nope'] })).toBeNull();});@@ -599,7 +600,8 @@ describe('validation.js', () => {it('prefers reviewers, falls back to legacy reviewer, preserves order + dedupes', () => {expect(normalizeReviewers({ reviewer: 'codex' })).toEqual(['codex']);- expect(normalizeReviewers({ reviewers: ['gemini', 'codex', 'gemini'] })).toEqual(['gemini', 'codex']);+ expect(normalizeReviewers({ reviewers: ['antigravity', 'codex', 'antigravity'] })).toEqual(['antigravity', 'codex']);+ expect(normalizeReviewers({ reviewers: ['gemini', 'codex', 'gemini'] })).toEqual(['antigravity', 'codex']);// `reviewers` wins over legacy `reviewer`.expect(normalizeReviewers({ reviewers: ['claude'], reviewer: 'codex' })).toEqual(['claude']);});@@ -611,11 +613,12 @@ describe('validation.js', () => {it('uses the fallback when metadata is empty and falls back to copilot when the fallback is invalid', () => {// Settings-derived defaults flow through when the task didn't pin reviewers.- expect(normalizeReviewers({}, ['gemini', 'codex'])).toEqual(['gemini', 'codex']);+ expect(normalizeReviewers({}, ['antigravity', 'codex'])).toEqual(['antigravity', 'codex']);+ expect(normalizeReviewers({}, ['gemini', 'codex'])).toEqual(['antigravity', 'codex']);// An all-bogus fallback collapses to the hardcoded copilot, never an empty list.expect(normalizeReviewers({}, ['bogus', null])).toEqual(['copilot']);// Explicit task metadata still wins over the fallback.- expect(normalizeReviewers({ reviewers: ['claude'] }, ['gemini'])).toEqual(['claude']);+ expect(normalizeReviewers({ reviewers: ['claude'] }, ['antigravity'])).toEqual(['claude']);});});@@ -627,7 +630,7 @@ describe('validation.js', () => {it('emits the ordered comma list when not lone-default', () => {expect(buildReviewWithArgs(['codex'])).toBe('--review-with codex');- expect(buildReviewWithArgs(['codex', 'gemini', 'copilot'])).toBe('--review-with codex,gemini,copilot');+ expect(buildReviewWithArgs(['codex', 'antigravity', 'copilot'])).toBe('--review-with codex,antigravity,copilot');});it('adds stop-mode only for 2+ reviewers and reviewer-applies only with a CLI reviewer', () => {@@ -645,12 +648,12 @@ describe('validation.js', () => {it('accepts reviewers/reviewStopMode/reviewerApplies', () => {const parsed = createCosTaskSchema.safeParse({description: 'do a thing',- reviewers: ['codex', 'gemini', 'copilot'],+ reviewers: ['codex', 'antigravity', 'copilot'],reviewStopMode: 'on-clean',reviewerApplies: true});expect(parsed.success).toBe(true);- expect(parsed.data.reviewers).toEqual(['codex', 'gemini', 'copilot']);+ expect(parsed.data.reviewers).toEqual(['codex', 'antigravity', 'copilot']);expect(parsed.data.reviewStopMode).toBe('on-clean');expect(parsed.data.reviewerApplies).toBe(true);});diff --git a/server/services/agentCliSpawning.js b/server/services/agentCliSpawning.jsindex 4a167deb49..978858c558 100644--- a/server/services/agentCliSpawning.js+++ b/server/services/agentCliSpawning.js@@ -25,6 +25,7 @@ import { safeJSONParse, PATHS } from '../lib/fileUtils.js';import { createCodexStderrFormatter } from '../lib/codexCliOutput.js';import { PROVIDER_TYPES } from '../lib/aiToolkit/constants.js';import { createImmediateFallbackSignalDetector } from '../lib/aiToolkit/errorDetection.js';+import { ensureAntigravityPrintArgs, isAntigravityCliProvider } from '../lib/antigravity.js';const AGENTS_DIR = PATHS.cosAgents;@@ -237,7 +238,7 @@ export function buildCliSpawnConfig(provider, model) {// Codex CLI uses different invocation pattern.// `--dangerously-bypass-approvals-and-sandbox` is the Codex equivalent of- // Claude's `--dangerously-skip-permissions` / Gemini's `--yolo`: it skips all+ // Claude/Antigravity's `--dangerously-skip-permissions`: it skips all// approval prompts AND disables the sandbox. Without it, `codex exec` runs// under the default workspace-write sandbox (network blocked, so `gh pr create`// can't resolve api.github.com) and, in non-interactive `exec` mode, any@@ -258,14 +259,12 @@ export function buildCliSpawnConfig(provider, model) {};}- // Gemini CLI — uses --yolo for auto-approval, -p for non-interactive stdin mode- if (providerId === 'gemini-cli') {- const args = ['--yolo', ...(provider?.args || [])];- if (model) {- args.push('--model', model);- }+ // Antigravity CLI (`agy`) replaces Gemini CLI. Use print mode for a+ // headless agent run and keep prompt delivery on stdin.+ if (isAntigravityCliProvider(provider)) {+ const args = ensureAntigravityPrintArgs(provider?.args || []);return {- command: provider?.command || 'gemini',+ command: provider?.command || 'agy',args,stdinMode: 'prompt'};@@ -300,7 +299,7 @@ export const isClaudeCliProvider = (provider) =>/*** Check if a provider is a TUI-backed agent provider (Claude Code, Codex,- * Gemini, etc. that run in a PTY). Used by callers that need to branch+ * Antigravity, etc. that run in a PTY). Used by callers that need to branch* between headless CLI/API runs and TUI shell sessions.*/export const isTuiProvider = (provider) => provider?.type === PROVIDER_TYPES.TUI;diff --git a/server/services/agentCliSpawning.test.js b/server/services/agentCliSpawning.test.jsindex c343f8db15..6461fa3287 100644--- a/server/services/agentCliSpawning.test.js+++ b/server/services/agentCliSpawning.test.js@@ -143,8 +143,8 @@ describe('buildCliSpawnConfig', () => {it('omits --model for Codex configured-default sentinel but bypasses sandbox/approvals', () => {const config = buildCliSpawnConfig({ id: 'codex', command: 'codex' }, 'codex-configured-default');- // The bypass flag is the Codex equivalent of Claude's --dangerously-skip-permissions- // / Gemini's --yolo. Without it, codex exec runs sandboxed (no network → `gh`+ // The bypass flag is the Codex equivalent of Claude/Antigravity's+ // --dangerously-skip-permissions. Without it, codex exec runs sandboxed (no network → `gh`// can't reach api.github.com) and non-interactive approval prompts get cancelled.expect(config.args).toEqual(['exec', '--dangerously-bypass-approvals-and-sandbox']);});@@ -154,6 +154,13 @@ describe('buildCliSpawnConfig', () => {expect(config.args).toEqual(['exec', '--dangerously-bypass-approvals-and-sandbox', '--model', 'gpt-5.4']);});++ it('uses agy print mode for Antigravity without model flags', () => {+ const config = buildCliSpawnConfig({ id: 'antigravity-cli', command: 'agy', args: [] }, 'antigravity-configured-default');++ expect(config.command).toBe('agy');+ expect(config.args).toEqual(['--print', '--dangerously-skip-permissions']);+ });});describe('stream error containment', () => {@@ -284,7 +291,7 @@ describe('stream error containment', () => {task: {id: 'task-rv',description: 'do stuff',- metadata: { reviewers: ['codex', 'gemini'], reviewStopMode: 'on-clean', reviewerApplies: true },+ metadata: { reviewers: ['codex', 'antigravity'], reviewStopMode: 'on-clean', reviewerApplies: true },},cleanupWorktreeFn,isTruthyMetaFn: (v) => v === true,@@ -301,7 +308,7 @@ describe('stream error containment', () => {expect(cleanupWorktreeFn).toHaveBeenCalledTimes(1);const opts = cleanupWorktreeFn.mock.calls[0][2];- expect(opts.reviewers).toEqual(['codex', 'gemini']);+ expect(opts.reviewers).toEqual(['codex', 'antigravity']);expect(opts.reviewStopMode).toBe('on-clean');expect(opts.reviewerApplies).toBe(true);// The removed singular key must NOT be passed.diff --git a/server/services/agentLifecycle.js b/server/services/agentLifecycle.jsindex aa8b34b574..09754ee589 100644--- a/server/services/agentLifecycle.js+++ b/server/services/agentLifecycle.js@@ -1404,11 +1404,11 @@ export async function handleAgentCompletion(agentId, exitCode, success, duration* When requestCopilotReview is also true, spawns a follow-up internal task that drives* the multi-reviewer loop and merges once the review chain is clean — that follow-up is* the part the user expects to "keep looping until ready to merge."- * `reviewers` is the ordered reviewer list (e.g. `[codex, gemini, copilot]`); the native+ * `reviewers` is the ordered reviewer list (e.g. `[codex, antigravity, copilot]`); the native* GitHub Copilot review is pre-requested here only when copilot LEADS the list (otherwise* the follow-up requests it at its turn so Copilot sees the post-fix diff). `reviewStopMode`* (`all`/`on-findings`/`on-clean`) and `reviewerApplies` are threaded into the follow-up's- * metadata. CLI reviewers (claude/gemini/codex) are always driven by the follow-up agent,+ * metadata. CLI reviewers (claude/antigravity/codex) are always driven by the follow-up agent,* which works on any forge; copilot is GitHub-only and dropped on non-GitHub remotes.* When skipMerge is true (review-loop follow-up agents), the cleanup never auto-merges* the worktree branch into the source workspace because `gh pr merge` already handled it.@@ -1578,7 +1578,7 @@ export async function cleanupAgentWorktree(agentId, success, { openPR = false, r* pre-requests Copilot when it leads) and exits; without this follow-up the loop* ends after one iteration and the PR is never merged.*- * `reviewers` is the ordered list (e.g. `[codex, gemini, copilot]`); the follow-up+ * `reviewers` is the ordered list (e.g. `[codex, antigravity, copilot]`); the follow-up* runs each in order — invoking the CLI reviewers itself and requesting Copilot at* its turn — honoring `reviewStopMode` (`all`/`on-findings`/`on-clean`) and* `reviewerApplies`. Copilot is GitHub-only, so it is stripped here on non-GitHub@@ -1592,7 +1592,7 @@ export async function spawnReviewLoopFollowUp({ originalAgentId, originalTask, pif (!prUrl || !prBranch) return null;const parsedPr = git.parsePullRequestUrl(prUrl);- // Copilot is GitHub-only; CLI-based reviewers (claude/gemini/codex) work on any+ // Copilot is GitHub-only; CLI-based reviewers (claude/antigravity/codex) work on any// forge because the agent invokes the CLI directly. On a non-GitHub forge, drop// copilot from the list — if nothing's left, there's no review to run.const isNonGithubForge = parsedPr && parsedPr.host && parsedPr.host !== 'github.com';diff --git a/server/services/agentPromptBuilder.js b/server/services/agentPromptBuilder.jsindex e618955dc4..e821ed6dbd 100644--- a/server/services/agentPromptBuilder.js+++ b/server/services/agentPromptBuilder.js@@ -148,7 +148,7 @@ ${hints.map(h => `- ${h}`).join('\n')}/*** Provider types that get the **light** prompt: agentic CLIs with native- * filesystem tools and CLAUDE.md loading (Claude Code, Codex, Gemini —+ * filesystem tools and CLAUDE.md loading (Claude Code, Codex, Antigravity —* whether running interactively as `tui` or one-shot as `cli`). Everything* else (`api`: LM Studio, raw OpenAI/Anthropic) needs the full pasted-in* context because it has no native filesystem access.@@ -156,7 +156,7 @@ ${hints.map(h => `- ${h}`).join('\n')}const LIGHT_CONTEXT_PROVIDER_TYPES = new Set([PROVIDER_TYPES.TUI, PROVIDER_TYPES.CLI]);// Inline reuse/quality/efficiency self-review wording for agents that can't run-// the Claude Code `/simplify` built-in (API providers + codex/gemini CLIs).+// the Claude Code `/simplify` built-in (API providers + codex/antigravity CLIs).// Shared by both prompt paths so the two phrasings can't drift apart.const SIMPLIFY_INLINE_REVIEW = 'review your changed code for reuse, quality, and efficiency (DRY, dead code, naming, simpler equivalents, missed edge cases)';@@ -250,7 +250,7 @@ export function buildReviewLoopFollowUpSection(metadata = {}, { verbose = false,hasCopilot ? `**copilot**: ${copilotIsFirst? 'wait for the initial Copilot review the system already pre-requested (Copilot leads the list)': 'request a Copilot review when you reach its turn'} (poll every 5–15s, max 5 min/round), then re-request on later rounds.` : null,- hasCli ? `**codex / gemini / claude**: invoke that CLI to review this branch's diff against its base (use the CLI's own base-diff mode or \`git diff <base-branch>...HEAD\`; on GitHub \`gh pr diff ${prNumber || ''}\` also works).` : null,+ hasCli ? `**codex / antigravity / claude**: invoke that CLI to review this branch's diff against its base (use the CLI's own base-diff mode or \`git diff <base-branch>...HEAD\`; on GitHub \`gh pr diff ${prNumber || ''}\` also works).` : null,hasLocalLlm ? `**lmstudio / ollama**: ${localLlmInvocation}` : null,].filter(Boolean).join(' ');const singleCliInvocation = `Invoke the ${reviewerLabel} CLI to review this branch's diff against its base (use the CLI's own base-diff mode or \`git diff <base-branch>...HEAD\`; on GitHub \`gh pr diff ${prNumber || ''}\` also works). Capture its findings as concrete issues to address.`;@@ -681,7 +681,7 @@ Begin working on the task now.`;/*** Build the **light-context** prompt for agents that have native filesystem- * tools and CLAUDE.md loading (Claude Code, Codex, Gemini — `tui` or `cli`).+ * tools and CLAUDE.md loading (Claude Code, Codex, Antigravity — `tui` or `cli`).** The agent already has direct access to the project, so we don't paste in:* memory dumps, CLAUDE.md contents, digital twin, tools summary,@@ -708,7 +708,7 @@ export function buildLightContextPrompt(task, workspaceDir, worktreeInfo, isTrutconst lightReviewerApplies = isTruthyMetaFn(task.metadata?.reviewerApplies);// Claude Code CLI providers can drive `/simplify` + `/do:pr` themselves// (the slashdo submodule mounts those as project-level slash commands).- // Other CLI providers (codex, gemini) can't — they get the legacy+ // Other CLI providers (codex, antigravity) can't — they get the legacy// commit-only block where PortOS handles push+PR on exit.const hasSlashdo = !isTui && (providerId === 'claude-code' || providerId === 'claude-code-bedrock');@@ -859,7 +859,7 @@ function buildTuiCompletionSection({ willOpenPR, willReviewLoop, simplifyEnabled: ` — \`/do:pr\` runs the review loop for ${reviewers.join(', ')} in order after the PR opens.`): '';// `/simplify` is a Claude Code TUI built-in. Non-Claude TUI providers- // (codex-tui, gemini-tui) can't run it, so give them the inline equivalent.+ // (codex-tui, antigravity-tui) can't run it, so give them the inline equivalent.// Default (no providerId) stays Claude-shaped for backward compatibility.const canRunSimplifyCommand = !providerId || /claude/i.test(providerId);const simplifyStep = simplifyEnabled@@ -898,7 +898,7 @@ function buildTuiCompletionSection({ willOpenPR, willReviewLoop, simplifyEnabled* Claude Code CLI agents have slashdo commands available (the submodule* mounts them as project-level slash commands), so when `hasSlashdo` is* true and a PR is expected, the agent owns the full `/simplify` → `/do:pr`- * sequence and PortOS skips its post-exit push+PR. Codex/Gemini and other+ * sequence and PortOS skips its post-exit push+PR. Codex/Antigravity and other* CLI providers fall through to the legacy commit-only block where PortOS* handles push+PR on exit.*/@@ -937,7 +937,7 @@ function buildCliCompletionSection({ worktreeInfo, willOpenPR, hasSlashdo = fals} else {body = 'Commit and push your changes (`git pull --rebase && git push`, conventional commit prefix, no `git add -A`).';}- // Non-slashdo CLIs (codex/gemini) have no `/simplify` command; when the task+ // Non-slashdo CLIs (codex/antigravity) have no `/simplify` command; when the task// enabled simplify, inline the equivalent self-review so the quality pass still// runs before they commit.const simplifyLine = simplifyEnableddiff --git a/server/services/agentPromptBuilder.test.js b/server/services/agentPromptBuilder.test.jsindex b03302eb86..04e5149021 100644--- a/server/services/agentPromptBuilder.test.js+++ b/server/services/agentPromptBuilder.test.js@@ -2,7 +2,7 @@* Tests for the light-vs-full context split in buildAgentPrompt.** The split is by `provider.type`:- * - `tui` / `cli` → light prompt (Claude Code, Codex, Gemini — agentic+ * - `tui` / `cli` → light prompt (Claude Code, Codex, Antigravity — agentic* CLIs with native filesystem tools and CLAUDE.md loading)* - `api` → full prompt (LM Studio, raw OpenAI/Anthropic — no* native filesystem access, so we paste in memory/CLAUDE.md/etc.)@@ -187,7 +187,7 @@ describe('buildLightContextPrompt', () => {});it('TUI simplify step is provider-aware — non-Claude TUI (codex-tui) gets the inline equivalent, not /simplify', () => {- // /simplify is a Claude Code TUI built-in; codex-tui / gemini-tui can't run it.+ // /simplify is a Claude Code TUI built-in; codex-tui / antigravity-tui can't run it.const prompt = buildLightContextPrompt(makeTask({ metadata: { simplify: true, openPR: true } }),'/r',@@ -223,7 +223,7 @@ describe('buildLightContextPrompt', () => {});it('inlines a simplify-equivalent self-review (no /simplify command) for non-Claude CLI agents', () => {- // /simplify is a Claude Code built-in; codex/gemini can't run it. With+ // /simplify is a Claude Code built-in; codex/antigravity can't run it. With// simplify enabled they must still get the reuse/quality/efficiency pass,// phrased inline so any CLI can perform it.const prompt = buildLightContextPrompt(@@ -351,7 +351,7 @@ describe('buildLightContextPrompt', () => {reviewLoopPRUrl: 'https://github.com/o/r/pull/9',reviewLoopPRBranch: 'b',reviewLoopPRNumber: 9,- reviewLoopReviewers: ['codex', 'gemini', 'copilot'],+ reviewLoopReviewers: ['codex', 'antigravity', 'copilot'],reviewLoopStopMode: 'on-clean',reviewLoopReviewerApplies: true,sourceTaskId: 'task-src-3',@@ -359,7 +359,7 @@ describe('buildLightContextPrompt', () => {'/r',{ branchName: 'b', worktreePath: '/tmp/wt' },isTruthyMeta);- expect(prompt).toMatch(/--review-with codex,gemini,copilot/);+ expect(prompt).toMatch(/--review-with codex,antigravity,copilot/);expect(prompt).toMatch(/--review-stop-on-clean/);expect(prompt).toMatch(/--reviewer-applies/);// Ordered run instruction.@@ -389,17 +389,17 @@ describe('buildLightContextPrompt', () => {it('threads reviewer into the TUI Completion Workflow as `/do:pr --review-with <reviewer>`', () => {const prompt = buildLightContextPrompt(- makeTask({ metadata: { openPR: true, reviewLoop: true, simplify: true, reviewers: ['gemini'] } }),+ makeTask({ metadata: { openPR: true, reviewLoop: true, simplify: true, reviewers: ['antigravity'] } }),'/r',{ branchName: 'feat', worktreePath: '/tmp/wt' },isTruthyMeta,{ isTui: true });- expect(prompt).toMatch(/`\/do:pr --review-with gemini`/);+ expect(prompt).toMatch(/`\/do:pr --review-with antigravity`/);});it('allows merging on `partial` in the completion merge step when a stop-mode is set', () => {const prompt = buildLightContextPrompt(- makeTask({ metadata: { openPR: true, reviewLoop: true, reviewers: ['codex', 'gemini'], reviewStopMode: 'on-clean' } }),+ makeTask({ metadata: { openPR: true, reviewLoop: true, reviewers: ['codex', 'antigravity'], reviewStopMode: 'on-clean' } }),'/r',{ branchName: 'feat', worktreePath: '/tmp/wt' },isTruthyMeta,@@ -411,7 +411,7 @@ describe('buildLightContextPrompt', () => {it('does NOT merge on `partial` under the default stop-mode (all)', () => {const prompt = buildLightContextPrompt(- makeTask({ metadata: { openPR: true, reviewLoop: true, reviewers: ['codex', 'gemini'] } }),+ makeTask({ metadata: { openPR: true, reviewLoop: true, reviewers: ['codex', 'antigravity'] } }),'/r',{ branchName: 'feat', worktreePath: '/tmp/wt' },isTruthyMeta,@@ -473,7 +473,7 @@ describe('buildLightContextPrompt', () => {// Push-only Completion wording — NOT the "push and PR" variant.expect(prompt).toMatch(/the \*\*Completion\*\* section below drives the push\./);expect(prompt).not.toMatch(/drives the push and PR/);- // And NOT the post-exit handoff message (that's the codex/gemini path).+ // And NOT the post-exit handoff message (that's the codex/antigravity path).expect(prompt).not.toMatch(/The system will push and open a PR after you exit/);});diff --git a/server/services/agentTuiSpawning.js b/server/services/agentTuiSpawning.jsindex 6b1ff672dc..832a4d6718 100644--- a/server/services/agentTuiSpawning.js+++ b/server/services/agentTuiSpawning.js@@ -20,6 +20,7 @@ import { PATHS } from '../lib/fileUtils.js';import { resolveCliModel } from '../lib/providerModels.js';import { createStreamingAnsiStripper } from '../lib/ansiStrip.js';import { createImmediateFallbackSignalDetector } from '../lib/aiToolkit/errorDetection.js';+import { isAntigravityCommand } from '../lib/antigravity.js';import {DEFAULT_TUI_PROMPT_DELAY_MS,DEFAULT_TUI_IDLE_TIMEOUT_MS,@@ -138,7 +139,8 @@ export function createAgentTuiSession({ agentId, provider, tuiConfig, cwd, onDatreturn { sessionId, ptyProcess, pid: ptyProcess?.pid || null };}-function appendModelArgs(args, model) {+function appendModelArgs(args, model, command) {+ if (isAntigravityCommand(command)) return args;const effectiveModel = resolveCliModel(model);return effectiveModel ? [...args, '--model', effectiveModel] : args;}@@ -146,7 +148,7 @@ function appendModelArgs(args, model) {export function buildTuiSpawnConfig(provider, model) {const command = provider?.command || inferTuiCommand(provider?.id);const baseArgs = applyCommandDefaults(command, [...(provider?.args || [])]);- const args = appendModelArgs(baseArgs, model);+ const args = appendModelArgs(baseArgs, model, command);return {command,diff --git a/server/services/agents.js b/server/services/agents.jsindex 7322eb8e8d..0b10826ddc 100644--- a/server/services/agents.js+++ b/server/services/agents.js@@ -7,6 +7,7 @@ const execAsync = promisify(exec);const AGENT_PATTERNS = [{ name: 'Claude', pattern: 'claude', command: 'claude' },{ name: 'Codex', pattern: 'codex', command: 'codex' },+ { name: 'Antigravity', pattern: 'agy', command: 'agy' },{ name: 'Gemini', pattern: 'gemini', command: 'gemini' },{ name: 'Aider', pattern: 'aider', command: 'aider' },{ name: 'Cursor', pattern: 'cursor', command: 'cursor' },diff --git a/server/services/askService.js b/server/services/askService.jsindex bf92214186..c7b38b6c90 100644--- a/server/services/askService.js+++ b/server/services/askService.js@@ -32,6 +32,7 @@ import { getEvents as getCalendarEvents } from './calendarSync.js';import { tokenize as bm25Tokenize, STOP_WORDS } from '../lib/bm25.js';import { VALID_MODES as STORAGE_VALID_MODES } from './askConversations.js';import { resolveCliModel } from '../lib/providerModels.js';+import { ensureAntigravityPrintArgs, isAntigravityCliProvider } from '../lib/antigravity.js';import { ensureProviderReady as ensureOllamaProviderReady } from './ollamaManager.js';// Re-export so the route can keep importing modes via askService — but@@ -554,10 +555,14 @@ async function* streamCompletion(provider, model, prompt, signal) {// sources + history are concatenated, which exceeds OS argv limits// (especially on Windows ~32k).const { spawn } = await import('child_process');- const args = [...(provider.args || [])];+ const args = isAntigravityCliProvider(provider)+ ? ensureAntigravityPrintArgs(provider.args || [])+ : [...(provider.args || [])];if (provider.headlessArgs?.length) args.push(...provider.headlessArgs);const cliModel = resolveCliModel(model);- if (provider.id === 'gemini-cli') {+ if (isAntigravityCliProvider(provider)) {+ // Antigravity (`agy`) picks its model from its own configuration.+ } else if (provider.id === 'gemini-cli') {if (!args.includes('--output-format') && !args.includes('-o')) args.push('--output-format', 'text');if (cliModel) args.push('--model', cliModel);} else if (cliModel) {diff --git a/server/services/calendarGoogleSync.js b/server/services/calendarGoogleSync.jsindex 88d1a6c880..d7c3ca3b62 100644--- a/server/services/calendarGoogleSync.js+++ b/server/services/calendarGoogleSync.js@@ -259,7 +259,7 @@ async function runConfiguredMcp(prompt, io, accountId) {}// `--allowedTools mcp__…` is Claude-Code-specific argv. Other CLIs grant MCP- // access through their own config (codex/gemini have no such flag), so pass+ // access through their own config (codex/antigravity have no such flag), so pass// it only to Claude-family providers — appending it to another CLI would// make it reject the invocation on an unknown flag.const isClaudeFamily = /claude/i.test(picked.provider.command || '') || /claude/i.test(picked.provider.id || '');diff --git a/server/services/cleanupAgentWorktree.test.js b/server/services/cleanupAgentWorktree.test.jsindex fa4e3d03d9..02ff0cac5e 100644--- a/server/services/cleanupAgentWorktree.test.js+++ b/server/services/cleanupAgentWorktree.test.js@@ -557,7 +557,7 @@ describe('cleanupAgentWorktree - openPR path', () => {expect(addTask).not.toHaveBeenCalled();});- // --- non-Copilot reviewer (--review-with claude/gemini/codex) ---+ // --- non-Copilot reviewer (--review-with claude/antigravity/codex) ---it('should NOT call the native GH Copilot reviewer API when the list has no copilot', async () => {git.push.mockResolvedValue(undefined);@@ -595,7 +595,7 @@ describe('cleanupAgentWorktree - openPR path', () => {addTask.mockResolvedValue({ id: 'sys-rl-w' });await cleanupAgentWorktree('agent-1', true, {- openPR: true, requestCopilotReview: true, reviewers: ['copilot', 'codex', 'gemini'],+ openPR: true, requestCopilotReview: true, reviewers: ['copilot', 'codex', 'antigravity'],reviewStopMode: 'on-findings', reviewerApplies: true, description: 'Build',originalTask: { id: 'task-orig', priority: 'MEDIUM', metadata: { app: 'sparsetree' }, description: 'Build' }});@@ -603,7 +603,7 @@ describe('cleanupAgentWorktree - openPR path', () => {expect(git.requestCopilotReview).toHaveBeenCalledTimes(1);expect(addTask).toHaveBeenCalledTimes(1);const [followUp] = addTask.mock.calls[0];- expect(followUp.metadata.reviewLoopReviewers).toEqual(['copilot', 'codex', 'gemini']);+ expect(followUp.metadata.reviewLoopReviewers).toEqual(['copilot', 'codex', 'antigravity']);expect(followUp.metadata.reviewLoopStopMode).toBe('on-findings');expect(followUp.metadata.reviewLoopReviewerApplies).toBe(true);});@@ -614,7 +614,7 @@ describe('cleanupAgentWorktree - openPR path', () => {addTask.mockResolvedValue({ id: 'sys-rl-v' });await cleanupAgentWorktree('agent-1', true, {- openPR: true, requestCopilotReview: true, reviewers: ['codex', 'gemini', 'copilot'], description: 'Build',+ openPR: true, requestCopilotReview: true, reviewers: ['codex', 'antigravity', 'copilot'], description: 'Build',originalTask: { id: 'task-orig', priority: 'MEDIUM', metadata: { app: 'sparsetree' }, description: 'Build' }});@@ -622,7 +622,7 @@ describe('cleanupAgentWorktree - openPR path', () => {expect(git.requestCopilotReview).not.toHaveBeenCalled();expect(addTask).toHaveBeenCalledTimes(1);const [followUp] = addTask.mock.calls[0];- expect(followUp.metadata.reviewLoopReviewers).toEqual(['codex', 'gemini', 'copilot']);+ expect(followUp.metadata.reviewLoopReviewers).toEqual(['codex', 'antigravity', 'copilot']);});// --- skipMerge tests for review-loop follow-up cleanup ---diff --git a/server/services/codeReview.js b/server/services/codeReview.jsindex a88172e16d..c328529159 100644--- a/server/services/codeReview.js+++ b/server/services/codeReview.js@@ -1,6 +1,6 @@/*** Local-LLM code review backend for the Review Loop's `lmstudio` / `ollama`- * reviewer kinds. The follow-up agent (a CLI like Claude / Gemini / Codex)+ * reviewer kinds. The follow-up agent (a CLI like Claude / Antigravity / Codex)* POSTs the PR diff to `/api/code-review/local`; we feed it through the* configured backend's OpenAI-compatible `/v1/chat/completions` endpoint with* a code-review system prompt and return the findings text the agent then@@ -17,6 +17,7 @@ import {LOCAL_LLM_REVIEWERS,DEFAULT_REVIEWERS,DEFAULT_REVIEW_STOP_MODE,+ REVIEWER_ALIASES,REVIEWER_VALUES,REVIEW_STOP_MODES,} from '../lib/validation.js'@@ -49,7 +50,7 @@ export function pickCodeReviewDefaults(settings) {const raw = settings && typeof settings === 'object' ? settings.codeReview : nullconst reviewersIn = Array.isArray(raw?.reviewers) ? raw.reviewers : nullconst reviewers = reviewersIn- ? Array.from(new Set(reviewersIn.filter((r) => REVIEWER_VALUES.includes(r))))+ ? Array.from(new Set(reviewersIn.map((r) => REVIEWER_ALIASES[r] || r).filter((r) => REVIEWER_VALUES.includes(r)))): []return {reviewers: reviewers.length ? reviewers : [...DEFAULT_REVIEWERS],diff --git a/server/services/codeReview.test.js b/server/services/codeReview.test.jsindex 8962c059c7..743f7ac0ee 100644--- a/server/services/codeReview.test.js+++ b/server/services/codeReview.test.js@@ -62,9 +62,16 @@ describe('codeReview helpers', () => {it('strips unknown reviewer enum values from a hand-edited settings.json', () => {const out = pickCodeReviewDefaults({- codeReview: { reviewers: ['gemini', 'bogus', 'lmstudio', 'gemini'] },+ codeReview: { reviewers: ['antigravity', 'bogus', 'lmstudio', 'antigravity'] },})- expect(out.reviewers).toEqual(['gemini', 'lmstudio'])+ expect(out.reviewers).toEqual(['antigravity', 'lmstudio'])+ })++ it('maps legacy gemini defaults to antigravity', () => {+ const out = pickCodeReviewDefaults({+ codeReview: { reviewers: ['gemini', 'lmstudio'] },+ })+ expect(out.reviewers).toEqual(['antigravity', 'lmstudio'])})it('coerces invalid stop-mode + reviewerApplies + model strings', () => {diff --git a/server/services/cosAgents.js b/server/services/cosAgents.jsindex 2f4230b845..27ec83d1ca 100644--- a/server/services/cosAgents.js+++ b/server/services/cosAgents.js@@ -523,9 +523,9 @@ export async function killAgent(agentId) {// BTW is only supported for Claude Code TUI agents — the message gets// bracket-pasted directly into the live PTY session as if the user typed it// themselves. The legacy BTW.md path is gone: it required headless agents to-// poll a file mid-run, which most CLIs (codex / gemini / LM Studio) don't do+// poll a file mid-run, which most CLIs (codex / antigravity / LM Studio) don't do// reliably anyway, and the indirection had to be reflected in the prompt with-// a brittle "check this file" instruction. Other TUI kinds (codex, gemini)+// a brittle "check this file" instruction. Other TUI kinds (codex, antigravity)// don't honor bracketed-paste in the same way, so they're not eligible// either.export async function sendBtwToAgent(agentId, message) {diff --git a/server/services/loops.js b/server/services/loops.jsindex 071a61d45c..ed28cc758e 100644--- a/server/services/loops.js+++ b/server/services/loops.js@@ -3,7 +3,7 @@** Manages recurring AI CLI loops — the web equivalent of Claude Code's `/loop`.* Each loop spawns a headless AI run on a configurable interval via the in-tree aiToolkit,- * so any configured provider (Claude, Gemini, Codex, etc.) can power loops.+ * so any configured provider (Claude, Antigravity, Codex, etc.) can power loops.* Output streams in real-time via EventEmitter → Socket.IO.*/diff --git a/server/services/mediaPromptRefiner.js b/server/services/mediaPromptRefiner.jsindex 567674fd64..2deb1bc6c2 100644--- a/server/services/mediaPromptRefiner.js+++ b/server/services/mediaPromptRefiner.js@@ -99,7 +99,7 @@ USER FEEDBACK:${feedback}`;}-// CLI providers (codex/claude-code/gemini-cli) need provider-specific arg+// CLI providers (codex/claude-code/antigravity-cli) need provider-specific arg// shapes that the toolkit runner already knows about — going through the// runner avoids the "stdin is not a terminal" failure mode that hits when// you spawn `codex` directly without the `exec -` invocation.diff --git a/server/services/providerStatus.js b/server/services/providerStatus.jsindex 066beeef33..7afe182796 100644--- a/server/services/providerStatus.js+++ b/server/services/providerStatus.js@@ -12,7 +12,7 @@ import { PATHS } from '../lib/fileUtils.js';const providerStatusService = createProviderStatusService({dataDir: PATHS.data,statusFile: 'provider-status.json',- defaultFallbackPriority: ['claude-code', 'codex', 'lmstudio', 'local-lm-studio', 'ollama', 'gemini-cli'],+ defaultFallbackPriority: ['claude-code', 'codex', 'lmstudio', 'local-lm-studio', 'ollama', 'antigravity-cli', 'gemini-cli'],onStatusChange: (eventData) => {// Re-emit on the exported events emitter for backwards compatibilityproviderStatusEvents.emit('status:changed', eventData);diff --git a/server/services/runner.test.js b/server/services/runner.test.jsindex 60b97d953b..8a25b63e1c 100644--- a/server/services/runner.test.js+++ b/server/services/runner.test.js@@ -201,7 +201,7 @@ describe('buildCliArgs — claude-code defaultModel honoring', () => {});describe('buildCliArgs — gemini-cli defaultModel honoring', () => {- it('appends -m <id> for gemini-cli', () => {+ it('appends -m <id> for legacy gemini-cli', () => {const provider = { id: 'gemini-cli', command: 'gemini', args: [], defaultModel: 'gemini-2.5-pro' };const args = buildCliArgs(provider);expect(args).toEqual(['-m', 'gemini-2.5-pro']);@@ -237,6 +237,20 @@ describe('buildCliArgs — gemini-cli defaultModel honoring', () => {});});+describe('buildCliArgs — antigravity-cli headless mode', () => {+ it('uses agy print mode and does not pass model flags', () => {+ const provider = { id: 'antigravity-cli', command: 'agy', args: [], defaultModel: 'antigravity-configured-default' };+ const args = buildCliArgs(provider);+ expect(args).toEqual(['--print', '--dangerously-skip-permissions']);+ });++ it('strips legacy Gemini flags during invocation', () => {+ const provider = { id: 'antigravity-cli', command: 'agy', args: ['--yolo', '-m', 'gemini-2.5-pro', '--output-format', 'text'], defaultModel: 'antigravity-configured-default' };+ const args = buildCliArgs(provider);+ expect(args).toEqual(['--print', '--dangerously-skip-permissions']);+ });+});+describe('buildCliArgs — codex (regression coverage for the existing logic)', () => {it('omits --model when defaultModel is the sentinel', () => {const provider = { id: 'codex', command: 'codex', args: [], defaultModel: 'codex-configured-default' };diff --git a/server/services/taskSchedule.js b/server/services/taskSchedule.jsindex 4bd09de1ff..1a08adf375 100644--- a/server/services/taskSchedule.js+++ b/server/services/taskSchedule.js@@ -526,7 +526,7 @@ Use \`feat:\` / \`fix:\` / \`refactor:\` / \`chore:\` / etc. (The bracketed-scop## Phase 6 — Review and ship-The configured reviewers for this task, in order, are \`{reviewers}\`. \`copilot\` waits for GitHub's auto-review; \`claude\` / \`codex\` / \`gemini\` invoke a local-CLI critique. When more than one is configured, run each in the listed order before merging — this mirrors slashdo's \`/do:pr --review-with <list>\` (the lone default \`copilot\` needs no flag; multi-reviewer runs may also carry \`--review-stop-on-*\` / \`--reviewer-applies\`).+The configured reviewers for this task, in order, are \`{reviewers}\`. \`copilot\` waits for GitHub's auto-review; \`claude\` / \`codex\` / \`antigravity\` invoke a local-CLI critique. When more than one is configured, run each in the listed order before merging — this mirrors slashdo's \`/do:pr --review-with <list>\` (the lone default \`copilot\` needs no flag; multi-reviewer runs may also carry \`--review-stop-on-*\` / \`--reviewer-applies\`).1. **Self-review your diff for reuse, quality, and efficiency** (DRY, dead code, naming, simpler equivalents, missed edge cases) and fix findings in the same diff — BEFORE opening the PR, not retroactively. Claude Code runs this as the three-agent \`/simplify\` pass; on other CLIs, do the equivalent review by hand.2. Push the branch: \`git push -u origin claim/<slug>\`@@ -557,7 +557,7 @@ The configured reviewers for this task, in order, are \`{reviewers}\`. \`copilot\`\`\`Leave the local \`claim/<slug>\` branch and the open PR alone. Do NOT run Phase 7 — that phase assumes a merged PR. PLAN.md and \`.changelog/NEXT.md\` were already updated in Phase 5, and that's fine even though the merge didn't happen: the next \`plan-task\` run will see the slug as in-flight via the open PR and pick a different item.- - **\`claude\` / \`codex\` / \`gemini\`** — Invoke that CLI in headless mode against the PR diff to critique it, apply the fixes, run tests, and re-push. Iterate until the CLI reports no further blocking findings, then advance to the next configured reviewer (or merge if it's the last). Cap at **3 rounds** here — this inline claim flow is intentionally more conservative than the dedicated CoS-spawned review-loop follow-up (which allows up to 10 iterations per reviewer); after 3 rounds, leave the PR for human follow-up.+ - **\`claude\` / \`codex\` / \`antigravity\`** — Invoke that CLI in headless mode against the PR diff to critique it, apply the fixes, run tests, and re-push. Iterate until the CLI reports no further blocking findings, then advance to the next configured reviewer (or merge if it's the last). Cap at **3 rounds** here — this inline claim flow is intentionally more conservative than the dedicated CoS-spawned review-loop follow-up (which allows up to 10 iterations per reviewer); after 3 rounds, leave the PR for human follow-up.5. **Merge via \`gh pr merge\`** — NEVER a local \`git merge\` into main or any other branch. The repo may allow only one of \`--merge\` / \`--squash\` / \`--rebase\`, so don't hardcode a method. Try in this order and use the first one that succeeds:\`\`\`bash@@ -1970,7 +1970,7 @@ Use \`feat:\` / \`fix:\` / \`refactor:\` / \`chore:\` / etc. (The bracketed-scop## Phase 6 — Review and ship-The configured reviewers for this task, in order, are \`{reviewers}\`. \`copilot\` waits for GitHub's auto-review; \`claude\` / \`codex\` / \`gemini\` invoke a local-CLI critique. When more than one is configured, run each in the listed order before merging — this mirrors slashdo's \`/do:pr --review-with <list>\` (the lone default \`copilot\` needs no flag; multi-reviewer runs may also carry \`--review-stop-on-*\` / \`--reviewer-applies\`).+The configured reviewers for this task, in order, are \`{reviewers}\`. \`copilot\` waits for GitHub's auto-review; \`claude\` / \`codex\` / \`antigravity\` invoke a local-CLI critique. When more than one is configured, run each in the listed order before merging — this mirrors slashdo's \`/do:pr --review-with <list>\` (the lone default \`copilot\` needs no flag; multi-reviewer runs may also carry \`--review-stop-on-*\` / \`--reviewer-applies\`).1. Run \`/simplify\` (three-agent reuse/quality/efficiency review) against your own diff and fix findings in the same diff. BEFORE opening the PR, not retroactively.2. Push the branch: \`git push -u origin claim/<slug>\`@@ -2001,7 +2001,7 @@ The configured reviewers for this task, in order, are \`{reviewers}\`. \`copilot\`\`\`Leave the local \`claim/<slug>\` branch and the open PR alone. Do NOT run Phase 7 — that phase assumes a merged PR. PLAN.md and \`.changelog/NEXT.md\` were already updated in Phase 5, and that's fine even though the merge didn't happen: the next \`plan-task\` run will see the slug as in-flight via the open PR and pick a different item.- - **\`claude\` / \`codex\` / \`gemini\`** — Invoke that CLI in headless mode against the PR diff to critique it, apply the fixes, run tests, and re-push. Iterate until the CLI reports no further blocking findings, then advance to the next configured reviewer (or merge if it's the last). Cap at **3 rounds** here — this inline claim flow is intentionally more conservative than the dedicated CoS-spawned review-loop follow-up (which allows up to 10 iterations per reviewer); after 3 rounds, leave the PR for human follow-up.+ - **\`claude\` / \`codex\` / \`antigravity\`** — Invoke that CLI in headless mode against the PR diff to critique it, apply the fixes, run tests, and re-push. Iterate until the CLI reports no further blocking findings, then advance to the next configured reviewer (or merge if it's the last). Cap at **3 rounds** here — this inline claim flow is intentionally more conservative than the dedicated CoS-spawned review-loop follow-up (which allows up to 10 iterations per reviewer); after 3 rounds, leave the PR for human follow-up.5. **Merge via \`gh pr merge\`** — NEVER a local \`git merge\` into main or any other branch. The repo may allow only one of \`--merge\` / \`--squash\` / \`--rebase\`, so don't hardcode a method. Try in this order and use the first one that succeeds:\`\`\`bash@@ -3355,4 +3355,3 @@ function getTaskTypeDescription(taskType) {};return descriptions[taskType] || taskType.replace(/-/g, ' ');}-diff --git a/server/services/voice/config.js b/server/services/voice/config.jsindex 275470e4b3..08d83428f8 100644--- a/server/services/voice/config.js+++ b/server/services/voice/config.js@@ -78,7 +78,7 @@ export const VOICE_DEFAULTS = Object.freeze({maxIterations: 3,},// Code-agent delegation — lets the voice CoS hand a coding task to a- // CLI/TUI agent (Claude Code, Codex, Gemini) via the CoS task system.+ // CLI/TUI agent (Claude Code, Codex, Antigravity) via the CoS task system.// The conversational brain (llm.provider above) stays the fast local// router; this is the heavyweight agent that does the actual edits in an// isolated worktree and opens a PR. OFF by default. Empty provider/modeldiff --git a/server/services/voice/tools.js b/server/services/voice/tools.jsindex 142612477a..9e460731ba 100644--- a/server/services/voice/tools.js+++ b/server/services/voice/tools.js@@ -298,7 +298,7 @@ const GROUP_INTENT = {// in speech). A false positive only OFFERS the tool to the LLM (which still// has to choose it), and the tool is a no-op unless codeAgent.enabled// (pipeline.js strips it from the spec list when off).- code: /\b(?:have (?:claude|codex|gemini|the agent|an agent)\b|dispatch (?:a |an )?(?:coding |code )?agent|spin up an agent|code (?:it )?up|open a pr|pull request|refactor|(?:implement|debug|rewrite|patch)\b[^.!?\n]{0,40}\b(?:bug|tests?|function|method|build|lint|type ?error|error|code|file|module|endpoint|route|component|class|api|schema|migration|script|flag|regression|handler|parser|service|hook|query|registry|config)\b|fix (?:the |a |an |my )?(?:bug|test|tests|failing|function|method|build|lint|type|error|code|file|module|endpoint|route|component)|write (?:a |the |some )?(?:unit |integration )?tests?|add (?:a |an |the )?(?:flag|function|method|endpoint|route|test|migration)\b|(?:how(?:'s| is| are)?|status of|progress on|what(?:'s| is)? happening (?:with|on)|where (?:are|is) (?:we|it|that|the))\b[^.!?\n]{0,40}\b(?:coding (?:task|agent|job)|code agent|dispatched (?:task|job|agent)|pull request|the agent|the pr|that pr|my pr|the task)\b|\bis (?:the |that |my )?(?:coding |code )?(?:agent|task) (?:still |yet )?(?:running|going|working|done|finished))/i,+ code: /\b(?:have (?:claude|codex|antigravity|gemini|the agent|an agent)\b|dispatch (?:a |an )?(?:coding |code )?agent|spin up an agent|code (?:it )?up|open a pr|pull request|refactor|(?:implement|debug|rewrite|patch)\b[^.!?\n]{0,40}\b(?:bug|tests?|function|method|build|lint|type ?error|error|code|file|module|endpoint|route|component|class|api|schema|migration|script|flag|regression|handler|parser|service|hook|query|registry|config)\b|fix (?:the |a |an |my )?(?:bug|test|tests|failing|function|method|build|lint|type|error|code|file|module|endpoint|route|component)|write (?:a |the |some )?(?:unit |integration )?tests?|add (?:a |an |the )?(?:flag|function|method|endpoint|route|test|migration)\b|(?:how(?:'s| is| are)?|status of|progress on|what(?:'s| is)? happening (?:with|on)|where (?:are|is) (?:we|it|that|the))\b[^.!?\n]{0,40}\b(?:coding (?:task|agent|job)|code agent|dispatched (?:task|job|agent)|pull request|the agent|the pr|that pr|my pr|the task)\b|\bis (?:the |that |my )?(?:coding |code )?(?:agent|task) (?:still |yet )?(?:running|going|working|done|finished))/i,ui: UI_INTENT_RE,// Creative catalog lookups — "find my character X", "what scenes feature Y",// "look up the place named Z", "search my catalog for …". Tight enough that@@ -1914,7 +1914,7 @@ const TOOLS = [const model = typeof codeAgent.model === 'string' ? codeAgent.model.trim() : '';// Resolve a code-capable provider. A coding agent must run a CLI/TUI- // provider (Claude Code, Codex, Gemini CLI, …); an API backend (LM Studio+ // provider (Claude Code, Codex, Antigravity CLI, …); an API backend (LM Studio// / Ollama / OpenAI-compatible) can't, and the spawner would otherwise// fall through to the Claude CLI spawn config with a non-Claude model name// (buildCliSpawnConfig defaults to claude). Validate BOTH the inherited@@ -1941,7 +1941,7 @@ const TOOLS = [return {ok: false,error: 'no code-capable provider',- summary: "Your AI provider can't run a coding agent. Enable a CLI provider like Claude Code, Codex, or Gemini under Settings, AI Providers, then try again.",+ summary: "Your AI provider can't run a coding agent. Enable a CLI provider like Claude Code, Codex, or Antigravity under Settings, AI Providers, then try again.",};}resolvedProvider = codeProvider.id;