Skip to content

feat: Add Google Antigravity ecosystem support#2261

Open
VKrishna04 wants to merge 2 commits into
garrytan:mainfrom
Life-Experimentalist:feat/antigravity-support
Open

feat: Add Google Antigravity ecosystem support#2261
VKrishna04 wants to merge 2 commits into
garrytan:mainfrom
Life-Experimentalist:feat/antigravity-support

Conversation

@VKrishna04

Copy link
Copy Markdown
  • Implements headless mode adapter for 100% native gstack execution inside Antigravity.

  • Adds 1-click cross-platform setup script (Windows junctions / UNIX symlinks) for transparent AI skill discovery.

  • Passes all uniqueness and catalog generation tests.

- Implements headless mode adapter for 100% native gstack execution inside Antigravity-IDE.

- Adds 1-click cross-platform setup script (Windows junctions / UNIX symlinks) for transparent AI skill discovery.

- Passes all uniqueness and catalog generation tests.
Copilot AI review requested due to automatic review settings July 14, 2026 19:03
@trunk-io

trunk-io Bot commented Jul 14, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@VKrishna04

Copy link
Copy Markdown
Author

/trunk merge

@trunk-io

trunk-io Bot commented Jul 14, 2026

Copy link
Copy Markdown

An error occurred while submitting your PR to the queue: Only users that are a part of this repo's Trunk organization or have write permissions to the repo can submit a PR to the queue

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a new “Google Antigravity” host target to gstack’s host-config/generation pipeline and introduces an /agy skill to invoke the Antigravity CLI as an external second-opinion reviewer, alongside a convenience setup script intended to bridge Antigravity skill discovery.

Changes:

  • Registers a new antigravity host (config + host index wiring) and updates host-count tests.
  • Adds an Antigravity-focused setup script and an Antigravity host adapter module (plus a setup:antigravity package script).
  • Introduces the /agy skill (template + generated output) and updates routing/catalog metadata.

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
test/host-config.test.ts Updates assertion to reflect the newly registered host count.
scripts/setup-antigravity.ts Adds a cross-platform linking script intended to expose generated Antigravity skills under ~/.agents/skills/.
scripts/proactive-suggestions.json Adds routing metadata for the new /agy skill.
scripts/host-adapters/antigravity-adapter.ts Adds Antigravity-specific post-processing transforms (AskUserQuestion/headless handling, etc.).
package.json Adds setup:antigravity convenience script.
hosts/index.ts Registers and re-exports the new antigravity host config.
hosts/antigravity.ts Defines the Antigravity host configuration (paths, rewrites, suppression, runtime assets).
gstack/llms.txt Lists the new /agy skill in the skill index.
agy/SKILL.md.tmpl Adds the /agy skill template.
agy/SKILL.md Adds the generated /agy skill output.
.gitignore Ignores the .antigravity/ generated output directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread hosts/antigravity.ts
Comment on lines +42 to +55
frontmatter: {
mode: 'allowlist',
// Keep only fields consumed by Antigravity's routing table.
// 'version' + 'author' populate the IDE skill card metadata.
// 'tools' lets the Desktop IDE pre-authorize tool calls per skill.
// Keeping this list short prevents context-window bloat when the
// multi-agent orchestrator loads all skill manifests simultaneously.
keepFields: ['name', 'description', 'version', 'author', 'tools'],
// 1024-char limit prevents any single skill description from dominating
// the routing table context; 'truncate' avoids hard build failures on
// edge cases while still surfacing an actionable warning in CI logs.
descriptionLimit: 1024,
descriptionLimitBehavior: 'truncate',
},
Comment on lines +262 to +266
// 1. Verify source
assertSourceExists();

// 2. Ensure ~/.agents/skills/ exists
ensureTargetParent();
Comment thread hosts/antigravity.ts
Comment on lines +134 to +137
// Adapter handles AskUserQuestion → request_user_input with headless-mode
// conditional (ANTIGRAVITY_HEADLESS=1 → write to TODOS.md instead of blocking).
adapter: 'scripts/host-adapters/antigravity-adapter.ts',
};
Comment on lines +175 to +196
function removeOrBackup(state: LinkState): void {
if (state.kind === 'broken' || state.kind === 'stale') {
log(` Removing ${state.kind} link: ${TARGET_LINK}`);
if (state.kind === 'stale') {
log(` (was pointing at: ${(state as { kind: 'stale'; target: string }).target})`);
}
// Use unlinkSync for junctions/symlinks (rmSync throws EFAULT on Windows junctions)
fs.unlinkSync(TARGET_LINK);
return;
}

if (state.kind === 'real-dir') {
const backupPath = TARGET_LINK + '.backup-' + Date.now();
warn(
`${TARGET_LINK} is a real directory (not a link).\n` +
` Backing it up to: ${backupPath}\n` +
` If this was intentional, merge it back manually after setup.`
);
fs.renameSync(TARGET_LINK, backupPath);
return;
}
}
@time-attack

Copy link
Copy Markdown
Contributor

@16francej — recommend closing this PR. Thanks for putting this together. We aren’t accepting new standalone skills right now, so we’re going to pass on this proposal. We can revisit the area later if it becomes part of GStack’s core workflow.

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.

3 participants