I found out from ccusage's docs that Claude Code can store its config and sessions in multiple directories depending on the version.
It's an utter mess though, the change was shipped and unshipped.
There are lots if issues in their Github, this one has a bit more convo / info.
Ultimately, we might also need to support XDG: anthropics/claude-code#2350
This PR is a good starting point for implementation.