You can tell Claude Code to detect and watch its usage. Have it refuse to work at 90-95%.
I just recently tried this exact thing with GPT in Codex for my Plus plan. It said it would keep an eye on usage and note down checkpoints, but it totally forgot to.
I modded my status line to show my remaining 5-hour and weekly limits, and when they reset. It's all available in the request data that comes back with every message.
I don't use Claude chat, but this is a great way to ensure my usage doesn't disappear on me.