We have a hook that runs on session start and session end that sends data to a lambda with a hard coded JWT token that we ship in the code
We added that to the managed settings for our Claude instance as a “base” plugin and provision it to all machines using JAMF
A non-enterprises version of that would be to add this hook in your main repository’s .claude folder