But also most malware delivery now doesn't trigger it because malware developers have gotten craftier. If you're unscrupulous, it's not a concern.
This is a Claude Code tool for developers. I'd assume that any potential user for this tool should be perfectly able to run that xattr command (and if they are not, they probably shouldn't be playing around with Claude Code either... yup, some additional "gatekeeping" from my side here).
You could probably even make some curl -sL https://github.com/myrepo/installme.sh | bash script for these users which takes care of the xattr command.
Your typical macOS enduser does not use command line tools. Or they use something like Homebrew.
Btw the proper way to distribute binary would probably be pkg installer.
And yes, you can turn all of that off.
macOS makes it easy to run software which meets some requirements by Apple.
macOS makes it possible to run other software if you (the user) know what you're doing.