📄 中文摘要
Claude Code 提供了一个 5 小时的令牌预算,但这个预算的计算窗口从你发送第一条消息开始。如果在早上 8:30 发送了一个快速问题,预算在 11 点耗尽,那么在工作日的中间你将面临 2 小时的停滞。为了解决这个问题,一位开发者创建了一个名为 claude-warmup 的解决方案。该方案利用 GitHub Action 定时发送一条“你好”的消息给 Claude Haiku,以便在工作日开始之前锚定你的预算窗口,从而避免在工作中途被锁定的情况。通过这种方式,用户可以更有效地管理他们的令牌使用,确保在工作时间内有足够的访问权限。
📄 English Summary
Cómo Evitar Agotar los Límites de Código de Claude Diariamente
Claude Code offers a 5-hour token budget, but this budget starts counting from the moment you send your first message of the day. If you ask a quick question at 8:30 AM and exhaust your budget by 11 AM, you face a 2-hour block in the middle of your workday. To address this issue, a developer created a solution called claude-warmup. This solution uses a scheduled GitHub Action to send a disposable 'hello' message to Claude Haiku before your workday begins, effectively anchoring your budget window. This approach allows users to manage their token usage more efficiently and ensures they have sufficient access during working hours.
Powered by Cloudflare Workers + Payload CMS + Claude 3.5
数据源: OpenAI, Google AI, DeepMind, AWS ML Blog, HuggingFace 等