← Reddit

Claude Code went through my monthly spent limit, while my computer was asleep.

Reddit · OwlMundane2001 · July 15, 2026
A Claude Code user reported that their monthly spending limit was exceeded while their MacBook was asleep, with a four-minute session consuming €10 worth of tokens. The user observed a recurring pattern where Claude continues processing after the computer enters sleep mode, resulting in unexpected spending upon resuming work. The user suggested the issue could stem from either a price increase at Anthropic or a bug in Claude Code's handling of mid-session hibernation.

Detailed Analysis

A Reddit post in r/Anthropic details a user's frustration with Claude Code's spend-limit behavior during an autonomous coding session that spanned a MacBook sleep cycle. The user describes a workflow in which Claude Code was tasked with reviewing and fixing code across a multi-module dashboard application (handling Dutch-language invoice and inventory management features), spawning sub-agents to review completed work in stages labeled "M4" and "Fable 5." After roughly 49 minutes of the account being throttled by a monthly spend limit, the user resumed work, forgot to issue a "caffeinate" command to prevent sleep, and watched the laptop suspend after just a few minutes. Despite this brief active window, the session logs show extensive tool use, multiple file edits, test runs, and build verification — all before the monthly limit was hit again, at a reported cost of roughly 10 euros for what appeared to be only 4 minutes of visible activity.

The core issue raises questions about how Claude Code accounts for computation time and cost when a host machine enters sleep mode mid-session. The user speculates two possibilities: either Anthropic significantly raised per-session pricing, or there is a bug where backgrounded or suspended sessions continue to accrue cost against the monthly spend cap without corresponding productive output visible to the user. This is a meaningful distinction for users relying on Claude Code's agentic capabilities to run semi-autonomous multi-step engineering tasks, since inconsistent or opaque billing behavior undermines trust in cost predictability — a critical factor for developers integrating AI coding agents into paid, metered workflows.

This incident is illustrative of broader growing pains in the agentic coding tool space, where tools like Claude Code are increasingly expected to operate over long, multi-stage sessions involving autonomous sub-agent spawning, self-review loops, and iterative testing — the kind of extended, low-supervision operation seen in the log excerpt, where Claude reviews its own prior work, identifies bugs like capped search results and inaccurate drift counts, applies fixes, and independently verifies typechecking, testing, and build success. As these tools take on more autonomous, long-running responsibilities, the mechanics of session continuity, sleep/wake handling, and cost accounting become just as important as raw model capability. Billing transparency issues at this level are not unique to Anthropic; they reflect a broader industry challenge as coding agents move from simple chat-based interactions toward complex, sustained, quasi-autonomous execution environments where the relationship between wall-clock time, compute consumption, and user-visible progress can become decoupled and confusing.

Anthropic has been steadily expanding Claude Code's capabilities toward more autonomous, long-horizon software engineering tasks, including sub-agent orchestration and self-directed review cycles, positioning it as a serious competitor in the agentic coding space alongside tools like GitHub Copilot Workspace and Cursor. However, incidents like this one underscore that as usage patterns shift toward extended, unattended sessions, the underlying infrastructure for usage metering, session state management across sleep/wake transitions, and spend-limit enforcement needs to keep pace with the sophistication of the agentic workflows themselves. For power users running resource-intensive, multi-hour coding sessions, unexpected cost spikes tied to ambiguous session accounting could become a meaningful friction point, particularly as Anthropic and competitors push subscription and usage-based pricing models that assume predictable correlation between active work and billed consumption.

Read original article →