# AGENTS.md How AI coding agents should operate in this repository. > **Important migration note (Turborepo):** > Nx orchestration has been removed from this repository. Prefer Turbo + package scripts for all build/test/lint workflows. ## Scope and Precedence - Scope: this file applies to the full repository root. - Precedence: a deeper `AGENTS.md` overrides this file for its subtree. - This is an agent-operations document, not a contributor tutorial. ## Source of Truth (in priority order) 1. GitHub Actions workflows in `.github/workflows/*.yml` and `.github/workflows/*.yaml` 2. Local CI parity runner in `tools/scripts/ci-local.mjs` 3. Root scripts in `package.json` as wrappers/convenience entrypoints If prose docs conflict with workflows (for example `README.md` or `CONTRIBUTING.md`), follow the workflow commands. ## Environment Parity - Node.js: `24` (from `.nvmrc` and workflow setup) - pnpm: `10.28.0` (from `package.json` `packageManager`) - Package manager: pnpm only Recommended setup for agents: ```bash corepack enable pnpm install --frozen-lockfile ``` Worktree safety rule: - In git worktree contexts, prefer running Turbo/package scripts directly (`pnpm exec turbo ...` / `pnpm --filter ... run ...`). ### Worktree Mode (Required in Worktrees) Use these rules whenever the checkout is a git worktree (typically `git rev-parse --git-dir` differs from `git rev-parse --git-common-dir`): 1. Setup/install via: ```bash corepack enable pnpm install --frozen-lockfile ``` 2. Run workspace tasks via Turbo/package scripts: ```bash pnpm exec turbo run pnpm --filter run