ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 jl-cmd-projects

usage-wrapup

A Claude Code mod. When your plan usage gets low, it tells every running agent to wrap up — so you don't get cut off mid-task with half-edited files and no handoff.

jl-cmd-projects@jl-cmd-projects

jl-cmd-projects/claude-dev-env/tree/main/packages/usage-wrapup

未翻訳

この mod について

A Claude Code mod that watches Pro/Max/Team rate-limit windows (5-hour, weekly, spend limit). When a window has 1% or less left (configurable), every tool result in the main agent and subagents carries a note instructing the model to start no new work, finish or safely pause the current step, write a short handoff (done / left / next step), arm one wake for just after the reset time via send_later or a create_trigger routine, and stop and answer. It also shows a status-line warning and one-time toast, and compacts the conversation when the 5-hour window reaches 97% used or the weekly window reaches 99% used — at turn end, once per window, skipping interrupted and subagent turns, with a summary preserving the current task, its state, touched files, and next steps. Only works on a Claude subscription. Install by cloning the repo and launching with --plugin-dir; configure via /config thresholds.

インストール

まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。

claude plugin marketplace add jl-cmd-projects/claude-dev-env
claude plugin install usage-wrapup
原文 / README

usage-wrapup

A Claude Code mod. When your plan usage gets low, it tells every running agent to wrap up — so you don't get cut off mid-task with half-edited files and no handoff.

What it does

  • Watches your rate-limit windows (5-hour, weekly, spend limit).
  • When any window has 1% or less left (configurable), every tool result — in the main agent and in subagents — carries a note telling the model to:
    1. start no new work,
    2. finish or safely pause the current step,
    3. write a short handoff (done / left / next step),
    4. arm one wake for just after the reset time, such as send_later to its own session or a create_trigger routine, so the paused work resumes without a person,
    5. stop and answer.
  • Shows ⚠ N% left — wrapping up in the status line and a one-time toast.
  • Compacts the conversation when usage is nearly gone. This happens when the 5-hour window is 97% used or more, or the weekly window is 99% used or more.
    • It compacts when a turn ends, so the next turn starts with a smaller context.
    • It compacts once per window. When the window resets, it can compact again.
    • The summary keeps the current task, its state, the files it touched, and the next steps.
    • It skips a turn you interrupted, and it skips subagent turns.

Only works on a Claude subscription (Pro/Max/Team), where Claude Code gets rate-limit data.

Install

git clone https://github.com/DaKev/usage-wrapup ~/claude-mods/usage-wrapup
claude --plugin-dir ~/claude-mods/usage-wrapup

Configure

/config has three options:

  • Wrap-up threshold (% left). Default 1.
  • Compact at 5-hour usage (% used). Default 97.
  • Compact at weekly usage (% used). Default 99.

Test

claude plugin validate .
claude plugin test .

MIT license. See LICENSE.

関連作品