jl-cmd-projects/claude-dev-env/tree/main/packages/usage-wrapup
usage-wrapup
Claude Code mod입니다. 플랜 사용량이 부족해지면 실행 중인 모든 agent에게 마무리를 지시해, 파일을 반쯤 편집한 채 인계도 못 하고 끊기는 일을 막습니다.
이 mod 소개
Claude Code mod로 Pro/Max/Team 속도 제한 창(5시간, 주간, 지출 한도)을 감시합니다. 창에 1% 이하만 남으면(설정 가능)주 agent와 subagent의 모든 도구 결과에 새 작업을 시작하지 말고 현재 단계를 끝내거나 안전하게 일시 중지하며, 짧은 인계(완료 / 남은 내용 / 다음 단계)를 작성하고 send_later 또는 create_trigger 루틴으로 재설정 직후 한 번 깨우도록 예약한 뒤 중지하고 답하라는 메모를 붙입니다. 상태 표시줄 경고와 한 번만 표시되는 toast도 보여 줍니다. 5시간 창이 97% 사용에 도달하거나 주간 창이 99% 사용에 도달하면 턴이 끝날 때 대화를 압축합니다. 창마다 한 번만 실행하고 중단된 턴과 subagent 턴은 건너뛰며 현재 작업, 상태, 건드린 파일, 다음 단계를 보존하는 요약을 남깁니다. Claude 구독에서만 작동합니다. 저장소를 clone하고 --plugin-dir로 실행해 설치하며 /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:
- 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, such as
send_laterto its own session or acreate_triggerroutine, so the paused work resumes without a person, - stop and answer.
- Shows
⚠ N% left — wrapping upin 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.

