-
Notifications
You must be signed in to change notification settings - Fork 43
Feature Request: Add Google Antigravity Support to Project CodeGuard - #71 #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -54,7 +54,7 @@ Get started in minutes: | |||||||||
| ## How It Works | ||||||||||
|
|
||||||||||
| 1. **Security rules** are written in unified markdown format (`sources/` directory) | ||||||||||
| 2. **Conversion tools** translate rules to IDE-specific formats (Cursor, Windsurf, Copilot, Claude Code) | ||||||||||
| 2. **Conversion tools** translate rules to IDE-specific formats (Cursor, Windsurf, Copilot, Claude Code,antigravity) | ||||||||||
|
||||||||||
| 2. **Conversion tools** translate rules to IDE-specific formats (Cursor, Windsurf, Copilot, Claude Code,antigravity) | |
| 2. **Conversion tools** translate rules to IDE-specific formats (Cursor, Windsurf, Copilot, Claude Code, AntiGravity) |
Copilot
AI
Dec 10, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space after comma. The list should be formatted as: (Cursor, Windsurf, Copilot, Claude Code, antigravity) with a space after "Claude Code,".
| 2. **Conversion tools** translate rules to IDE-specific formats (Cursor, Windsurf, Copilot, Claude Code,antigravity) | |
| 2. **Conversion tools** translate rules to IDE-specific formats (Cursor, Windsurf, Copilot, Claude Code, antigravity) |
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,66 @@ | ||||||||||||||
| # Copyright 2025 Cisco Systems, Inc. and its affiliates | ||||||||||||||
| # | ||||||||||||||
| # SPDX-License-Identifier: Apache-2.0 | ||||||||||||||
|
|
||||||||||||||
| """ | ||||||||||||||
| Antigravity Format Implementation | ||||||||||||||
| Generates .md rule files for Google Antigravity with YAML frontmatter. | ||||||||||||||
| """ | ||||||||||||||
|
|
||||||||||||||
| from formats.base import BaseFormat, ProcessedRule | ||||||||||||||
|
|
||||||||||||||
|
|
||||||||||||||
| class AntigravityFormat(BaseFormat): | ||||||||||||||
| """ | ||||||||||||||
| Google Antigravity format implementation (.md rule files). | ||||||||||||||
|
||||||||||||||
| Antigravity uses .md files with YAML frontmatter containing: | ||||||||||||||
| - description: Rule description (required by Antigravity spec) | ||||||||||||||
|
||||||||||||||
| - tags: Optional list of tags for categorization (if present) |
Copilot
AI
Dec 10, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation inconsistency: The comments mention "Workflows are stored in .agent/workflows/" but the actual implementation uses .agent/rules (line 35). These comments should be updated to match the implementation and use "rules" instead of "workflows".
santosomar marked this conversation as resolved.
Show resolved
Hide resolved
Copilot
AI
Nov 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing version field in the YAML frontmatter. All other IDE format implementations (CursorFormat, WindsurfFormat, CopilotFormat, ClaudeCodeFormat) include a version field using self.version. Consider adding yaml_lines.append(f"version: {self.version}") for consistency, unless Antigravity specifically doesn't support version metadata.
Copilot
AI
Nov 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment says "tags for categorization (if Antigravity supports it)" which suggests uncertainty about the feature support. Either verify that Antigravity supports tags and remove the conditional comment, or remove the tags implementation if support is unverified. Compare with other format implementations like ClaudeCodeFormat which don't include tags.
| # Optional: Add tags for categorization (if Antigravity supports it) | |
| if rule.tags: | |
| yaml_lines.append("tags:") | |
| for tag in rule.tags: | |
| yaml_lines.append(f"- {tag}") | |
| # (No tags: Antigravity does not support tags in frontmatter) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing comma in the list. The list should be "Cursor, Windsurf, Copilot, Claude Code, Antigravity" with a space after the comma before "antigravity". Additionally, "antigravity" should be capitalized to match the naming of other IDEs in the list.