>Recently at work I've been using it to analyse the Claude code sessions of every engineer at our company (that we upload to S3) and it's been extremely helpful to help us find gaps in devex and have clear metrics to back up the impact of fixing them
Nice! How do you set things up so that your engineers's claude code sessions upload to S3? Thanks for the help in advance
Probably on a business / Enterprise plan, which has managed settings and also telemetry export. Give it a collector endpoint to export to and then have collector send to s3.
If you use OpenCode, the sessions are all in a local sqlite database. After lunch I'm pushing one of my agents to crunch some data from that using duckdb...
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