Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Antigravity CLI (agy) の利用枠 (モデルのグループごとの週次枠・5 時間枠の残り割合と reset 時刻) を、Claude がセッション内で取得できる /antigravity-rate-limit:status Skill を提供するプラグインです。--max-used-percent <N> を付けると、使用率が N% を超えた枠があるかを exit code で返すため、agy へ作業を委任する前のガード判定にも使えます。
本プラグインは Claude Code 専用で、Codex marketplace では配布していません。
v0.1.0
claude plugin marketplace add natsuume/natsuume-cc-marketplace
claude plugin install antigravity-rate-limit@natsuume-plugins
agy 1.1.11 以上が PATH にあることagy にログイン済みであること。未ログインなら、ターミナルで agy を起動してログインしますjq/antigravity-rate-limit:status は scripts/antigravity-rate-limit.sh を foreground で 1 回実行し、結果をユーザに報告します。失敗しても自動で再実行しません。報告する内容は次のとおりです。
--max-used-percent <N> を付けた場合は判定の結果失敗時 (exit 1) は stderr の理由を報告し、原因に応じて agy のインストール、agy を起動してのログイン、agy の更新などを案内します。
bash "<plugin-root>/scripts/antigravity-rate-limit.sh" [--max-used-percent <N>]
stdin は使いません。進捗とエラーは stderr に日本語で出します。
--max-used-percent <N> だけを 1 回まで受け付けます。N は 10 進整数 (数字 0-9 のみ・最大 3 桁) で 0〜100 の範囲です。空文字・空白や改行を含む値・範囲外の値・値の欠落・2 回以上の指定 (同じ値でも)・未知の引数は、usage を stderr に出して exit 1 になります。このとき agy は起動しません。
取得に成功したとき (exit 0 / 2) だけ、次の形の JSON を 1 つ出します。exit 1 では何も出しません。
{
"description": "<枠の仕組みの説明>",
"groups": [
{
"name": "<グループ名>",
"description": "<グループに属するモデルの説明>",
"buckets": [
{
"id": "gemini-weekly",
"name": "Weekly Limit Remaining",
"window": "weekly",
"remainingFraction": 0.9880305528640747,
"usedPercent": 1.2,
"resetTime": "2026-12-04T09:00:59Z",
"description": "... fully refresh in 6 days, 23 hours."
}
]
}
]
}
| フィールド | 値 |
|---|---|
remainingFraction | agy の remaining_fraction (0〜1) |
usedPercent | (1 - remainingFraction) * 100 を小数第 1 位に四捨五入した数値 |
resetTime | agy の reset_time (RFC3339、UTC)。未使用の枠を表す 1970-01-01T00:00:00Z と、文字列でない値 (欠損を含む) は null |
description (bucket) | agy の原文。使用済みの枠にだけ付き、無ければ null |
description と name は、agy の値が文字列ならそのまま、それ以外 (欠損を含む) なら null にします。グループと枠の順序は agy の応答のままで、buckets が空配列のグループは空配列のまま出します。
| exit | 意味 | stdout |
|---|---|---|
| 0 | 取得成功 (--max-used-percent の判定 OK を含む) | JSON あり |
| 1 | 取得失敗・引数不正 | なし |
| 2 | --max-used-percent 指定時のみ: いずれかの枠の usedPercent が N を超えた | JSON あり |
判定は全グループの全枠を同じ N で比べ、丸めた後の usedPercent が N を超える枠が 1 つでもあれば exit 2 です。枠が 1 つも無い場合は exit 0 です。exit 2 のときは、N を超えた枠を stderr にも列挙します。
exit 1 になる取得失敗は次のとおりです。
status が "SUCCESS"num_turns が 0。0 でなければ agent turn が実行された (古い agy で /usage が prompt として送られた) 可能性があり、quota を消費したおそれがある旨を stderr に出しますcommand.name が "usage"command.data.groups が 1 件以上の配列で、各グループが buckets 配列を持つ (空配列は許容します)remaining_fraction の代わりに remaining_amount で残りを示す枠が無い。残りを量で示す枠には対応しておらず、その旨を他の違反と区別して stderr に出しますid・window と、0〜1 の数値の remaining_fraction を持つscript は agy を次の引数で 1 回だけ起動します。
agy -p "/usage" --output-format json --print-timeout 60s
-p) の /usage は agy 同梱の changelog に記載された機能で、agent turn を始めず、quota を消費せず、conversation を残しません (agy 1.1.11 以上)--disable-slash-commands を付けると /usage が通常の prompt として送られるため、付けませんweekly) と 5 時間枠 (5h) がありましたscript は agy を起動するだけですが、agy は実行のたびに次を行います (agy 自身の挙動で、本プラグインからは制御できません。2026-11-27 agy 1.5.18 / WSL2 で確認)。
~/.gemini/antigravity-cli/log/ にログを作るGEMINI_API_KEY で接続している agy では取得できません。agy 同梱の changelog によると、この場合 agy は終了コード 2 で終わります (未実測)。script は exit 1 を返します/usage が model への prompt として扱われ、quota を消費しえます。script は num_turns が 0 でない応答を exit 1 にしますが、消費そのものは防げません| パス | 役割 |
|---|---|
.claude-plugin/plugin.json | plugin manifest |
skills/status/SKILL.md | /antigravity-rate-limit:status Skill。script を実行して結果を報告する手順 |
scripts/antigravity-rate-limit.sh | agy の /usage の実行、応答の検証と正規化、閾値判定 |
README.md | この文書 |
antigravity agy rate-limit usage-limit quota skill
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub natsuume/natsuume-cc-marketplace --plugin antigravity-rate-limitPlugins from other owners that cover similar ground