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

augur

Augur の Claude Code モッドです。使用量をステータスラインに表示し、アラートを toast で知らせ、プロンプトの上に閉じられる行を保ち、インストールとテストのコマンドも提供します。

neostryder@neostryder

neostryder/augur/tree/main/apps/claude-mod

翻訳済み

この mod について

Augur の Claude Code モッド

Augur の設定にある Claude で Claude Code を有効にすると、Augur はこのフォルダーを Claude Code にインストールします。使用量をステータスラインに表示します。たとえば Claude 5h 27% | wk 48% | Grok wk 81% | 1 Augur alert のようになります。いずれかの上限が 70% に達したプロバイダー、または直近の読み取りに失敗したプロバイダーは行に加わります。Augur が 15 分間数値を書き込んでいない場合は、数値の経過時間も表示されます。

Augur が Claude Code 向けのアラートを発生させると、モッドは一度だけ toast で表示し、その後は最新のものをプロンプトの上にある行へ残します。D を押すと閉じ、O を押すと Augur を開きます。モッドの初回読み込み時点ですでに待機していたアラートには toast が出ないため、インストール直後に大量表示されることはありません。

Augur との通信方法

Augur は更新のたびに usage.json を保存し、その隣に alerts.json を置きます。モッドが読むのはこの 2 つだけです。アラートを閉じると、同じフォルダーの alerts-acks.jsonl に {"id":"a1b2c3","at":"2026-10-03T20:00:00.000Z","by":"claude"} のような行を追加します。次のチェックで Augur は、そのアラートをパネルとペアリングされたスマートフォンから消します。

Augur のインストーラーはこのフォルダーを ~/.augur/claude-mod にコピーし、そのパスを ~/.claude/settings.json の CLAUDE_CODE_PLUGIN_DIRS に追加します。さらにコピー先へ augur-app.json を書き込み、使用量ファイルと Augur プログラムを指定します。このファイルがなければ、モッドは ~/.augur/usage.json を読み、Open Augur ボタンを表示しません。

変更する

フォーマットは hooks/view.ts の素朴な関数にあり、hooks/register.tsx が Claude Code に接続します。tests/augur.test.ts のテストは、偽のファイルシステムと時計を使って実行されます。

claude plugin validate apps/claude-mod
claude plugin test apps/claude-mod

tsc -p . を実行する場合は、Claude Code の claude-code.d.ts とそのファイルの先頭にある tsconfig.json を .claude-plugin/types/ に置きます。このフォルダーは git で無視されます。宣言は使用している Claude Code のバージョンに属するためです。

インストール

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

claude plugin marketplace add neostryder/augur
claude plugin install augur
原文 / README

Augur's Claude Code mod

This folder is the mod Augur installs into Claude Code when you turn on Claude Code under Claude in Augur's settings. It keeps your usage in the status line, for example Claude 5h 27% | wk 48% | Grok wk 81% | 1 Augur alert. Other providers join the line once one of their limits reaches 70% or their last read failed, and the line says how old the numbers are once Augur has not written them for 15 minutes.

When Augur raises an alert meant for Claude Code, the mod shows it once as a toast and then keeps the newest one in a row above the prompt. Press D to dismiss it or O to open Augur. Alerts that were already waiting when the mod first loaded do not get a toast, so installing it does not set off a burst of them.

How it talks to Augur

Augur saves usage.json after each refresh and keeps alerts.json beside it. The mod only reads those two files. Dismissing an alert appends a line like {"id":"a1b2c3","at":"2026-10-03T20:00:00.000Z","by":"claude"} to alerts-acks.jsonl in the same folder, and on its next check Augur clears that alert in the panel and on a paired phone.

Augur's installer copies this folder to ~/.augur/claude-mod and adds that path to CLAUDE_CODE_PLUGIN_DIRS in ~/.claude/settings.json. It also writes augur-app.json into the copy, naming the usage file and the Augur program. If that file is missing, the mod reads ~/.augur/usage.json and leaves out the Open Augur button.

Changing it

The formatting lives in hooks/view.ts as plain functions, and hooks/register.tsx connects them to Claude Code. The tests in tests/augur.test.ts run against a fake file system and clock.

claude plugin validate apps/claude-mod
claude plugin test apps/claude-mod

For tsc -p ., put Claude Code's claude-code.d.ts and the tsconfig.json from the top of that file into .claude-plugin/types/. That folder is ignored by git because the declarations belong to whichever Claude Code version you have.

関連作品