neostryder/augur/tree/main/apps/claude-mod
augur
Augur의 Claude Code 모드입니다. 상태 표시줄에 사용량을 보여 주고, 알림을 toast로 표시하며, 프롬프트 위에 닫을 수 있는 행을 유지하고 설치 및 테스트 명령을 제공합니다.
이 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을 둡니다. 모드는 이 두 파일만 읽습니다. 알림을 닫으면 같은 폴더의 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 프로그램을 지정하는 augur-app.json도 씁니다. 이 파일이 없으면 모드는 ~/.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/에 넣습니다. 선언은 사용 중인 Claude Code 버전에 속하므로 이 폴더는 git에서 무시됩니다.
설치
먼저 작성자의 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.
