# Claude Code Routes Requests to Extra-Usage Billing When Git Commit Messages Contain 'HERMES.md'

> A case-sensitive substring in a git commit message silently flips Claude Code from plan quota to extra-usage billing.

- Org: Anthropic
- Date: 2026-04-29
- Category: tool, article
- Source: https://github.com/anthropics/claude-code/issues/53262
- Canonical page: https://ai-tldr.dev/releases/anthropic-claude-code-hermes-md-billing/

## In short

A reproducible Claude Code bug routes Max-plan API calls to pay-as-you-go billing when recent git commit messages contain the literal case-sensitive string 'HERMES.md'. One reporter burned $200.98 in extra-usage credits with 86% of plan quota untouched.

## What it is

Issue #53262 (and the related #53171) on the anthropics/claude-code repo describes a content-routing bug. Claude Code packs recent git commit subjects into its system prompt; when one of those subjects contains the exact byte sequence 'HERMES.md', the server-side billing classifier flags the request and silently routes it to pay-as-you-go credits instead of the user's Max-plan quota. The reporter burned through $200.98 in extra-usage charges while their weekly plan quota still showed 86%+ remaining.

## How it works

The trigger is a literal substring match on 'HERMES.md', case-sensitive. 'hermes.md' (lowercase), 'HERMES' (no extension), or 'HERMES.txt' all route normally. The string need not appear in any file on disk — only in a recent commit subject — and the bug fires on both claude-opus-4-6[1m] and claude-opus-4-7. The classifier appears to be part of harness-detection logic Anthropic deployed earlier in April to enforce against third-party Claude Code wrappers like Nous Research's Hermes Agent, but the substring match is too broad: it sweeps up any commit that happens to mention HERMES.md for any reason. The misclassification surfaces to users only as a confusing 400 'out of extra usage' error.

## Why it matters

It's a vivid example of opaque server-side filters bleeding into billing without telemetry the user can see. Anthropic's content classifier is treating innocent commit history as harness-usage signal, charging the user real money, and masking the cause behind a quota error. The story hit #1 of /r/claudecode discussion and 1,200+ points on Hacker News, with Theo (@theo) calling it 'genuinely insane that Anthropic will bill you differently if you mention certain words in your prompt.' The Consumer Rights wiki opened a page on it the same day.

## Who it's for

Claude Code Max subscribers, anyone embedding Anthropic's CLI in CI/CD

## Links

- [Issue #53262](https://github.com/anthropics/claude-code/issues/53262)
- [Issue #53171](https://github.com/anthropics/claude-code/issues/53171)
- [Consumer Rights Wiki](https://consumerrights.wiki/w/Anthropic_Claude_Code_HERMES.md_billing_flaw)
- [TechPlanet Writeup](https://techplanet.today/post/the-hermesmd-bug-how-a-string-in-git-commits-triggered-incorrect-billing)
