← Reddit

I put my Claude Code sessions on a calendar and now I can see exactly when my 5h windows reset so I stopped staying up for them

Reddit · marblecereal · July 13, 2026
A developer built AgentCal, a local calendar application, after recognizing the unhealthy practice of staying up late to maximize Claude Code rate limit windows following a post about health impacts. The tool visualizes five-hour session windows with exact reset times, parallel sessions, and weekly usage caps per model on a week view interface. AgentCal provides a local API with events and webhooks that enable custom automation such as queued prompts at reset times or notifications when limits approach.

Detailed Analysis

A developer has built AgentCal, a local calendar application designed to visualize Claude Code usage patterns, directly addressing a pain point that has emerged as Claude Code has become a fixture in many programmers' daily workflows: the opacity of Anthropic's rate-limiting system. The tool renders each coding session as a calendar block on a week view, with parallel sessions displayed side by side like overlapping meetings. It shades the current five-hour usage window and marks the exact reset time with a dashed line and live countdown, while also surfacing weekly caps and per-model limits that the creator says are present in Claude's API responses but never exposed in the standard interface. The anecdote that reportedly motivated the project—someone ending up hospitalized from sleep deprivation tied to chasing rate-limit windows—underscores how intensely some power users have structured their schedules around Anthropic's usage mechanics.

The underlying issue AgentCal targets is a genuine friction point in how Claude Code is metered. Anthropic uses rolling five-hour windows alongside weekly caps for different model tiers, but the native tooling (accessible via commands like /usage) offers limited visibility into exactly when windows reset or how close a user is to hitting a weekly ceiling. This has pushed some developers into manual tracking, staying awake for resets, or discovering—as the tool's creator did—that they were already at 79% of a weekly limit for a specific model without warning. For professional and heavy-use developers who treat Claude Code as a primary coding partner, this kind of usage anxiety can meaningfully disrupt sleep, scheduling, and productivity, turning what should be a coding tool into a source of chronic vigilance.

AgentCal's roadmap suggests an ambition beyond passive visualization. The developer plans to let users queue prompts or commands to automatically fire the moment a rate-limit window resets, so that a session beginning at, say, 6:40am can complete work while the user sleeps rather than wasting the window's opening hours. This positions the tool less as a dashboard and more as an orchestration layer for autonomous or semi-autonomous coding agents—an increasingly common pattern as developers try to keep AI agents productive around the clock rather than only during active human supervision. The tool also exposes a local API with REST, SSE, and webhook support, emitting events like session-started, session-idle, and reset-upcoming, which invites the broader hacker community to build custom automations: Slack alerts, scripts that block late-night sessions, or triggers that instantly launch prompts the second a limit clears.

This development reflects a broader trend in the AI coding assistant ecosystem: as tools like Claude Code become deeply embedded in developers' workflows, a secondary ecosystem of community-built tooling is emerging to fill gaps left by the primary vendor—usage transparency, scheduling, multi-account management, and automation glue. It also highlights a recurring tension in usage-based AI products: providers meter access to manage compute costs and fairness, but insufficient transparency around those limits pushes users toward workarounds, unofficial dashboards, and behavior that can border on unhealthy (as the hospitalization anecdote illustrates). Anthropic has occasionally faced criticism for adjusting rate limits with limited communication, and independent tools like AgentCal serve as both a workaround and an implicit signal to Anthropic that its own usage-reporting features may need to become more granular and proactive, particularly as coding agents shift toward longer-running, semi-autonomous operation rather than short interactive sessions.

Article image Read original article →