---
title: "auto-continue"
url: "https://claudemods.dev/zh-tw/builds/auto-continue-70f2a2"
source: "https://github.com/icedevil2001/auto-continue"
source_type: "github"
repo: "https://github.com/icedevil2001/auto-continue"
author: "icedevil2001"
author_handle: "icedevil2001"
stars: 0
category: "工作流程與 CI"
categories: ["workflow"]
tags: ["automation", "hooks", "rate-limit", "session", "slash-command"]
permission_level: 2
scan_complete: true
install: "claude plugin marketplace add icedevil2001/auto-continue\nclaude plugin install auto-continue@auto-continue"
added: "2026-10-11T12:00:53.739Z"
updated: "2026-10-11T05:59:26Z"
locale: "zh-tw"
content_locale: "zh-tw"
---

# auto-continue

一個 Claude Code 模組，等待 5 小時使用限制視窗重置並自動提交「繼續」，以便工作階段可以繼續進行。

## Description

達到 5 小時限制後離開：此模組會等待視窗重置（加上一個餘量）並提交「繼續」，以便工作階段在沒有您的情況下繼續進行。

安裝：

```bash
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 會丟棄它們。

## Install

```
claude plugin marketplace add icedevil2001/auto-continue
claude plugin install auto-continue@auto-continue
```

## Original README

# auto-continue

A [Claude Code mod](https://code.claude.com/docs/en/plugins). Part of my wider collection, [claude-mods](https://github.com/icedevil2001/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

```bash
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.
