Skip to content

Feature Request: Add Google Antigravity Support to Project CodeGuard - #71 - #74

Merged
thomas-bartlett merged 9 commits into
project-codeguard:mainfrom
Parveen-Birthaliya:antigravity-feature
Jan 6, 2026
Merged

Feature Request: Add Google Antigravity Support to Project CodeGuard - #71#74
thomas-bartlett merged 9 commits into
project-codeguard:mainfrom
Parveen-Birthaliya:antigravity-feature

Conversation

@Parveen-Birthaliya

Copy link
Copy Markdown
Contributor

Summary

Add native support for Google Antigravity workflows, enabling CodeGuard security rules to be triggered on-demand in the Antigravity IDE using /codeguard-* commands.

  • Followed Same structure as other IDEs
  • Maintain consistency with existing IDE integrations

Architecture

Following the established BaseFormat pattern used by Cursor, Windsurf, and other IDE integrations:

classAntigravityFormat(BaseFormat):
-Outputdirectory: `.agent/rules/`-Fileextension: `.md`-Frontmatter: description+tags (minimal, perAntigravityspec)

Files to Create

  1. src/formats/antigravity.py - AntigravityFormat class

Files to Modify

  1. src/formats/__init__.py - Register AntigravityFormat
  2. src/convert_to_ide_formats.py - Add to conversion pipeline
  3. README.md - Update supported IDEs list
  4. docs/getting-started.md - Updated supported IDEs list ,Add documentation link

Test

  • Unit tests for AntigravityFormat class
  • Integration tests for rule conversion
  • Manual validation in Antigravity IDE

Below is the Secreen shot from atigravity IDE that shows proper working of rules :

image

CopilotAI 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.

Pull request overview

This PR adds support for Google Antigravity IDE integration by implementing a new format converter that generates .md rule files compatible with Antigravity's workflow system.

Key changes:

  • New AntigravityFormat class following the established BaseFormat pattern used by other IDE integrations
  • Integration into the conversion pipeline alongside Cursor, Windsurf, Copilot, and Claude Code formats
  • Documentation updates in README and getting-started guide to include Antigravity in the list of supported IDEs

Reviewed changes

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

Show a summary per file
FileDescription
src/formats/antigravity.pyNew format implementation for Antigravity IDE that generates .md files with YAML frontmatter containing description and optional tags
src/formats/init.pyRegisters AntigravityFormat in the formats package exports
src/convert_to_ide_formats.pyAdds AntigravityFormat to the list of formats generated during rule conversion
docs/getting-started.mdAdds Antigravity to the prerequisites section and installation instructions with documentation link
README.mdUpdates the list of supported IDE formats to include Antigravity

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

Comment threadsrc/formats/antigravity.py Outdated
Comment threadsrc/formats/antigravity.py Outdated
Comment threadREADME.md Outdated
Comment threadsrc/formats/antigravity.py Outdated
Comment threadsrc/formats/antigravity.py Outdated
Comment threadsrc/formats/antigravity.py Outdated
Comment threadsrc/formats/antigravity.py
Comment threadsrc/formats/antigravity.py Outdated
Comment threadREADME.md Outdated
Comment threaddocs/getting-started.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
CopilotAI review requested due to automatic review settings December 10, 2025 03:22
This is true. We should be talking about `rule `files not `workflow` files here...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

CopilotAI 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.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.


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

Comment threadsrc/formats/antigravity.py Outdated
Comment threadsrc/formats/antigravity.py Outdated
Comment threadREADME.md Outdated

@thomas-bartlettthomas-bartlett left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for adding Antigravity support! The implementation looks good but needs a few fixes:

Main Issue - Missing Frontmatter: The antigravity.py implementation doesn't generate the required trigger and globs fields needed for proper activation. Currently it only outputs description and tags (tags aren't needed: they're just for CLI filtering, not rule output).

What's needed: Like Windsurf's implementation, it should generate:

  • trigger: always_on (for rules with always_apply: true)
  • trigger: glob + globs: [patterns] (for language-specific rules)
  • version field (for consistency)

Also: The PR description mentions /codeguard-* commands, but those are for Workflows, not Rules. Rules use activation types instead: Always On and Glob are the important ones for CodeGuard.

Quick Fixes:

  • Update generate() method to add trigger, globs, and version fields (see windsurf.py for reference)
  • Remove tags from output (not needed in rule files)
  • Update comments to explain Rules activation (not slash commands)
  • Fix doc link to https://antigravity.google/docs/rules-workflows
  • Standardize: "Antigravity" + add space: "Claude Code, Antigravity)"

Happy to help if you have questions!

Updated Antigravity format implementation to include trigger types, glob patterns, and version in YAML frontmatter.
@Parveen-Birthaliya

Parveen-Birthaliya commented Jan 2, 2026

Copy link
Copy Markdown
ContributorAuthor

@thomas-bartlett can you check now , if there is more need to change in the features code

Comment threaddocs/getting-started.md Outdated
@thomas-bartlett

Copy link
Copy Markdown
Collaborator

@thomas-bartlett can you check now , if there is more need to change in the features code

Thanks for the updates! The implementation is working correctly.

A few items to address:

Text fixes:

  • README.md line 57: Claude Code,antigravityClaude Code, Antigravity (add space, capitalize)
  • docs/getting-started.md lines 34, 35, 37: AntiGravityAntigravity (lowercase 'g')

Other:

  • Please resolve the Copilot review comments

The CI workflow updates (validate + release zips) can be done in a follow-up PR.

CopilotAI review requested due to automatic review settings January 6, 2026 03:22

CopilotAI 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.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.


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

Comment threadsrc/formats/antigravity.py
Comment threaddocs/getting-started.md Outdated
Comment threadsrc/formats/antigravity.py
Updated link to Google Antigravity instructions.
Updated documentation to remove 'Google' from Antigravity references.
CopilotAI review requested due to automatic review settings January 6, 2026 03:48

CopilotAI 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.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.


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

Comment threadsrc/convert_to_ide_formats.py
Comment threadsrc/formats/__init__.py
@Parveen-Birthaliya

Copy link
Copy Markdown
ContributorAuthor

@thomas-bartlett can you check now ,I have resolved all issues of copilot

@thomas-bartlettthomas-bartlett left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you for your work!

@thomas-bartlett
thomas-bartlett merged commit 0df56ae into project-codeguard:mainJan 6, 2026
1 check passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancementNew feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@Parveen-Birthaliya@thomas-bartlett@santosomar