Skip to content

Keep Antigravity built-in skill files out of repositories - #37167

Merged
brennanb2025 merged 5 commits into
mainfrom
brennanb2025/agy-skill-materialize-1101
Nov 2, 2026
Merged

brennanb2025 merged 5 commits into
mainfrom
brennanb2025/agy-skill-materialize-1101

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​104 $\color{#cf222e}{\Huge{\mathbf{−}}}$​13 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​91
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​384 $\color{#cf222e}{\Huge{\mathbf{−}}}$​31 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​353

ELI5

Starting or resuming an Antigravity chat in Orca created skills/system/run-workflow/SKILL.md inside the user's repository, and deleting it didn't help: it came back on the next chat. Orca doesn't write that file. The Antigravity server Orca downloads (version 1.4.3) writes it into the chat's folder as soon as a session starts, before the user asks for anything.

What Changed

  • Orca now downloads and runs Antigravity server 1.4.1, the last release that doesn't write the skill file. Fresh installs get it automatically.
  • People who already have 1.4.3 installed see a visible Update button on the Antigravity row in Settings (it used to be hidden in the "..." menu). Clicking it installs 1.4.1. Once the runtime is current, the row looks the same as before, with Reinstall in the menu.
  • Chats still run in the user's workspace, so relative commands and file edits keep working there.

What users should know:

  • Existing installs keep creating the file until the user clicks Update. A chat that is already running keeps its current server until it ends; the next chat that starts uses 1.4.1.
  • Orca never deletes skills/ files already in a repository, including ones the old server wrote.

Why

Moving the server's working directory out of the workspace could stop file and terminal tools from working in it, so the fix picks a server release that doesn't write the file and keeps the working-directory contract. The version is fixed on purpose and doesn't change with Orca releases; the code comment says to check a newer release in an empty folder before moving it.

Intended: installed runtimes stay usable until the user explicitly updates or reinstalls; Orca doesn't silently replace an installed runtime or start a large download on its own. This is the common pattern for this runtime.

Intended: files already written stay on disk, because Orca can't safely treat a user's skills/ folder as disposable.

Intended: a paired or SSH host running an older Orca keeps its own runtime version (old paired servers keep their launch path), so chats on that host keep creating the file until that host's Orca is updated and the user chooses Update there.

Intended: 1.4.1 still creates two empty folders, .agents/skills/ and .gemini/skills/, in the workspace when a new chat starts. They hold no files, and git status stays clean because git doesn't track empty folders (checked in an empty repo, a repo with commits, and a repo with its own skills/). The common pattern runs this same 1.4.1 release in the workspace, so its users see the same folders.

Linked Issue

Tracked in #37022. STA-13288.

Visual Proof

Settings, Antigravity row with an older runtime installed. Before (main), Update is only in the "..." menu:
main-settings-menu-open.png

After (this PR), Update is a visible button:
branch-settings-update-visible.png

After clicking Update, the row is back to "Installed" with no button:
branch-settings-after-update.png

A chat created on 1.4.3, resumed on 1.4.1 after a restart, with its history and Effort choice intact:
upgraded-resume.png

A new chat on 1.4.1 in a plain folder, reading and writing files in the workspace:
new-chat.png

Model and Effort choices on 1.4.1 match 1.4.3:
agy141-effort.png

Testing

Real Antigravity on macOS arm64 (M4Air), signed in, same profile carried from main to this branch:

  • Reproduced the bug fresh: on 1.4.3, skills/system/run-workflow/SKILL.md appears in an empty folder right after a session starts, before any prompt; a chat on main wrote it into a test repo.
  • On 1.4.1 no file is written, in a fresh install, a resumed chat and a new chat, before and after a restart. Existing user files under skills/ and the file the old server wrote were left byte-for-byte unchanged.
  • Update with a chat open: the open chat kept replying on its 1.4.3 server; after a restart, the same chat resumed on 1.4.1 with no lost history and its saved Effort kept.
  • File tools ran in the workspace: the agent read a file there and wrote a new file at the workspace root, in a git repo and a plain folder.
  • 1.4.1 reports the same capabilities as 1.4.3 (so the existing install check accepts it), and its model and Effort options were byte-identical to 1.4.3 for the same account. That recording is now a test fixture.
  • Every platform's archive and both files inside it were checked against SHA-256 hashes and sizes for macOS arm64/x64 and Linux x64/arm64.
  • Unit tests: the runtime-selection test (a newer installed copy is used until 1.4.1 is installed, then 1.4.1 wins), the install check, the Settings row's Update button, and the recorded 1.4.1 model/Effort options.
  • Not run: Linux and Windows apps (Windows has no Orca-managed Antigravity runtime, before or after this change), and an Antigravity found on PATH (not Orca-managed; unchanged). The QA account is free tier and is only offered Gemini 3.8 Flash, so a Pro model choice wasn't exercised.

Risk

Level: Medium. This selects an older provider runtime. Existing chats resumed and workspace tools kept their working directory in real QA. No Orca saved-data or wire-format changes. Reverting restores the previous runtime version but can't remove files already written in a user's workspace.

Review

Full path: managed agent runtime lifecycle and provider-version change. Plan: select the compatible provider runtime and show the existing Update action for affected installations, keeping workspace tool execution and explicit installs.

Agent skill upstream boundary

  • Not applicable: this changes provider runtime release metadata and copies no upstream skill-installer implementation, tests, fixtures, registry entries, path tables, comments, or documentation.

@brennanb2025
brennanb2025 marked this pull request as ready for review November 1, 2026 21:33
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 4 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: da77d69d-bede-4a00-bca2-be49945f3419
Commits

Reviewing files that changed from the base of the PR and between b588e11 and ac1e137.

Files selected for processing: 6
  • src/main/acp/acp-structured-host-model-options.test.ts
  • src/main/acp/acp-structured-managed-runtime.test.ts
  • src/main/acp/fixtures/antigravity-v1.4.1-options.json
  • src/main/antigravity/antigravity-acp-runtime.ts
  • src/renderer/src/components/managed-runtime/managed-runtime-install-view.ts
  • src/renderer/src/components/settings/AntigravityChatSignInRow.test.tsx

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f9bb93f9-038e-4581-826e-69c375927c57
Commits

Reviewing files that changed from the base of the PR and between 0fa5dae and b588e11.

Files selected for processing: 4
  • src/main/acp/acp-structured-managed-runtime.test.ts
  • src/main/antigravity/antigravity-acp-runtime.ts
  • src/renderer/src/components/managed-runtime/managed-runtime-install-view.ts
  • src/renderer/src/components/settings/AntigravityChatSignInRow.test.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

Walkthrough

The Antigravity pinned runtime changes from version 1.4.3 to 1.4.1, with updated archive and executable metadata for four platforms. Managed-runtime tests now cover selection of a complete fallback release and an external copy. In Settings, an outdated installation presents Update/Reinstall as the primary action. A regression test verifies that selecting Update triggers another install call.

Merge Risk: Minimal · previous review b588e

The managed runtime can be updated to 1.4.1; no concrete merge-blocking issue was established.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly describes the primary change: preventing Antigravity built-in skill files from being written to repositories.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description is mostly complete. It includes the ELI5 summary, changed behavior, rationale, linked issue, visual proof, testing details, risk, review scope, and upstream-boundary declaration. The r…
Full details: Description check

Explanation

The description is mostly complete. It includes the ELI5 summary, changed behavior, rationale, linked issue, visual proof, testing details, risk, review scope, and upstream-boundary declaration. The repository Checklist and Notes sections are not completed, and the AI Disclosure section is omitted, but these omissions do not prevent review of the change.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 4 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Review loop status: done

The problem. Starting or resuming an Antigravity chat wrote skills/system/run-workflow/SKILL.md into the user's repository, and it came back after being deleted. Orca's downloaded Antigravity server 1.4.3 writes it into the chat's folder as soon as a session starts. QA reproduced this fresh: in an empty folder the file appeared right after the session started, before any prompt.

The change users get. Orca now installs Antigravity server 1.4.1, which doesn't write that file. People who already have 1.4.3 see a visible Update button in Settings > Antigravity instead of an entry hidden in the "..." menu. Chats keep running in the workspace, so file and terminal tools work as before.

Caveat (intended, matches the common pattern): existing installs keep creating the file until the user clicks Update. A chat that is already open keeps its current server until it ends. Orca never deletes skills/ files already in a repository.

What was reviewed and fixed

  • Full path: a correctness reviewer, a user-visible-result reviewer, an architecture challenger, a continued reviewer and a fresh final reference comparison. No P0, P1 or P2 code defects were found.
  • The architecture is kept: pin the known-good release, keep both the process and session working directory in the workspace, and use the explicit Update.
  • Fixed:
    • The pin comment now names the reported range (1.4.2 through 1.4.5) and says to check a new release in an empty folder before moving the pin.
    • The PR description now labels paired and SSH hosts on older Orca (they keep their own runtime).
    • It also labels the empty folders described below.
  • Added a test fixture from a real recording of 1.4.1's model and Effort options, with one test that runs it through the production options path.
  • CI repair: a type error in that new test.
  • The "existing installs only learn about the fix through Settings" point went to the lane owner, who kept it as built. That is what the common pattern shows users; there's no chat notice.

Verified

Real QA on the M4Air (macOS arm64), with a signed-in Antigravity account. The same profile went from main to this branch:

  • Bug reproduced on main: the chat created the file in a test repo.
  • Update while a chat was open: the Update button installed 1.4.1. The open chat kept replying on its old server, with no forced stop.
  • After a restart: the same chat resumed on 1.4.1. Its history was intact, with no "not restored" row, and its saved Effort was kept.
  • New chats: in a git repo and in a plain folder, the agent read and wrote files at the workspace root. No skill file appeared, before or after a restart. Existing skills/ files, including the one the old server wrote, were byte-for-byte unchanged.
  • Compatibility: 1.4.1's capabilities pass the existing install check. Its model and Effort options are byte-identical to 1.4.3's for the same account.
  • Empty folders: 1.4.1 creates two empty folders, .agents/skills/ and .gemini/skills/, when a new chat starts. They hold no files, and git status stays clean in all three repo shapes checked. The common pattern ships the same release. Labelled intended in the description.
  • Every archive and both files inside it were checked against SHA-256 hashes and sizes on all four supported platforms.

Not verified

  • Linux and Windows apps. Windows has no Orca-managed Antigravity runtime, before or after this change.
  • An Antigravity copy found on PATH (unchanged).
  • A Pro model choice: the QA account is free tier and is offered only Gemini 3.8 Flash.

Deferred, already on main (for Brennan's list, not this PR)

  • A resumed chat that saved an Effort but no model of its own shows "Model" with no Effort control until its first message. The saved Effort is still sent.
  • "Remove downloaded runtime" is offered after Update while an old-version chat is still running.
  • In Agents > Chat runtime, the Antigravity sign-in area hides while an Update downloads.
  • A current install keeps Reinstall in the menu, where the common pattern shows a button.
  • The install button appears only after the status loads, so the row shifts.
  • Orca has no Windows Antigravity runtime; the common pattern pins one.

For Brennan's review

Before (main), Update is hidden in the "..." menu:
main-settings-menu-open.png

After (this PR), Update is a visible button:
branch-settings-update-visible.png

After clicking Update:
branch-settings-after-update.png

A chat created on 1.4.3, resumed on 1.4.1:
upgraded-resume.png

A new chat on 1.4.1 in a plain folder:
new-chat.png

Places where judgment matters:

QA ran on head 568e3b7 (the PR's changes plus one main merge). The commits since then touch only tests: 2ab887a adds the recorded 1.4.1 options fixture and test, and ac1e137 fixes that test's type.

@brennanb2025
brennanb2025 merged commit 32a6c42 into main Nov 2, 2026
48 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/agy-skill-materialize-1101 branch November 2, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant