Repository navigation
Remove the @claude mention workflow (claude.yml) #5337
Description
Problem
.github/workflows/claude.yml (the @claude mention workflow) runs on every issue comment, PR review and review comment in this public repository. Almost every run does nothing: its if: skips any comment that does not mention @claude from an OWNER/MEMBER/COLLABORATOR. That includes bot comments such as changeset-bot's "No Changeset found", for example run 40748827520 on #5336 during the v2.2.0 release. The skipped runs clutter the Actions tab and the PR checks, and they read as stalled work during a release. The maintainers don't use the workflow, and it is one of the jobs that holds ANTHROPIC_API_KEY, so removing it also removes credential surface.
Change
Delete the workflow and everything that exists only because of it:
.github/workflows/claude.ymlscripts/claude-workflow.test.mjs, which evaluates its trusted-author condition per eventscripts/verify-action-pins.mjs: the header comments that nameclaude.ymlas a credentialed job (check whether any code path special-cases it)AGENTS.md:- the tree entry (
claude.yml (@claude mentions)) - Credentialed workflow jobs: drop
claude.ymlfrom the list of credential-holding jobs. The "A credentialed job that a comment, review or issue can start runs only for a trusted author" bullet then describes no machinery, so drop it, or reword it as a rule for any future such job (under "every rule in this file is true of the repository as it stands", dropping it is likely right).
- the tree entry (
.github/workflows/sdk-watch.yml:34: the comment saysANTHROPIC_API_KEYis "the organization secretclaude.ymlalready uses". Reword it. The secret stays, sincesdk-watch'sanalyzeandpostjobs still use it.docs/agent-guidance-inception.mdis a historical design record; leave its mentions alone, or add a note that the workflow was later removed.
Scheduled and event workflows run from main, so the runs stop at the next milestone merge, not when the PR merges to v2/main.
Done when
- No workflow listens for
issue_comment,pull_request_revieworpull_request_review_commentonly to run Claude. git grep claude.ymlhits only historical docs.npm run local:gatepasses (the script tests andverify:action-pinsno longer expect the file).
Activity
claude commentedon Oct 28, 2026
Claude encountered an error after 0s —— View job
I'll analyze this and get back to you.