-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Canonical approach to supporting AI agent directions #16735
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
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
|
Thanks for feedback on this; I've been using it locally and I think this is good enough to use. Can definitely use more tweaks going forward. |
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.
Pull request overview
This PR establishes a canonical approach for providing AI coding agent guidance across the Selenium monorepo. It creates a centralized AGENTS.md file with project-wide context and language-specific AGENTS.md files in each binding directory, redirecting existing AI tool configuration files (CLAUDE.md and copilot-instructions.md) to this new structure.
Changes:
- Adds root AGENTS.md with monorepo overview, toolchain details, testing guidelines, and high-risk area identification
- Creates language-specific AGENTS.md files (Java, Python, Ruby, JavaScript, .NET, Rust) with code conventions, logging patterns, and deprecation guidelines
- Redirects CLAUDE.md and .github/copilot-instructions.md to the primary AGENTS.md
- Updates .gitignore to exclude common AI agent directories and configuration files
- Updates README.md with corrected Ruby development setup commands
Reviewed changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated 14 comments.
Show a summary per file
| File | Description |
|---|---|
| AGENTS.md | Root-level AI agent guidance covering monorepo structure, toolchain, testing, and cross-binding considerations |
| CLAUDE.md | Minimal redirect to AGENTS.md for Claude AI integration |
| .github/copilot-instructions.md | GitHub Copilot redirect to AGENTS.md |
| java/AGENTS.md | Java-specific code conventions, logging, and Grid guidance |
| py/AGENTS.md | Python-specific conventions with Google-style docstrings and type hints |
| rb/AGENTS.md | Ruby-specific guidance including RBS type signatures and YARD documentation |
| javascript/selenium-webdriver/AGENTS.md | JavaScript-specific conventions with JSDoc patterns |
| dotnet/AGENTS.md | .NET-specific guidance including async patterns and XML documentation |
| rust/AGENTS.md | Rust and Selenium Manager specific conventions |
| .gitignore | Adds AI agent tool directories, local state files, and .local/ directory exclusions |
| README.md | Corrects Ruby development commands and interpreter paths |
| .local/.gitkeep | Placeholder for agent-generated artifacts directory |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
User description
Reason for PR
💥 What does this PR do?
🔧 Implementation Notes
💡 Additional Considerations
This PR assumes the TESTING.md files created in #16734 exist
PR Type
Documentation
Description
Adds comprehensive AGENTS.md files for AI coding agent guidance
Creates language-specific agent documentation in each binding directory
Redirects CLAUDE.md and copilot-instructions.md to primary AGENTS.md
Provides standardized instructions for AI agents working in Selenium monorepo
Diagram Walkthrough
File Walkthrough
9 files
Root agent guidance for monorepo overviewRedirect to primary AGENTS.md fileGitHub Copilot instructions redirectJava bindings and Grid agent guidancePython bindings agent guidanceRuby bindings agent guidanceJavaScript bindings agent guidance.NET bindings agent guidanceRust and Selenium Manager agent guidance