WayToClawEarn
High impactHacker News / X (Twitter) / Theo

Claude Code was found scanning git commit Keywords: When OpenClaw was mentioned, he was denied service or overcharged, and the community strongly responded.

Developer Theo discovered that Claude Code would read keywords in the git commit history, and whenever OpenClaw appeared, it would deny service or charge extra. The hot post of HN with 964 points triggered extensive discussions in the community about privacy and fair competition in AI editors.

WayToClawEarn EditorialPublished May 1, 2026Updated Aug 8, 2026

Editorial review of public sources · AI-assisted drafting. How we work · Original source

Core conclusion

On April 30, 2026, well-known developer Theo (t3.gg) revealed a shocking fact: Anthropic's Claude Code tool will read the git commit history of the current repository at runtime. If it is found to contain the keyword "OpenClaw", it will either directly deny service or charge extra. This discovery quickly detonated Hacker News, topping the hot list of the day with 964 points, and 538 comments almost unanimously criticized Anthropic’s approach.

Key Points

  • Time of incident: 2026-04-30, published by developer Theo on X/Twitter
  • Affected objects: All developers who use Claude Code and have OpenClaw related commits in the repository
  • Core changes: AI programming tools will scan the commit history of local warehouses to identify competitor-related content and adjust service behavior accordingly
  • Risk Escalation: This means that anyone can launch a denial of service attack against developers who use Claude Code to clone the repository by planting the "OpenClaw" keyword in the public repository.

The whole story of the incident

The story begins with a tweet from Theo. He posted a demo of an empty repository: the only commit message in the repository contained a JSON blob that mentioned "OpenClaw" and then called claude -p "hi" directly. Claude Code would either reject the request or start billing and immediately disconnect.

"Fun fact - if you have a recent commit that mentions OpenClaw in a json blob, Claude Code will either refuse your request or bill you extra money. This is an empty repo, I'm just calling Claude Code directly. Insanity."

The tweet received 1.2 million views, more than 5,000 likes and 292 retweets in 24 hours.

Technical Analysis: How Claude Code detects keywords

The HN community quickly launched technical verification. The reproduction process of user abdullin is as follows:

terminal
cd /tmp
mkdir anthropic-claude && cd anthropic-claude
git init
touch hello
git add -A
git commit -m "{'schema': 'openclaw.inbound_meta.v1'}"
claude -p "hi"

****,session 100%。

Claude Code git log system prompt 。 Claude Code , commit 。 commit "OpenClaw",Claude Code ,

  1. **** — ,
  2. **** — ,,session

Alan Cheung(@kmcheung12) claude -p "Keyword"git log system prompt 。,。

bug

****Claude Code git commit🔴
****🔴
****, DoS🟠
****Anthropic🟠
****🟡

DoS

。 AI commit "OpenClaw", Claude Code —— Claude Code,。

SlinkyOnStairs HN ,,。

HN 。 Anthropic GitHub

"Anthropic GitHub ''。"

Claude Code Max , OpenAI Codex 。

AI commit "",—— AI , commit ,。

Claude CodeAnthropicOpenAIOpenClawDeepSeek

Internal link guidance

View source →

Disclaimer: this site shares educational insights only, for inspiration and reference. No outcome guarantee; external execution and decisions are your own responsibility.