Skip to content

chore(NODE-7481): add AGENTS.md for cross-tool agent guidance#4929

Open
tadjik1 wants to merge 1 commit intomainfrom
NODE-7481
Open

chore(NODE-7481): add AGENTS.md for cross-tool agent guidance#4929
tadjik1 wants to merge 1 commit intomainfrom
NODE-7481

Conversation

@tadjik1
Copy link
Copy Markdown
Member

@tadjik1 tadjik1 commented Apr 27, 2026

Description

Summary of Changes

Generic AGENTS.md file for your local agent.

Double check the following

  • Lint is passing (npm run check:lint)
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@tadjik1 tadjik1 marked this pull request as ready for review April 27, 2026 15:08
@tadjik1 tadjik1 requested a review from a team as a code owner April 27, 2026 15:08
Copilot AI review requested due to automatic review settings April 27, 2026 15:08
Copy link
Copy Markdown
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

Adds an AGENTS.md file to provide cross-tool guidance for AI coding agents working in the MongoDB Node.js driver repository.

Changes:

  • Introduces a standardized set of build/lint/test commands for agents to use.
  • Documents high-level architecture and key source/test directory layout.
  • Captures repo-specific code conventions (lint-enforced and team conventions) and commit message format.

Comment thread AGENTS.md
Comment on lines +27 to +31
Tests require a running MongoDB instance. To start one locally:

```bash
git submodule update --init
export DRIVERS_TOOLS=$(pwd)/drivers-evergreen-tools
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

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

The statement "Tests require a running MongoDB instance" is inaccurate: npm run check:unit runs the unit test suite without needing a database (integration tests do). Consider rewording this section to say that integration tests require a running MongoDB deployment, or qualify which test commands need the orchestration steps below.

Copilot uses AI. Check for mistakes.
Comment thread AGENTS.md
```bash
npm run check:unit # Unit tests (no database required)
npm run check:test # Integration tests (requires database)
npm test # Lint + unit + integration
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

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

npm test runs more than just "Lint + unit + integration" in this repo (it also triggers the check:lint chain, which includes d.ts build / API Extractor / tsd checks). Consider updating the comment to reflect what npm test actually covers, or point readers at npm run check:lint + npm run test:all explicitly.

Suggested change
npm test # Lint + unit + integration
npm test # Full verification suite: check:lint chain + unit + integration
# Equivalent explicit commands: npm run check:lint && npm run test:all

Copilot uses AI. Check for mistakes.
Comment thread AGENTS.md
Comment on lines +105 to +106
- **Formatting** — Prettier with single quotes, 2-space tabs, 100-char width, no trailing commas.

Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

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

The formatting bullet says "2-space tabs"; the repo config is tabWidth: 2, i.e., 2-space indentation. Consider rephrasing to avoid implying literal tab characters are required.

Copilot uses AI. Check for mistakes.
@tadjik1
Copy link
Copy Markdown
Member Author

tadjik1 commented Apr 27, 2026

@copilot address all your comments

@PavelSafronov PavelSafronov self-assigned this Apr 27, 2026
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.

3 participants