Skip to content

The agent engineering platform.

chore(infra): synchronize `AGENTS.md` & `CLAUDE.md` (#34965)

Mason Daugherty4794f38d377c
diff --git a/.github/workflows/check_agents_sync.yml b/.github/workflows/check_agents_sync.yml
new file mode 100644
index 0000000000..52403e8a47
--- /dev/null
+++ b/.github/workflows/check_agents_sync.yml
@@ -0,0 +1,42 @@
+# Ensures CLAUDE.md and AGENTS.md stay synchronized.
+#
+# These files contain the same development guidelines but are named differently
+# for compatibility with different AI coding assistants (Claude Code uses CLAUDE.md,
+# other tools may use AGENTS.md).
+
+name: "πŸ”„ Check CLAUDE.md / AGENTS.md Sync"
+
+on:
+ push:
+ branches: [master]
+ paths:
+ - "CLAUDE.md"
+ - "AGENTS.md"
+ pull_request:
+ paths:
+ - "CLAUDE.md"
+ - "AGENTS.md"
+
+permissions:
+ contents: read
+
+jobs:
+ check-sync:
+ name: "verify files are identical"
+ runs-on: ubuntu-latest
+ steps:
+ - name: "πŸ“‹ Checkout Code"
+ uses: actions/checkout@v6
+
+ - name: "πŸ” Check CLAUDE.md and AGENTS.md are in sync"
+ run: |
+ if ! diff -q CLAUDE.md AGENTS.md > /dev/null 2>&1; then
+ echo "❌ CLAUDE.md and AGENTS.md are out of sync!"
+ echo ""
+ echo "These files must contain identical content."
+ echo "Differences:"
+ echo ""
+ diff --color=always CLAUDE.md AGENTS.md || true
+ exit 1
+ fi
+ echo "βœ… CLAUDE.md and AGENTS.md are in sync"
diff --git a/AGENTS.md b/AGENTS.md
index 334e31692d..3995040222 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -44,6 +44,16 @@ This monorepo uses `uv` for dependency management. Local development uses editab
Each package in `libs/` has its own `pyproject.toml` and `uv.lock`.
+Before running your tests, setup all packages by running:
+
+```bash
+# For all groups
+uv sync --all-groups
+
+# or, to install a specific group only:
+uv sync --group test
+```
+
```bash
# Run unit tests (no network)
make test
@@ -118,7 +128,7 @@ def filter_unknown_users(users: list[str], known_users: set[str]) -> list[str]:
known_users: Set of known/valid user identifiers.
Returns:
- List of users that are not in the known_users set.
+ List of users that are not in the `known_users` set.
"""
```
diff --git a/CLAUDE.md b/CLAUDE.md
index 6f29467071..3995040222 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -43,7 +43,9 @@ langchain/
This monorepo uses `uv` for dependency management. Local development uses editable installs: `[tool.uv.sources]`
Each package in `libs/` has its own `pyproject.toml` and `uv.lock`.
-Before running your tests, setup all packages by
+
+Before running your tests, setup all packages by running:
+
```bash
# For all groups
uv sync --all-groups
@@ -126,7 +128,7 @@ def filter_unknown_users(users: list[str], known_users: set[str]) -> list[str]:
known_users: Set of known/valid user identifiers.
Returns:
- List of users that are not in the known_users set.
+ List of users that are not in the `known_users` set.
"""
```