ClaudeMods
☰
ZH-CN
● — 人在线 · 浏览 — 次
赞助提交作品
GitHub 仓库 · 发布者 icedevil2001

auto-continue

一个 Claude Code 模组,等待 5 小时使用限制窗口重置并自动提交“继续”,以便会话可以继续进行。

已翻译

关于这个 mod

达到 5 小时限制后离开:此模组会等待窗口重置(加上一个余量)并提交“继续”,以便会话在没有您的情况下继续进行。

安装:

claude plugin marketplace add icedevil2001/auto-continue
claude plugin install auto-continue@auto-continue --scope user

需要一个带模组的 Claude Code 构建(在 2.1.286 上测试)。占用:读取引擎的速率限制使用情况,设置一个计时器,提交一个提示;无网络、文件或进程。

使用:

  • 当 5 小时窗口使用率达到 25%(或已武装时),提示上方会出现一个按钮 自动继续:开/关,旁边是窗口使用进度条和重置时间。
  • 或使用斜杠命令:/auto-continue(切换),/auto-continue on|off|status。
  • 当已武装时因限制导致回合失败,会显示恢复时间的提示;输入您自己的提示会取消待处理的恢复。

选项(配置菜单): | 选项 | 默认值 | | --- | --- | | threshold | 25 | | graceMinutes | 5 | | message | continue |

限制:

  • 仅处理 5 小时窗口;7 天限制被忽略。
  • 当 5 小时窗口读数 >= 95% 且重置时间在未来时,限制命中被检测为 API 错误回合。
  • 武装状态和待处理的计时器存在于会话中;退出 Claude Code 会丢弃它们。

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add icedevil2001/auto-continue
claude plugin install auto-continue@auto-continue
原文 / README

auto-continue

A Claude Code mod. Part of my wider collection, claude-mods.

Hit the 5-hour limit and walk away: this mod waits for the window to reset (plus a margin) and submits "continue" so the session carries on without you.

Install

claude plugin marketplace add icedevil2001/auto-continue
claude plugin install auto-continue@auto-continue --scope user

Needs a Claude Code build with mods (tested on 2.1.286). Footprint: reads the engine's rate-limit usage, sets one timer, submits one prompt; no network, files or processes.

Use

  • A button Auto-continue: ON/OFF appears above the prompt once the 5-hour window is 25% used (or while armed), next to a bar of the window used and the time it resets.
  • Or use the slash command: /auto-continue (toggle), /auto-continue on|off|status.
  • When a turn fails on the limit while armed, a toast shows the resume time; typing your own prompt cancels the pending resume.

Options (config menu)

| Option | Default | | | --- | --- | --- | | threshold | 25 | % of the 5-hour window at which the button appears | | graceMinutes | 5 | wait after the reset time before sending | | message | continue | the prompt sent on resume |

Limits

  • Only the 5-hour window is handled; the 7-day limit is ignored.
  • A limit hit is detected as an API-error turn while the 5-hour window reads >= 95% with a future reset time. If the limit error leaves the usage reading stale, the resume will not arm; see the ponytail: note in hooks/register.tsx.
  • Armed state and the pending timer live in the session; quitting Claude Code drops them.

更多类似作品