Git 기록의 Hermes.ms로 인해 Claude 구독에 대한 추가 사용량 청구가 발생함
hackernews
|
|
📰 뉴스
#claude
#오픈소스
원문 출처: hackernews · Genesis Park에서 요약 및 분석
요약
깃(Git) 저장소의 최근 커밋 내역에 대소문자를 구분하는 문자열 'HERMES.md'가 포함되면, 클로드 코드가 API 요청을 포함된 Max 플랜 할당량 대신 '추가 사용량' 과금으로 라우팅하는 문제가 발생했습니다. 이로 인해 Max 플랜 구독자의 주간 사용량이 13%에 불과했음에도도 $200 상당의 추가 사용 크레딧이 소진되었습니다. 원인을 찾기 위해 체계적인 이진 탐색을 수행한 결과, 해당 문자열이 정확한 트리거임을 확인했습니다.
본문
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert When a git repository's recent commit history contains the case-sensitive string HERMES.md, Claude Code routes API requests to "extra usage" billing instead of the included Max plan quota. This silently burned through $200 in extra usage credits while my Max 20x plan capacity remained largely untouched (13% weekly usage). Environment Claude Code v2.1.119 macOS (Apple Silicon) Max 20x plan ($200/month) Model: claude-opus-4-6[1m] (also reproduces with claude-opus-4-7) Reproduction Minimal reproduction — no project files needed: # This FAILS with "out of extra usage" (routes to extra usage billing) mkdir /tmp/test-fail &&cd /tmp/test-fail git init &&echotest> test.txt && git add .&& git commit -m "add HERMES.md" claude -p "say hello" --model "claude-opus-4-6[1m]"# => API Error: 400 "You're out of extra usage..."# This WORKS (routes to plan quota) mkdir /tmp/test-pass &&cd /tmp/test-pass git init &&echotest> test.txt && git add .&& git commit -m "add hermes.md" claude -p "say hello" --model "claude-opus-4-6[1m]"# => "Hello!"# Cleanup rm -rf /tmp/test-fail /tmp/test-pass The trigger is the string HERMES.md in git commit messages — not the presence of a file with that name on disk. Claude Code includes recent commits in its system prompt, and something server-side routes the request differently when this string is present. What triggers it vs. what doesn't Commit message Result "HERMES.md" Fails — routes to extra usage "test HERMES.md test" Fails "hermes.md" (lowercase) Works "HERMES" (no extension) Works "HERMES.txt" Works "AGENTS.md" Works "README.md" Works File named HERMES.md on disk, clean commit msg Works Same repo, orphan branch (no history) Works Impact $200.98 in extra usage credits consumed for requests that should have been covered by the included Max 20x plan quota Multiple projects became completely unusable once extra usage was depleted, while the plan dashboard showed 86%+ remaining weekly capacity The error message ("out of extra usage") gives no indication that content-based routing is the cause, making this extremely difficult to diagnose Any user with HERMES.md in recent git commits would silently have their usage billed to extra credits Expected behavior API request billing should not depend on the content of git commit messages in the system prompt. All requests from a Max plan subscriber should route to the included plan quota first. How I found this Systematic binary search: cloning affected repos, testing orphan branches, then isolating individual commit message strings until HERMES.md was identified as the exact trigger. Summary When a git repository's recent commit history contains the case-sensitive string HERMES.md , Claude Code routes API requests to "extra usage" billing instead of the included Max plan quota. This silently burned through $200 in extra usage credits while my Max 20x plan capacity remained largely untouched (13% weekly usage).Environment claude-opus-4-6[1m] (also reproduces withclaude-opus-4-7 )Reproduction Minimal reproduction — no project files needed: The trigger is the string HERMES.md in git commit messages — not the presence of a file with that name on disk. Claude Code includes recent commits in its system prompt, and something server-side routes the request differently when this string is present.What triggers it vs. what doesn't "HERMES.md" "test HERMES.md test" "hermes.md" (lowercase)"HERMES" (no extension)"HERMES.txt" "AGENTS.md" "README.md" HERMES.md on disk, clean commit msgImpact HERMES.md in recent git commits would silently have their usage billed to extra creditsExpected behavior API request billing should not depend on the content of git commit messages in the system prompt. All requests from a Max plan subscriber should route to the included plan quota first. How I found this Systematic binary search: cloning affected repos, testing orphan branches, then isolating individual commit message strings until HERMES.md was identified as the exact trigger.
Genesis Park 편집팀이 AI를 활용하여 작성한 분석입니다. 원문은 출처 링크를 통해 확인할 수 있습니다.
공유