myaji35/GH_Harness/tree/main/mods/harness-status
GitHub リポジトリ · 投稿者 myaji35
harness-status
Claude Code 2.1.289 mod。ステータスライン、AbovePrompt の帯、/hstatus に読み取り専用の harness 状態を表示します。
myaji35@myaji35
この mod について
harness-status
Claude Code 2.1.289 mod。ステータスライン、AbovePrompt の帯、/hstatus に読み取り専用の harness 状態を表示します。
- セッション開始時と、メインターンの後に変更時刻が変わっていた場合、セッションの作業ディレクトリから
.claude/issue-db/registry.jsonを読み取ります。最新のIN_PROGRESSissue と件数を表示します。 opus_budget_state.daily.cost_usdとdaily.limit_usdを読み取ります。現在のレジストリには日次上限フィールドがないため、上限は—と表示されます。詳細表示には記録された予算日も出し、古い日次記録を今日の支出として扱わないようにします。- 利用可能なら
$.session.usage().context.percentを読み取ります。 - セッション開始時と 30 分ごとに、
~/Library/Logs/insuregraph-night/の日付付きログのうち最新のものの最終行を読み取ります。ログが利用できない場合は省略します。
不明または読み取れない値は — と表示し、どちらのソースにも情報を書き戻しません。
インストール
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add myaji35/GH_Harness claude plugin install harness-status
原文 / README
harness-status
Claude Code 2.1.289 mod showing read-only harness status in the status line, AbovePrompt band, and /hstatus.
- Reads
.claude/issue-db/registry.jsonfrom the session working directory on session start and after main turns when its modification time changes. Shows the latestIN_PROGRESSissue and count. - Reads
opus_budget_state.daily.cost_usdanddaily.limit_usd. The current registry has no daily limit field, so the limit appears as—. The recorded budget date appears in the detailed view to avoid presenting an old daily record as today's spending. - Reads
$.session.usage().context.percentwhen available. - Reads the last line of the newest dated log under
~/Library/Logs/insuregraph-night/on session start and every 30 minutes. An unavailable log is omitted.
Unknown or unreadable values appear as —; no information is written back to either source.
