原文 · 未翻译
Notifications You must be signed in to change notification settings
Fork 21.4k
Star 132k
HERMES.md in git commit messages causes requests to route to extra usage billing instead of plan quota #53262
Description
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).
HERMES.md
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)
claude-opus-4-6[1m]
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 && echo test > 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 && echo test > 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.
HERMES.md
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
"HERMES.md"
"test HERMES.md test"
"hermes.md"
"HERMES"
"HERMES.txt"
"AGENTS.md"
"README.md"
HERMES.md