Add symlink rules for .cursor/rules - #6529
Open
Sankalp-Mittal wants to merge 4 commits into
Open
Conversation
Contributor
Waiting for approvalBased on git history, these people are best suited to review:
Eligible reviewers: Suggestions based on git history. See OWNERS for ownership rules. |
Sankalp-Mittal
enabled auto-merge
September 4, 2026 13:46
Collaborator
Integration test reportCommit: 5f5c654
Top 6 slowest tests (at least 2 minutes):
|
Rename validate_cursor_rules.py to validate_agents_setup.py and extend it to sync every agent's symlinks (Claude, Cursor, GitHub Copilot) with the canonical AGENTS.md + .agents/ setup, not just Cursor's .mdc mirrors. Drop the --fix flag (fixing is now the default) and instead exit non-zero when a symlink was missing or wrong: a created symlink is untracked, so CI's `git diff --exit-code` gate alone would let the common missing-link case pass. Co-authored-by: Isaac <no-reply@databricks.com>
The Claude and GitHub Copilot symlinks are committed, static, and directory-level (new rules appear automatically), so any drift is already caught by CI's `git diff --exit-code`. Only Cursor's per-rule .mdc mirrors need active syncing, since adding a rule creates a new untracked symlink that a plain git diff misses. Co-authored-by: Isaac <no-reply@databricks.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Add a linter that keeps every agent's config symlinks in sync with the canonical
AGENTS.md+.agents/setup (Claude, Cursor, and GitHub Copilot). It createsany missing symlinks and drops stale Cursor ones; wired into
task checks, soCI's post-checks
git diff --exit-codefails if the tree wasn't already in sync.Run it with:
Why
Help keep the AI rules for different agents in sync
Tests
Not Required