Skip to content

fix(skills): scan Antigravity CLI's actual global skill directory - #21647

Merged
nwparker merged 3 commits into
nwparker/agy-history-foldersfrom
nwparker/agy-skill-discovery
Sep 21, 2026
Merged

nwparker merged 3 commits into
nwparker/agy-history-foldersfrom
nwparker/agy-skill-discovery

Conversation

@nwparker

@nwparker nwparker commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​45 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​43
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 0

ELI5

Orca was looking for Antigravity skills in the wrong folder. It could miss a skill that agy actually loads and show one that agy ignores. Orca now checks the global folder documented and used by the installed CLI.

What Changed

Change the existing Antigravity home discovery source from ~/.gemini/antigravity/skills to ~/.gemini/config/skills. Preserve its source identity and agent ownership. Existing host-specific path handling applies to native and WSL scans; no discovery service or cache is added.

Stacked on #21640. This diff only changes discovery and its tests.

Why

Installed agy's bundled agy-customizations/SKILL.md names ~/.gemini/config/ as the global customization root, and its docs/skills.md places skills below skills/<name>/SKILL.md. A real /skills query confirmed this: a unique probe in the documented root was listed with its exact path, while a separate probe in the old directory was absent. Scanning both as Antigravity skills would retain the false claim that the CLI loads the legacy probe.

Linked Issue

Addresses #12897. The native installer does not yet offer Antigravity as a destination; that separate gap is not claimed fixed here. #21541's broader setup requirements also remain open.

Visual Proof

Same two temporary probe skills, same Skills-page filter. agy listed only orca-agy-global-probe-20260919 from the documented root. Before the fix Orca instead showed only orca-agy-legacy-probe-20260919:

Before

After rebuilding the hidden Electron app, Orca agrees with agy:

After

Captured and inspected using the electron and visual-proof skills through CDP. The probes were removed afterward and a fresh agy /skills query confirmed neither remained. Existing user skills and authentication were preserved.

Testing

  • Manually tested on macOS with installed agy --print=/skills --output-format=json --print-timeout=15s, real Orca discovery IPC, and the rendered Skills page before/after a rebuild.
  • All three new regressions failed before the fix; 47 discovery, target, and WSL tests pass afterward. Cases include Windows/POSIX path construction and filesystem discovery with both roots populated.
  • Node typecheck and changed-code-quality gate pass. Electron development build and relay build pass.
  • Actual Windows/WSL/SSH execution is still unverified. Existing schema/source ID/owner stay unchanged; remote hosts must update their discovery code to receive the corrected root.
  • This verifies discovery, not skill execution during an authenticated model turn.

Review

  • Agent skill upstream boundary followed: independently derived from installed provider documentation and real CLI behavior; no third-party skill registry/path table copied.

Notes

This targets the agy CLI used by Orca's Antigravity agent entry. It does not migrate files from the old directory or claim to change Antigravity IDE behavior.

Checklist

  • Small and focused
  • ELI5, before/after, mechanism, and approach explained
  • Before/after screenshots attached
  • Self-reviewed
  • Cross-platform, SSH and mixed-version behavior considered
  • Full lint/typecheck/test/build suite (focused local checks above; CI covers broader checks)

@nwparker

Copy link
Copy Markdown
Contributor Author

Independent verification update:

  • Installed agy 1.2.7 /skills probe initially returned a transient provider 502; a bounded retry succeeded with a structured response (status, usage, and response metadata), without publishing skill names or paths.
  • Skill-discovery suites: 28 passed.
  • pnpm tc:node passed.
  • Changed-code quality passed with 0 new findings.
  • CI run 35436005104 passed typecheck, static analysis, all 8 test shards, verify, and both packages.

Scoped verdict: Approve after CI for correcting the Antigravity global skill root. Windows/WSL/SSH execution remains unverified, and this proves discovery rather than skill execution during a model turn.

@nwparker

Copy link
Copy Markdown
Contributor Author

Independent verification (2026-09-20):

  • Focused discovery tests: 28/28 passed.
  • pnpm tc:node passed.
  • pnpm run check:code-quality:changed origin/main passed with 0 new findings across 57 changed files.
  • Installed agy 1.2.7 live /skills probe exited successfully (5 structured-output lines, 1363 bytes); raw skill names/content were not copied into the review.
  • Full CI run 35436005104 is green across all test shards, typecheck, static analysis, packages, and verify.

Verdict: approve after CI in stack order for corrected native skill-root discovery. Windows/WSL/SSH discovery and skill execution remain outside this evidence. No merge performed.

@nwparker

Copy link
Copy Markdown
Contributor Author

Fresh CI rerun: green.

ELI5: skill discovery looks in the directory agy actually uses, so installed skills show up. Merge verdict: approve together with #21650.

@nwparker

Copy link
Copy Markdown
Contributor Author

Merge-risk review (2026-09-20)

The change is a one-path correction: skill discovery now scans agy's documented global directory. It adds no cache, protocol field, installer, or execution machinery. Existing macOS visual before/after proof, focused tests, and green CI cover the behavior.

Verdict: low merge risk; approve after stack order. The remaining Windows/WSL/SSH runtime discovery gap is a coverage limitation, not a new code path claimed by this PR.

@nwparker
nwparker marked this pull request as ready for review September 21, 2026 00:24
@nwparker
nwparker merged commit 8e0293e into nwparker/agy-history-folders Sep 21, 2026
34 of 35 checks passed

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — one nitpick below.

Reviewed changes

  • Antigravity global skill root corrected — the home-antigravity source now scans ~/.gemini/config/skills instead of ~/.gemini/antigravity/skills (src/main/skills/skill-discovery-sources.ts:191), keeping its id, antigravity owner, and agent-skills provider unchanged. In-repo corroboration is strong: src/main/antigravity/hook-service.ts already writes the CLI's global config to ~/.gemini/config/hooks.json, so .gemini/config is the agy global root.
  • New focused regression suite — src/main/skills/antigravity-skill-discovery.test.ts pins POSIX/Windows path construction and runs a real discoverSkills scan with both roots populated, asserting only the documented root is discovered. I confirmed all three new assertions fail against the old path, so the coverage is genuine.
  • Existing root-list test updated — discovery.test.ts swaps the expected path and retitles the case.

ℹ️ Nitpicks

  • src/renderer/src/lib/orchestration-skill-coverage.test.ts:184-185,212,365-366,371 still uses /Users/test/.gemini/antigravity/skills as Antigravity's global skills location, mirroring the old production path. The assertions pass because coverage matches by owner, not path, but the fixture now misrepresents the CLI root and will mislead the next reader — worth updating to .gemini/config/skills.

Pullfrog  | Fix it ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

nwparker added a commit that referenced this pull request Sep 21, 2026
* fix(history): recognize folder workspace session targets

* Fix workspace history catalog and test fixtures

* Regenerate runtime catalog after workspace label changes

* fix(skills): discover the Antigravity CLI global skill root (#21647)
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