---
title: "プロンプトの上に5時間および週間の制限を表示し、制限に達する前に警告するClaude Code MODを作成しました"
url: "https://claudemods.dev/ja/builds/i-made-a-claude-code-mod-that-shows-your-5-hour-and-weekly-l-3957a5"
source: "https://github.com/Ryan-LT/claude-mods"
source_type: "github"
repo: "https://github.com/Ryan-LT/claude-mods"
author: "Equivalent_Scary"
author_handle: "Equivalent_Scary"
stars: 2
category: "ダッシュボード・HUD"
categories: ["hud"]
tags: ["above-prompt", "compact", "hooks", "statusline", "usage-limits"]
permission_level: null
scan_complete: false
added: "2026-10-16T16:57:45.322Z"
updated: "2026-10-16T16:57:45.322Z"
locale: "ja"
content_locale: "ja"
---

# プロンプトの上に5時間および週間の制限を表示し、制限に達する前に警告するClaude Code MODを作成しました

2つの小さなClaude CodeプラグインAPI MOD：limitsはプロンプトの上に5時間および週間の使用量、パーセント、リセットまでのカウントダウン、コンテキストウィンドウの充填を表示するバンドを表示し、75/90/100%でトーストを表示します。idle-compactは40分間アイドル状態の後に/compactを実行してプロンプトキャッシュを暖かく保ちます。

## Description

週の途中で警告なしにブロックされ続けたので、2つの小さなClaude Code MODを作成しました。これらはClaude CodeのプラグインAPIにフックするため、ラッパーも追加プロセスもありません。

limits：プロンプトの上に常時表示されるバンド

5時間および週間の使用量：バー、使用済みパーセント、リセットまでのカウントダウン

現在のペースでリセット前に制限を使い果たす場合、パーセントが赤くなります。

コンテキストウィンドウの充填、および75/90/100%でのトースト

idle-compact：大規模チャットへのより安価な復帰

40分間アイドル状態の後、キャッシュがまだ暖かいうちに/compactを実行します。

インストール：

/plugin install limits --marketplace Ryan-LT/claude-mods
/plugin install idle-compact --marketplace Ryan-LT/claude-mods

リポジトリ（MIT）：https://github.com/Ryan-LT/claude-mods

## Original README

I kept getting blocked mid-week without warning, so I built two small Claude Code mods. They hook into Claude Code's plugin API, so there's no wrapper and no extra process. limits : an always-on band above the prompt 5-hour and weekly usage: a bar, the percent used and a countdown to the reset The percent turns red when your current pace would use up the limit before it resets. You find out on Tuesday, not when you're blocked on Thursday. Context window fill, plus toasts at 75/90/100% idle-compact : cheaper returns to big chats The prompt cache expires after an hour, so coming back to a 300k-token chat reloads all of it at full price After 40 min idle, it runs /compact while the cache is still warm, so the chat you return to is small It never compacts a chat you reopened cold, since that would cost full price How it works (if you want to build your own): limits renders an AbovePrompt band from the rate-limit readings Claude Code already receives. It shares one reading across all open sessions through the plugin store, so 10 open chats still make only one 1-token Haiku request every 2 min to stay fresh. Install (in terminal claude ): /plugin install limits --marketplace Ryan-LT/claude-mods /plugin install idle-compact --marketplace Ryan-LT/claude-mods Repo (MIT): https://github.com/Ryan-LT/claude-mods Feedback and ideas welcome!   submitted by   /u/Equivalent_Scary   to   r/ClaudeAI [link]   [comments]
