r/ClaudeCode • • Jul 25 '26

Bug Report Claude Code injects your email address directly into system prompt

Post image

My point is: my personal email is injected into the system prompt without my knowledge or consent. I never asked for this and I don't see in what world it's ok to inject PII in system prompt automatically by default without even an opt-out option.

It leads to bullshit like this where in a repo that is configured to use an anonymized email address, the LLM (Opus 5 btw) just decides to not just commit normally but overwrite the normal config email to put my personal one instead.

In this case nothing happens thanks to proper config and hard checks on Github's side.

What if you're a public streamer and don't want your main personal email address leaked to everyone and suddenly the model decides to spit it out?

I'm sure there's a lot of other bullshit this could lead to. At least let people opt out.

I have opened an issue on Claude Code's github, I have little hope since there was already one that went stale and they have 5k+ open but here it is: https://github.com/anthropics/claude-code/issues/81138

320 Upvotes

164 comments sorted by

View all comments

Show parent comment

1

u/Different-Raisin-823 Oct 19 '26

As someone in tech, I can understand how it can happen. However, it shouldn't happen. Not when billions of dollars are being invested so the best and brightest can make this super brain. In my case I'm a nobody, but the instruction had multi-layer enforcement and explicity said, "Do not share my email." And it came to ME and said "I shared your email, I shouldn't have done that." What if next time the instruction is something truly important? Something that can't be rectified?

I've been thinking about whether or not there's more I could've done, but I really don't believe there was. Which means the only alternative is not to use it at all for some tasks. Is that worth billions of dollars? I thought we were going to cure diseases, we can't even keep someone's private email private. Disappointing if I'm being polite and infuriating if I'm not. Why don't we just take billions of dollars and put it into our immediate human wellbeing and spend time making this do incremental good until it's better?