Add CLAUDE.md, AGENTS.md, .claude/, .cursor/rules and MCP config paths to CODEOWNERS and turn on the branch protection option that requires review from Code Owners. The last matching pattern wins, so order the file with care. A security owner then sees every change to what the agent is told.
Read in this order
- OfficialAbout code owners (GitHub Docs)File syntax, pattern precedence, and the require review from Code Owners rule.