You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by IntegralMedia01 June 7, 2025
please add ability to keep track of those 5 hours sessions. how many sessions already used for the month.
Reacted by George Liu (eva2000), Brotaku, Davey Barker, Ming, martin-buur, Felix Lapalme, Zafer Arslan, Ville Säävuori, Trinkes and Alberto Leal
Thank you everyone.
Actually this feature is once closed by #55 , so I need to figure out which one is better.
I'll review both of them and decide one of your works.
Thank you for your contributions! Happy vibe coding!
My apologies for the duplicate PR. After reviewing the technical specifications more carefully, I realize that PR #80's approach with dynamic 5-hour windows starting from first message is the correct implementation of Claude's session tracking.
My PR #84 incorrectly uses fixed UTC time windows, which doesn't match how Claude actually counts sessions. @a-c-m's implementation properly follows the rolling 5-hour window specification.
I'll close my PR since #80 has the correct approach. Great work @a-c-m!
Activity
a-c-m commentedon Jun 16, 2025
I'm interested in this.
Would like to be able to see:
If a session is active, it should also predict, total session usage (i.e. will you hit the limit) for that session, by simple extrapolation is fine.
feat: add 5-hour blocks report command
fix: address PR review feedback
feat: implement 5-hour session window tracking (ccusage#23)
ryoppippi commentedon Jun 16, 2025
Thank you everyone.
Actually this feature is once closed by #55 , so I need to figure out which one is better.
I'll review both of them and decide one of your works.
Thank you for your contributions! Happy vibe coding!
Kaniikura commentedon Jun 16, 2025
Hi @ryoppippi and @a-c-m,
My apologies for the duplicate PR. After reviewing the technical specifications more carefully, I realize that PR #80's approach with dynamic 5-hour windows starting from first message is the correct implementation of Claude's session tracking.
My PR #84 incorrectly uses fixed UTC time windows, which doesn't match how Claude actually counts sessions. @a-c-m's implementation properly follows the rolling 5-hour window specification.
I'll close my PR since #80 has the correct approach. Great work @a-c-m!
Thanks for your patience with the confusion.
ryoppippi commentedon Jun 16, 2025
Thank you for analysing! I haven't checked it yet tho
Thank you for taking time to work on it
Kaniikura commentedon Jun 16, 2025
📋 Technical Reference: Claude Session Tracking Specification
For anyone implementing session tracking, here are the key technical points from my research:
Session Definition:
Critical Implementation Challenges:
Accurate Implementation Requirements:
Note: This is my interpretation of available docs - could be wrong! For accurate specs, you'd need to contact Anthropic support directly.
Any CLI implementation should clearly state limitations and encourage users to verify actual usage via claude.ai/settings.
rockmandash commentedon Jun 17, 2025
vibemeter.ai seems has this feature, but I don't know it's implementation.
feat: add 5-hour blocks report command
fix: address PR review feedback