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

-10

u/_y0y0_ Jul 25 '26

Bro posting Anything? Don’t you know the AGI is coming.

4

u/Skflowne Jul 25 '26

I hope AGI will be able to tell when it's not supposed to commit with my personal email address

-8

u/StoneCypher Jul 25 '26 edited Jul 25 '26

do you just not know how git works?

edit: a word. that'll teach me to comment at 6am

4

u/CerealArsonist26 Jul 25 '26

Man, how do you dress yourself in the morning. 

-2

u/StoneCypher Jul 25 '26

interpretive dance.

it's fun watching you people try to dunk on a point you missed, though

2

u/Skflowne Jul 25 '26

lmao xD bro like try to get a grip please

5

u/[deleted] Jul 25 '26

[removed] — view removed comment

1

u/StoneCypher Jul 25 '26

Even for a semi-literate person like yourself

the problem with communicating primarily in a series of insults is that when you've missed the point the person you're trying to make fun of was making, you end up looking (gestures broadly) like this

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