Skip to content

Rename embedded AGENT.md database doc to AGENTS.md#11275

Open
kevglynn wants to merge 1 commit into
dolthub:mainfrom
kevglynn:fix/rename-agent-md-11138
Open

Rename embedded AGENT.md database doc to AGENTS.md#11275
kevglynn wants to merge 1 commit into
dolthub:mainfrom
kevglynn:fix/rename-agent-md-11138

Conversation

@kevglynn

@kevglynn kevglynn commented Jul 8, 2026

Copy link
Copy Markdown

Summary

  • Renames the auto-created dolt_docs entry from AGENT.md to AGENTS.md to follow the emerging agents-file convention
  • Existing databases with a legacy AGENT.md row are handled: the auto-add logic treats the old name as "found" so no duplicate AGENTS.md row gets inserted beside it

Changes

  • go/libraries/doltcore/doltdb/AGENT.mdAGENTS.md — renamed embedded file, updated title line
  • go/libraries/doltcore/doltdb/system_table.go — updated //go:embed directive and AgentDoc constant to "AGENTS.md"
  • go/libraries/doltcore/sqle/dtables/docs_table.go — back-compat: auto-add check now accepts either AGENTS.md or legacy AGENT.md as "found"
  • integration-tests/bats/init.bats — updated 2 test cases
  • integration-tests/bats/docs.bats — updated 9 test cases
  • integration-tests/mysql-client-tests/node/workbenchTests/docs.js — updated hardcoded doc name

The enginetest/dolt_queries.go test uses doltdb.AgentDoc constant so it updates automatically.

Test plan

  • go vet on all changed packages — clean
  • All changed packages compile
  • CI: BATS init and docs suites
  • CI: Node workbench tests

Note on back-compat: The auto-add logic in docs_table.go checks for either name so that existing databases with a legacy AGENT.md row don't get a duplicate AGENTS.md auto-inserted. Legacy rows are not migrated — this seemed like the least-surprise approach. Happy to adjust if you'd prefer migration or a different strategy.

Closes #11138

Made with Cursor

AGENTS.md is the emerging convention for agent-facing documentation.
Rename the embedded database doc that `dolt init` auto-creates in
every new database's `dolt_docs` table.

Back-compat: the auto-add logic in docs_table.go now treats a legacy
AGENT.md row as "found" so existing databases don't get a duplicate
AGENTS.md auto-inserted beside their existing AGENT.md row.

Closes dolthub#11138

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AGENT.md should be named AGENTS.md

2 participants