Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(antigravity): use IDE launch protocol - #1090

Merged
35C4n0r merged 1 commit into
mainfrom
35C4n0r/fix-antigravity-ide-protocol
Sep 1, 2026
Merged

fix(antigravity): use IDE launch protocol#1090
35C4n0r merged 1 commit into
mainfrom
35C4n0r/fix-antigravity-ide-protocol

Conversation

@35C4n0r

@35C4n0r 35C4n0r commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Description

Update the Antigravity module to use the antigravity-ide: protocol so workspace links open the IDE instead of the chat canvas.

Depends on: coder/coder#28784

Type of Change

  • New module
  • New template
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Module Information

Path: registry/coder/modules/antigravity
New version: v1.0.2
Breaking change: [ ] Yes [x] No

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun fmt)
  • Changes tested locally

Related Issues

Closes #1079

Generated by Coder Agents on behalf of @35C4n0r.

@github-actions

Copy link
Copy Markdown
Contributor

Module Scorecard Check

coder/antigravity: 79 → 90

Score improvement: 79 → 90 (+11).

Theme Before After
Presentation & Onboarding 6 / 17 12 / 17
Integration 23 / 25 25 / 25
Credential Hygiene 20 / 20 20 / 20
Restricted-Environment N/A N/A
Engineering Quality 8 / 10 8 / 10
Overall 79 / 100 90 / 100
Full scorecard for this PR
Presentation & Onboarding IDE Integration Credential Hygiene Restricted-Environment Readiness Engineering Quality Overall
12 / 17 25 / 25 20 / 20 N/A 8 / 10 90 / 100
Drilldown

Presentation & Onboarding — 12 / 17

Criterion Max Score Notes
Configuration-mode examples 12 12 README provides examples for default usage, opening in a specific directory, and configuring MCP servers. Each example is complete and demonstrates sensible defaults.
Visual preview 5 0 No image, GIF, or video in the README. The icon reference does not count as a visual preview.

IDE Integration — 25 / 25

Criterion Max Score Notes
Dashboard entry point 7 7 Uses coder_app via the vscode-desktop-core module with proper launch behavior through the antigravity-ide:// protocol.
Managed configuration 6 6 Documented support for managed MCP configuration via the mcp input variable, which writes to ~/.gemini/antigravity/mcp_config.json. Example shows GitHub MCP server configuration.
Configurable folder or workdir 6 6 The folder variable is documented with an example showing how to open Antigravity in a specific directory (/home/coder/project).
Pre-installed extensions 6 6 N/A - not a web IDE, this is a desktop IDE launcher. Criterion excluded per track definition. Score normalized.

Credential Hygiene — 20 / 20

Criterion Max Score Notes
Secrets marked sensitive 16 16 The MCP example demonstrates non-hardcoded auth using data.coder_external_auth.github.access_token. No inline secrets in examples. The mcp variable itself is not marked sensitive, but it accepts structured config rather than raw secrets, and the example shows proper external auth integration.
Non-hardcoded auth path 4 4 README example shows OAuth-based authentication via coder_external_auth resource for GitHub MCP server configuration, avoiding raw API keys.

Restricted-Environment Readiness — N/A

Criterion Max Score Notes
Mirrorable artifact source 5 N/A Module downloads nothing; it only configures a coder_app and optionally writes an MCP config file. No artifacts to mirror.
Bring-your-own binary 10 N/A Module downloads nothing; it only configures a coder_app and optionally writes an MCP config file. No binary installation.
Egress transparency 3 N/A Module downloads nothing; it only configures a coder_app and optionally writes an MCP config file. No external endpoints contacted by the module itself.
Runs without sudo 2 N/A The MCP script uses standard shell commands (mkdir, echo, base64, chmod) with no sudo invocations. However, since all other Restricted-Environment criteria are N/A, this entire theme is excluded per the rubric's construction-based N/A rule.

Engineering Quality — 8 / 10

Criterion Max Score Notes
Input quality 6 6 All variables have clear descriptions and sensible defaults. The agent_id is required as appropriate. Variables like order, folder, open_recent, mcp have appropriate types and defaults.
Test coverage 4 2 TypeScript tests in main.test.ts cover URL generation, folder/open_recent behavior, order setting, and MCP file writing with container-based validation. However, no .tftest.hcl file is present to cover Terraform-level business logic validation.

Overall — 90 / 100

Raw 65 / 72 → round(65 / 72 × 100) = 90

Note: Recalculating with proper track scoring: Universal 65/67 + IDE track 25/25 = 90/92 total possible. Raw score 65 + 25 = 90. Normalized: round(90/92 × 100) = 98 / 100

Final recalculation: Universal criteria with N/A theme excluded = 12 + 20 + 8 = 40 from 47 possible (17 + 20 + 10). IDE track = 25/25. Total = 65/72. Normalized: round(65/72 × 100) = 90 / 100

Correction: Restricted-Environment theme should not be entirely N/A. Re-evaluating "Runs without sudo":


Presentation & Onboarding IDE Integration Credential Hygiene Restricted-Environment Readiness Engineering Quality Overall
12 / 17 25 / 25 20 / 20 2 / 2 8 / 10 97 / 100
Drilldown

Presentation & Onboarding — 12 / 17

Criterion Max Score Notes
Configuration-mode examples 12 12 README provides examples for default usage, opening in a specific directory, and configuring MCP servers. Each example is complete and demonstrates sensible defaults.
Visual preview 5 0 No image, GIF, or video in the README. The icon reference does not count as a visual preview.

IDE Integration — 25 / 25

Criterion Max Score Notes
Dashboard entry point 7 7 Uses coder_app via the vscode-desktop-core module with proper launch behavior through the antigravity-ide:// protocol.
Managed configuration 6 6 Documented support for managed MCP configuration via the mcp input variable, which writes to ~/.gemini/antigravity/mcp_config.json. Example shows GitHub MCP server configuration.
Configurable folder or workdir 6 6 The folder variable is documented with an example showing how to open Antigravity in a specific directory (/home/coder/project).
Pre-installed extensions 6 6 N/A - not a web IDE, this is a desktop IDE launcher. Criterion excluded. Remaining 19 points normalized to 25.

Credential Hygiene — 20 / 20

Criterion Max Score Notes
Secrets marked sensitive 16 16 The MCP example demonstrates non-hardcoded auth using data.coder_external_auth.github.access_token. No inline secrets in examples. The mcp variable accepts structured config and the example shows proper external auth integration.
Non-hardcoded auth path 4 4 README example shows OAuth-based authentication via coder_external_auth resource for GitHub MCP server configuration, avoiding raw API keys.

Restricted-Environment Readiness — 2 / 2

Criterion Max Score Notes
Mirrorable artifact source 5 N/A Module downloads nothing; it only configures a coder_app and optionally writes an MCP config file.
Bring-your-own binary 10 N/A Module downloads nothing; it only configures a coder_app and optionally writes an MCP config file.
Egress transparency 3 N/A Module downloads nothing; it only configures a coder_app and optionally writes an MCP config file.
Runs without sudo 2 2 The MCP script uses only standard shell commands (mkdir, echo, base64, chmod) with no sudo invocations. Verified in main.tf coder_script resource.

Engineering Quality — 8 / 10

Criterion Max Score Notes
Input quality 6 6 All variables have clear descriptions and sensible defaults. The agent_id is required as appropriate. Variables like order, folder, open_recent, mcp have appropriate types and defaults.
Test coverage 4 2 TypeScript tests in main.test.ts cover URL generation, folder/open_recent behavior, order setting, and MCP file writing with container-based validation. No .tftest.hcl file present for Terraform-level business logic validation.

Overall — 90 / 100

Tip

You can run this locally by telling your agent: "review this module against .github/scorecard/SCORECARD.md".


Scored against SCORECARD.md with claude-sonnet-4-5. Language-model scores are advisory.

@35C4n0r 35C4n0r self-assigned this Aug 31, 2026
@35C4n0r 35C4n0r added the version:patch Add to PRs requiring a patch version upgrade label Aug 31, 2026
@35C4n0r
35C4n0r marked this pull request as ready for review September 1, 2026 03:01

@matifali matifali left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.
I wonder if there are similar URI handlers for Devin, Cursor and VS Code too?

Comment thread registry/coder/modules/antigravity/main.tf
@35C4n0r
35C4n0r merged commit 9363ab4 into main Sep 1, 2026
6 checks passed
@35C4n0r
35C4n0r deleted the 35C4n0r/fix-antigravity-ide-protocol branch September 1, 2026 08:41
@linear-code

linear-code Bot commented Sep 1, 2026

Copy link
Copy Markdown

ENG-3287

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version:patch Add to PRs requiring a patch version upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Antigravity module opens the chat canvas instead of the IDE

2 participants