Claude Code billing vulnerability exposed: If you write a typo in git commit, you will be overcharged $200, Anthropic has fixed it
Anthropic Claude Code was exposed that the git commit message contained the HERMES.md string, which triggered additional billing channels and bypassed the Max package quota. A user has been overcharged $200.98. Anthropic has fixed it and is promising a full refund. This article explains in detail the trigger mechanism, root cause analysis and pitfall prevention guidelines.
Core conclusion
On April 30, 2026, Anthropic Claude Code was exposed to a serious billing vulnerability: as long as the commit message of the git warehouse contains the string HERMES.md, Claude Code will route the API request to the "extra usage billing" (pay-as-you-go) channel, bypassing the user's existing Max package quota. It has been confirmed that a user was overcharged $200.98 as a result.
Key Points
- Time of incident: 2026-04-30 -Affected: All Claude Code Max/Pro subscribers
- Core change: Anthropic's abuse detection system was accidentally triggered, using text matching in git commit history as the basis for billing routing
- Anthropic has officially confirmed the fix and promised a full refund + an additional one-month subscription as compensation.
Background and trigger events
The controversy started with a bug report submitted by GitHub user @sasha-id in Anthropic Claude Code Issues. He found that his Max 20x package ($200/ months) showed only about 13% of weekly usage, but suddenly it prompted "You're out of extra usage..." and could not continue to use it. After checking the bill, I found that I was charged an additional $200.98.
After repeated investigations, he found an incredible trigger condition: As long as the string HERMES.md appears in the commit history of the warehouse, Claude Code will route the request to the additional billing channel.
Note: This is not a file called HERMES.md, but the commit message contains this word.
Technical Analysis: Trigger Conditions and Avoidance
Precise trigger conditions
After repeated testing by the community, the confirmed trigger boundaries are as follows:
| Condition | Result |
|---|---|
commit message contains HERMES.md | ❌ trigger additional billing |
commit message contains test HERMES.md test | ❌ trigger |
commit message contains hermes.md (lowercase) | ✅ Normal |
commit message contains HERMES (no extension) | ✅ Normal |
commit message contains HERMES.txt | ✅ Normal |
There is HERMES.md file on the disk but the commit message is clean | ✅ Normal |
| The same warehouse uses orphan branch, no history | ✅ Normal |
**Conclusion: The triggering condition is an exact match of the case-sensitive HERMES.md string in the git commit message. **
Root cause analysis
Boris Cherny, head of Anthropic Claude Code, responded on GitHub:
"This was an overly sensitive abuse detection system. Fixed."
Claude Code will send the recent commit history of the warehouse to the Anthropic server in the context of system prompts with each request. There is an anti-abuse system on the server side that specifically detects whether a third-party Agent tool framework (such as Nous Research's Hermes Agent) is being used, and routes such requests to the pay-as-you-go "extra usage" channel instead of the monthly package.
The problem is that this detection mechanism is too broad - it will scan the full text of the HERMES.md string in the commit history, and cannot distinguish whether this is a real Hermes Agent usage or an unintentional git commit record in the warehouse.
Impact and Key Timeline
Anthropic's response
| time | event |
|---|---|
| Problem Report | @sasha-id submitted Issue #53262, describing the billing exception in detail |
| Automatic reply | Anthropic support system reply: "Unable to provide compensation for technical issues that resulted in incorrect billing routing" |
| Official confirmation | Boris Cherny replied "This is an overly sensitive abuse detection system. Fixed" — Close Issue |
| Community backlash | This reply received 207 👎, the user believes that "fixed" is not enough to compensate for the loss of $200 |
| Final solution | Thariq (Claude Code team) posted on X: All affected users will receive a full refund and an additional one-month subscription as an apology |
Practical impact on Claude Code users
- Silent overage billing: The error message is just "You're out of extra usage", and there is no mention of git commit history as the reason.
- Extremely high randomness: Triggered in any project, at any time, as long as the commit message
HERMES.mdappears - Plan quota is empty: Max package users find that their monthly quota is still there, but their requests go through the additional billing channel
- Affects non-Hermes users: This bug does not affect users who actually use Hermes Agent (they should have been charged extra), but only accidentally hurts ordinary users.
Guide to Preventing Pitfalls: 4 Tips from Claude Code Users
- Check the extra usage bill regularly: Claude Code’s Plan Quota and Extra Usage are displayed independently. If Extra Usage is consumed abnormally, check whether there is an abnormal string in the git repository.
- Create an orphan branch as a temporary solution: If you encounter this problem,
git checkout --orphan clean-branchcan skip the history - Consider using local models instead: For content production tasks, local-friendly models such as DeepSeek V4 can be used instead of Claude API
- Focus on third-party Agent alternatives: Claude Code’s billing policy is being tightened, and tools such as OpenClaw and Hermes Agent have been directed to additional billing channels
Related extended information
Tool entry (trigger tool floating card)
The following terms naturally appear in the text, and the platform side will match the maintained tools library:
Claude, Claude Code, DeepSeek, Hermes Agent, OpenClaw
Internal link guidance
- Want to master the complete usage of Claude Code? Watch the tutorial: Claude Code automated writing practice: build an AI content production pipeline in 30 minutes
- See how others make money with Claude Code: Claude Code 48 hours to start a business: one person + US$29 monthly fee, monthly income in 3 months $9,000
- Looking for a replacement for Claude? See the guide: DeepSeek V4 vs Claude Code: 90% Cheaper, Same Quality
Topic hub
AI Coding Tools Hub (2026)
From Copilot pricing changes to Claude Code + DeepSeek cost-saving setups—one place to compare tools, read explainers, and follow tutorials.
Explore AI Coding Tools Hub (2026) →Monetization angle
How can you make money from this trend?
WayToClawEarn focuses on verified earn playbooks—not just news. Start from these cases.
DeepSeek + Claude Code Micro SaaS
Run multiple small products on cheap inference
Claude Code bug bounty
Productize agent skills into security services