potiuk opened a new pull request, #77634: URL: https://github.com/apache/airflow/pull/77634
Claude Code reads `AGENTS.md` as project instructions on its own ([docs](https://code.claude.com/docs/en/memory.md)), so the two `CLAUDE.md -> AGENTS.md` symlinks (root and `registry/`) are no longer needed. Removing them also lets the nested `AGENTS.md` files under `providers/`, `dev/`, `scripts/ci/prek/`, the UI and elsewhere load. Claude loads a subdirectory's `AGENTS.md` on demand, when it reads a file there, but only when no `CLAUDE.md` exists in the working directory or above. Checked with a root `AGENTS.md` plus `sub/AGENTS.md`, reading only `sub/notes.txt` (Claude Code CLI 2.1.332 via the Agent SDK): without a `CLAUDE.md` both files' instructions were loaded; with a root `CLAUDE.md -> AGENTS.md` symlink, `sub/AGENTS.md` was not. - `AGENTS.md` now states the minimum Claude Code version, v2.1.281. Native `AGENTS.md` reading arrived in v2.1.277, but before v2.1.281 some sessions (Amazon Bedrock, telemetry disabled) still read `CLAUDE.md` only, and the Magpie framework also requires v2.1.281. - The Claude Agent SDK behaves the same way once it bundles a new enough CLI, although its docs still mention `CLAUDE.md` only: in a directory with just an `AGENTS.md`, SDK 0.3.332 (CLI 2.1.332) loaded it, both with default `settingSources` and with `["project"]`. - The skill eval pinned SDK 0.3.185 (CLI 2.1.185), which cannot read `AGENTS.md`. It now pins 0.3.332 and reads `AGENTS.md` directly, like Claude Code users do. The skill eval, which `check-eval-hash` requires for every `AGENTS.md` change, also could not run from a sandboxed agent session: - Its promptfoo version check crashed on a denied read of `~/.promptfoo`; it now uses the same repo-local config dir as the eval run itself. - Arms were `git worktree add` checkouts, which write to the repo's read-only `.git/worktrees`. They are now `git clone --shared` checkouts in the temp dir, which write nothing to the repo's `.git`. - Sandboxes usually block the stored `/login` credentials. A new `SKILL_EVAL_CLAUDE_TOKEN_FILE` points the harness at a token from `claude setup-token`, which it passes only to the promptfoo process instead of having it exported for the whole agent session. Because that file stays readable to everything running in the sandbox, the README recommends running the eval outside the sandbox with the normal login instead, and keeps the token file only for unattended agent runs. Tested: `prek run run-skill-eval --hook-stage manual --all-files` with the final code (SDK 0.3.332, shared clones, no `CLAUDE.md` in any arm). Both arms (`main` and this branch) gave the same pass/fail on every case, and answers cite `AGENTS.md`. The same eval also ran fully inside a Claude Code sandbox (read-only `.git`, no keychain access) with `SKILL_EVAL_CLAUDE_TOKEN_FILE`: 12 cases, no provider errors, same results. The matching change for the Magpie framework defaults is https://github.com/apache/magpie/pull/2354. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes (please specify the tool below) Generated-by: Claude Code (Opus 5) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
