Skip to content

feat(docs): Add AGENTS.md symlink for agents.md compatibility#832

Merged
yamadashy merged 1 commit intomainfrom
chore/agents-md
Sep 12, 2025
Merged

feat(docs): Add AGENTS.md symlink for agents.md compatibility#832
yamadashy merged 1 commit intomainfrom
chore/agents-md

Conversation

@yamadashy
Copy link
Owner

Add AGENTS.md as a symlink to support the agents.md format specification.

Summary

  • Created AGENTS.md as a symlink to .agents/rules/base.md
  • Enables compatibility with the agents.md standard used by 20k+ open-source projects
  • Allows AI coding tools to automatically discover project-specific instructions
  • Maintains synchronization with existing CLAUDE.md setup

Benefits

  • Support for multiple AI coding agent formats (Cursor, GitHub Copilot, Gemini CLI, etc.)
  • No duplication - both files reference the same source
  • Follows the open agents.md format for predictable agent guidance

Checklist

  • Run npm run test
  • Run npm run lint

Created AGENTS.md as a symlink to .agents/rules/base.md to support
the agents.md format specification. This allows AI coding tools
that follow the agents.md standard to automatically discover
project-specific instructions and guidelines, complementing the
existing CLAUDE.md setup.

The symlink approach ensures both files stay synchronized while
supporting multiple AI coding agent formats.
Copilot AI review requested due to automatic review settings September 12, 2025 13:35
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 12, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Adds a single documentation reference in AGENTS.md pointing to .agents/rules/base.md. No code or API changes.

Changes

Cohort / File(s) Summary
Docs update
AGENTS.md
Adds a line referencing .agents/rules/base.md to the agent documentation index/reference.

Sequence Diagram(s)

(omitted)

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0f8362c and d020d0d.

📒 Files selected for processing (1)
  • AGENTS.md (1 hunks)
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/agents-md

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

Copilot AI left a comment

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 an AGENTS.md symlink to enable compatibility with the agents.md format specification used by AI coding tools. The symlink points to the existing .agents/rules/base.md file to maintain consistency with the current project structure while supporting the standardized agents.md format.

  • Creates AGENTS.md as a symlink to .agents/rules/base.md
  • Enables automatic discovery of project-specific instructions by AI coding tools
  • Maintains synchronization with existing agent configuration without duplication

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @yamadashy, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new symbolic link, AGENTS.md, which references the existing .agents/rules/base.md file. The primary purpose of this addition is to enhance the project's compatibility with the agents.md standard, thereby enabling a broader range of AI coding tools to seamlessly integrate and access project-specific guidelines. This approach avoids content duplication while standardizing how AI agents interact with the codebase.

Highlights

  • New Symlink Added: A new file named AGENTS.md has been created as a symbolic link.
  • Standard Compatibility: This symlink points to .agents/rules/base.md, ensuring compatibility with the widely adopted agents.md specification used by over 20,000 open-source projects.
  • Enhanced AI Tooling Support: The change allows various AI coding tools (e.g., Cursor, GitHub Copilot, Gemini CLI) to automatically discover and utilize project-specific instructions, aligning with an open standard for predictable agent guidance.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@yamadashy yamadashy merged commit a27bf97 into main Sep 12, 2025
41 of 43 checks passed
@yamadashy yamadashy deleted the chore/agents-md branch September 12, 2025 13:35
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces AGENTS.md as a symbolic link to .agents/rules/base.md to support the agents.md standard. While this is a good approach for Unix-like systems, I have a concern about its compatibility with Windows, as Git's handling of symlinks on that platform can be inconsistent without specific user configuration. I've left a comment with more details and suggestions.

@@ -0,0 +1 @@
.agents/rules/base.md No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

This change introduces a symbolic link for AGENTS.md. While this is a clean solution for Unix-based systems, it can lead to issues on Windows where Git's support for symlinks is not enabled by default. Without core.symlinks=true, Git will create a text file containing the path .agents/rules/base.md instead of a functional symlink. This would break the feature for many Windows users.

Given that the project supports Windows, you might consider an alternative approach to ensure cross-platform compatibility. For example, you could use a script to copy the content during a build step to keep the files synchronized.

If you choose to proceed with the symlink, I recommend adding a note to the CONTRIBUTING.md or README.md about the required Git configuration for Windows developers.

@codecov
Copy link

codecov bot commented Sep 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.36%. Comparing base (0f8362c) to head (d020d0d).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #832   +/-   ##
=======================================
  Coverage   87.36%   87.36%           
=======================================
  Files         113      113           
  Lines        6626     6626           
  Branches     1372     1372           
=======================================
  Hits         5789     5789           
  Misses        837      837           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants