Usage Coach — Development skill for Claude Code
codexbar 사용량 기반 작업 크기 코칭 + 에이전트 루프 요금 가드 (Claude·Codex·Antigravity).
How to install Usage Coach
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open netwaif/usage-coach and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Usage Coach does
codexbar 사용량 기반 작업 크기 코칭 + 에이전트 루프 요금 가드 (Claude·Codex·Antigravity).
Alternatives in Development
README
usage-coach
[codexbar](https://github.com/steipete/CodexBar)의 사용량 데이터를 읽어 **"지금 어떤 크기의 작업을 돌리면 되는지 + 왜 + (필요시) 언제"**를 알려주는 터미널 도구. 단순 정보 표시가 아니라 **행동 권고**가 출력이다.
Claude · Codex · Antigravity의 5시간·7일 한도를 교차 분석해 5가지 상황으로 코칭하고, 에이전트 루프용 **요금 가드**(`--hook` / `--guard-check`)를 함께 제공한다.
핵심 개념
- 5시간 한도 = 안 쓰면 reset으로 사라짐 → 남으면 아낌없이 소진(use-it-or-lose-it).
- 7일 한도 = 페이스 관리.
- Fable 5 주간 한도(Claude Max 구독) = 표시 전용
Fable라인. 코칭·요금가드 판정에는 미반영이며, 기본 구독처럼 데이터가 없으면 라인 자체를 생략한다.--json에는fable_7d키로 나온다. - 코어 비교 =
left(잔량 비율) vstimeLeft(reset까지 시간 비율). 둘 중 빡빡한 쪽이 작업 크기 상한.
출력 5종
| 상황 | 권고 | |
|---|---|---|
| 🔴 | 7일 한도가 빠듯 | 큰 작업은 미루기 |
| 🟢 | 5시간 넉넉 + 7일 여유 | 지금 큰 작업 |
| ⏳ | 5시간 부족 + 초기화 임박 | 곧 reset, 잠깐 대기 |
| 🟡 | 5시간 부족 + 페이스 뒤처짐 | 작은 작업만 |
| ⚪ | 평소 | 평소대로 |
요구사항
- Python 3 (표준 라이브러리만 — 의존성 없음)
- codexbar — 사용량 데이터 소스(
codexbarCLI)
설치
git clone https://github.com/netwaif/usage-coach.git
cd usage-coach
# 전역 명령으로 쓰려면 심링크(선택)
ln -s "$PWD/coach.py" /usr/local/bin/coach
사용법
coach # 전체 provider 라이브 조회 + watch
coach --providers claude,codex # 특정 provider만
coach --once # 한 번만 찍고 종료
coach --mock all # 출력 5종 데모(모킹)
coach --file samples/claude.json:claude # JSON 파일에서 읽기
coach --account antigravity:foo@gmail.com # 계정 지정(codexbar --account 패스스루, 반복 가능)
coach --json # 머신 출력(JSON 1줄) — 에이전트 루프용
codexbar 제약: `--provider all`은 hang하므로 provider별로 따로 조회한다(coach가 자동 처리). codex는 `--source cli`.
요금 가드 (에이전트 루프)
긴 자율 루프가 사용량을 보고 **위험하면 스스로 멈추게** 한다.
coach --hook— Claude Code Stop 훅용. 7일 가드. 정지 시{"continue":false}출력, 통과 시 무출력.coach --guard-check— provider 중립 체크. 정지 시 exit≠0 + 사유, 통과 시 exit 0.coach guard on|off|status— 런타임 스위치.
판정 = 하이브리드 OR: `left < timeLeft − m`(페이스) **또는** `left < floor`(절대). 데이터 오류 시 fail-open(통과). 설정 = `~/.config/us
Related Skills
Fluxdock
Desktop widget that shows Claude Code, Codex CLI and Antigravity usage for every limit window your account has
Product Manager Skills
PM skill for Claude Code, Codex, Cursor, and Windsurf: diagnose SaaS metrics, critique PRDs, plan roadmaps, ru
Prompt Sensei
Local-first prompt coach for Claude Code and Codex that improves prompts, observes prompting habits, and analy
Oh My Agent
Portable multi-agent harness for .agents-based skills, workflows, and standards-aware agent teams across Antig
HERO Anti OverDefense
HERO = Hashing · Edge cases · Rubrics · Overbuild — the four shapes coding agents over-defend in. A paste-in c
Agentrules Architect
AGENTS.md/CLAUDE.md generator and ExecPlan harness for Codex, Claude Code, Cursor, Antigravity, OpenCode and o
Related Agents
Security Sentinel
Deep security review focused on OWASP Top 10, injection, auth/authz, data exposure, and dependency vulnerabili
Verify
Claude Code runner adapter. 격리 snapshot에서 Codex/Antigravity/Tailscale Aperture reviewer를 조합해 교차검증. 보안 결정권 없음,
Slim Wrapper
tfx-route.sh 경유 전용 래퍼 에이전트. 코드를 직접 읽거나 수정하지 않고 Bash(tfx-route.sh)를 통해 Codex/Antigravity에 위임하는 thin wrapper. OS