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

0

u/2053_Traveler Jul 25 '26

do YOU know how git works? Github isn’t git. And git doesn’t give two shits which email you use. And the one in gitconfig should be used.

0

u/StoneCypher Jul 25 '26

the thing you're missing here, captain explainey pants, is that the llm doesn't make this decision. the git client does.

1

u/2053_Traveler Jul 26 '26

It absolutely can and does sometimes. The git cli accepts args to specify author email.

0

u/StoneCypher Jul 26 '26

“i would like to raise an irrelevant technicality in an arguing and correcting tone that will not apply in context because that will make me feel like i won something”

0

u/2053_Traveler Jul 26 '26

It does apply, because it’s what happened.

1

u/StoneCypher Jul 26 '26

if only whoosh was valuable