Skip to content

fix(init): add always_on trigger frontmatter to antigravity rules - #2916

Closed
wesamahakem wants to merge 1 commit into
rtk-ai:developfrom
wesamahakem:fix/antigravity-rules-frontmatter
Closed

wesamahakem wants to merge 1 commit into
rtk-ai:developfrom
wesamahakem:fix/antigravity-rules-frontmatter

Conversation

@wesamahakem

Copy link
Copy Markdown

When running rtk init --agent antigravity, the tool generates a workspace rules file at .agents/rules/antigravity-rtk-rules.md. However, the generated Markdown file is missing the YAML frontmatter required by Google Antigravity to automatically register the rule. As a result, the agent does not load the rule at startup. This PR fixes it by prepending trigger: always_on frontmatter to the template file.

Copilot AI review requested due to automatic review settings July 9, 2026 10:02
@CLAassistant

CLAassistant commented Jul 9, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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

This PR fixes rtk init --agent antigravity rule auto-loading by adding the YAML frontmatter required by Google Antigravity to the Antigravity rules template so it can be registered at startup.

Changes:

  • Prepends trigger: always_on YAML frontmatter to the Antigravity rules Markdown template.
  • Adds an extra blank line after the title to keep formatting consistent after the frontmatter insertion.

@wesamahakem

Copy link
Copy Markdown
Author

Hi @tapheret2, thank you for the review!

To answer your questions:

  1. Changelog: Since the repository uses release-please to auto-generate the changelog from Conventional Commit messages, the fix(init): commit format should automatically capture this for the next patch release.
  2. User-facing behavior change: The main user-facing change is that the generated rule .agents/rules/antigravity-rtk-rules.md will now be loaded and applied automatically at startup by Google Antigravity. Previously, without the trigger: always_on frontmatter, the rule file was completely ignored by the agent.

@rtk-release-bot

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to 90 days of inactivity. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. Your contribution is very much appreciated — we're sorry we haven't been able to review it yet.

@rtk-release-bot

Copy link
Copy Markdown
Contributor

Closing this pull request after a prolonged period of inactivity. If this is still relevant, please ask for it to be reopened. Thank you!

@rtk-release-bot rtk-release-bot Bot closed this Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants