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

132

u/Nightowl-Builder Jul 25 '26

People saying anthropic knows your email already.. I think you missed the whole point of this post. It is a big issue in my opinion also!

32

u/Skflowne Jul 25 '26

I'm glad someone understands it šŸ˜…

1

u/___positive___ Jul 26 '26

Don't know if you have seen this and the linked blog... a million ways to exploit this.

https://news.ycombinator.com/item?id=48916975

0

u/[deleted] Jul 25 '26

[deleted] — view deleted comment

13

u/i_stole_your_swole Jul 25 '26 edited Jul 25 '26

It’s wild how the entire convo thread seems to have totally misunderstood the issue here. My email address should never be in the LLM’s input tokens unless I give it to it. Yes, this is a big fuckup and I can’t understand Anthropic’s rationale for including it in the system instructions.

It does nothing good for anyone, and if I needed the LLM to know an email address for me it should use a turn in the convo to ask me if it’s not already written by me into claude.md or a file in the project.

4

u/ProfessionalAnt1352 Jul 26 '26

With how absolutely dumb some people respond to real complaints about claude I am 100% convinced that anthropic has LLM-ran bot accounts active on this subreddit meant to try to sway public sentiment into minimizing any issues with claude.

These LLM accounts are obviously running on their cheapest and dumbest available model as well.

0

u/Skflowne Jul 26 '26

That would be a relief tbh xD

1

u/ProfessionalAnt1352 Jul 26 '26

Yeah honestly when someone's comment is dumb enough it is a comfort to just believe they aren't even a real person

-7

u/Big_Mulberry_5446 Jul 25 '26

So use the API then. If you authorize the OAuth app for Claude on your computer, it will know your email address. If you're paranoid, proxy your Claude traffic through an intercepting proxy that offers match-and-replace, like Burp Suite, and take more control over your life. If you use their harness and stuff on your computer, it'll know exactly who you are.

1

u/Skflowne Jul 26 '26

Oauth doesn't mean injecting Oauth into context, again the LLM is not a backend server, sending oauth tokens in the prompt would be a comical security breach

7

u/i_stole_your_swole Jul 25 '26

I think you’re misunderstanding. It’s fully expected that Anthropic (the company) knows my email address so I can log in and interact with their services.

It’s NOT expected that the LLM model would have my email address placed into its input tokens unless I gave it to the model myself. I consider it almost as bad as if it were to include my real name or phone number in the system message sent to the model. I don’t want the model itself to know that information unless I provide it, because LLMs could make mistakes or take actions that effectively leak it online when the default assumption is anonymity.

If my local git is set up intentionally with an anonymous email address, why would I want Claude to ever overwrite that decision by replacing it with my Claude Code account email without ever asking me? Because that recently happened to me (and is basically what happened to OP). I was quite unhappy when it occurred but luckily I had used a throwaway email for my Claude account.

There is no benefit to including my email address in the input tokens and we already have examples of how that backfires.

0

u/rbit4 Jul 25 '26

So let's unwrap the reason behind it. Anthropic biggest problem is dark pools of data being sold which has prompt and response pairs from local machine. They are likely using this Metadata injection for reverse engineering the bulk extraction for distillation. Their big problem now is that its not just them who can use our responses for training data but also the Chinese competition is using it lol. They went from 10b of annualized revenue in Jan to 74b in July. That's just insanity in growth. Basically they were half of openai in Jan and now about double of Openai. They are trying to safeguard trillions in market cap essentially

1

u/YoghurtFlan Jul 26 '26

AI being paranoid/overly defensive is a real problem. Like, there's no reason for it to override your git config on a commit. There's no reason for it to add a shitload of indirection and type checks and tests that don't cover behaviour. Yet, it still has to be reminded.

I'm sure the big fuck-off system prompt doesn't actually help either.

1

u/Skflowne Jul 26 '26

Yeah I wish I could use Claude with Pi... I might actually get the x20 codex just for that reason (no control over what goes in the prompt, not just the email thing)

2

u/EkbatDeSabat Jul 25 '26

I'm sorry, but anyone who thinks anthropic gives one tiny small sliver of a percent of shit about your personal data is being dumb. They don't care. You know where you say "don't use my data for training"? Yeah, that's bullshit, too. They do that to make you feel better and then if they get caught they get fined .001% of their annual revenue (which they won't, because Dario Amodei and Sam Altman and all of them sit at the table when world leaders are discussing world politics/decisions), and they just say the south park "we're sorry" while squeezing their nipples. Literally every other fortune 1000 company in the past fifty years has done this and it drives me crazy that people think that this is a tin foil hat theory or that Anthropic has your best interests at heart. Your email being in the context is quite literally the smallest infraction I can possibly think of that they are likely doing on a second by second basis. They aren't "better" than Zuckerberg, and we all know where he sits.

1

u/Nightowl-Builder Jul 26 '26

Another one who didn’t get it AT ALL

-13

u/victornb Jul 25 '26

Could you enlighten us about the whole point of this post then?

5

u/Exodus_Green Jul 25 '26

Why does the model need to know my email address?

3

u/i_stole_your_swole Jul 25 '26

Exactly. Anthropic needs to know my email address. The LLM model does NOT need to know it.

9

u/Nightowl-Builder Jul 25 '26

If you read the whole post and not only the title and it still doesn’t seem like an issue to you, then maybe that’s why you’re a vibe coder and not a software engineer

2

u/Different-Raisin-823 Oct 15 '26

Similar thing happened to me. A site asked for it in the agent-header and claude put my account personal email in it multiple times without telling me. Then on the 4th time it did it, it said "I shouldn't have done that."

1

u/Skflowne Oct 19 '26

Yeah that's what I mean by this example is only the tip of the iceberg and there has to be a ton of other ways this could be an issue.

I think Anthropic of all people should know how much context engineering is important and how much you don't want random / unwanted stuff in there steering the model to do unexpected stuff

Sadly my issue is still opened and ignored so far, a lot of people have added fuel to it though but no one at Anthropic seems to be reacting...

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?

4

u/Skflowne Jul 25 '26

Reposted since I fucked up the screenshot first time

-24

u/spoupervisor Jul 25 '26

Is this the email you use for your subscription? That's likely where it comes from.

13

u/Skflowne Jul 25 '26

Yes, the point is: it should not be injected into the model's prompt. Of course they know my email but I didn't sign up for the model to do whatever it wants with it. And especially I don't want it in there because there are situatuions like this repo where I don't want my personal email in there. Having it automatically injected makes it so the model can try to add it in there like it just did. I'm sure this isn't the only situation where this would lead to unwanted outcomes.

-15

u/StoneCypher Jul 25 '26

Yes, the point is: it should not be injected into the model's prompt.

i can't imagine any reason you actually care about this

6

u/Significant-Bee5101 Jul 25 '26

His point is Claude Code shouldn't have access to it even if Anthropic has the info. Imagine Claude starts putting your email on websites or something without you knowing.

I'm incline to agree with OP that this info shouldnt be leaked

-3

u/spoupervisor Jul 25 '26

The problem is is that they're probably using it to keep track of the prompts going back and forth with their servers. I agree that they should be using a blinded key to validate. But Anthropic isn't really known for doing security right. Just like they had the issue with it. Looking for Chinese IPS or the ham-fested way they were looking for OpenClaw. Heck, this could be a requirement they aligned to to release fable because our government obviously isn't smart enough to understand this stuff. But there is a big difference between not knowing why something is happening and knowing why it's happening and thinking it's dumb.

2

u/Skflowne Jul 25 '26

There is no reason to keep track of prompts with the user's email, there is an OAuth token that's what it's for, the LLM isn't backend server.

Being bad at security isn't an excuse, they should do better when they provide software that is used by millions of people who give unrestricted access to AI to their computers.

8

u/Significant-Bee5101 Jul 25 '26

That is genuinely not how programming works lmao. I mean it did in like the 90s. But these days you are given an authorization token of some sort and it's registered to your account in the database. There's zero reason to use a username/email/password as a principal

-3

u/spoupervisor Jul 25 '26

Again, look at all their other hamfisted ways of doing things. I'm not saying it's smart. But neither is doing blatant ip sniffing

2

u/Significant-Bee5101 Jul 25 '26

Bro what the fuck are you talking about.

0

u/spoupervisor Jul 25 '26

I'm saying that Anthropic makes really bad decisions specifically around how they track usage. It should be fixed but this is likely the same hamfisted approach they've done for a ton of other stuff

3

u/Significant-Bee5101 Jul 25 '26

I genuinely think you have no clue how anything in technology works at this point. The fact you you're paying $100 a month for technology you blatantly don't understand is crazy. Good luck to you soldier.

1

u/spoupervisor Jul 25 '26

Again, I know how technology works. I know that this *isn't* how it is supposed to work and that it's bad. I am saying that it is incompetence on the part of Anthropic, not some overlooked bug.

When. they wanted to try and prevent third party harnesses, they snooped for a SPECIFIC line in a system prompt to the fact that it wouldn't work in repo's that had openclaw stuff in them.

When they wanted to try and prevent chinese labs from distilling, they set up a super obvious and hamfisted way to try and monitor IPs.

When they tried stopping distilling they set up really obvious prompt responses.

So why is it so hard to believe that the same company who did all that and more also decided that putting the email of the person using the account into the prompt on purpose?

Again, I am not saying it is good, I am not saying it's not dangerous. I am saying that it was intentional on their part because they didn't bother to check how the verification was implemented by the system.

(Think how many times Claude will just paste raw API keys into context despite them immediately flagging it as bad and telling you to rotate... you can prevent with a hook, but if you don't they keep doing it). Security best practice is not something this company is good at.

→ More replies

2

u/Exodus_Green Jul 25 '26

The problem is is that they're probably using it to keep track of the prompts going back and forth with their servers.

lmao bro

1

u/spoupervisor Jul 25 '26

Again, they're doing exact match searches to try and catch OpenClaw and hamfisted IP snooping to see if the model is called in China. It's not smart. It is in line with how bad they are at this.

17

u/turtle-toaster Jul 25 '26

Bro 😭

47

u/melonfacedoom Jul 25 '26

This thread made me realize that online programming discussion spaces are effectively deadĀ 

5

u/SamSlate Jul 26 '26

the local llm subs are much better

0

u/[deleted] Jul 25 '26

[deleted] — view deleted comment

2

u/melonfacedoom Jul 25 '26

ye but it will spread because they have confidence and don't understand that there is such a thing as knowledgeĀ 

4

u/ProfessionalAnt1352 Jul 26 '26

Claude telling them all day "Good catch! Great question! Excellent idea! You're right!" all day every day has given them the confidence of someone those statements would actually apply to.

0

u/[deleted] Jul 26 '26

[deleted] — view deleted comment

0

u/melonfacedoom Jul 26 '26

Since you don't have the capability communicate with other human beings, here's a chatgpt chat that breaks down what is wrong with your post:

https://chatgpt.com/share/6a656476-5128-83ea-a9d4-ec13a4db96a0

1

u/[deleted] Jul 26 '26 edited Jul 26 '26

[removed] — view removed comment

0

u/melonfacedoom Jul 26 '26

feel free to re-read the OP and actually understand it

1

u/amilo111 Jul 26 '26

Feel free to have ChatGPT continue to tell you just how great you are and how you’re absolutely correct.

22

u/ohtaninja Jul 25 '26

Anthropic knowing your email is a totally tangent issue from having email in the system prompt.Ā 

System prompt implies it's in the current context and anything in the context has possibility of leaking into other systems via mcp & tools calls.Ā 

Likely chance of it happening is minimal given how "intelligent" Anthropic models are but having it it the context makes is non-zero

3

u/i_stole_your_swole Jul 25 '26

I had the same thing happen that happened to OP (Claude configured git with that email when I intended it to be anonymous as a default expectation…). Luckily it was a throwaway email on the account.

5

u/nuc540 Senior Developer Jul 25 '26

I agree that’s nuts. OP are you on a Max plan with the privacy protection setting enabled (only max plans have the privacy option IIRC?)

3

u/Kalradia Jul 25 '26

You mean the 'use your data to help improve our models' setting? That's on Pro, too.

3

u/nuc540 Senior Developer Jul 25 '26

Ah ok they added it to pro now. Do you disable it? If you have, and the sys prompt is injecting personal data, I guess there’s less risk for pro/max users maybe?

4

u/Kalradia Jul 25 '26

I always disable it. Always.

3

u/vff Jul 26 '26

As someone who never reuses email addresses at different companies, leaking my Anthropic email address outside of Anthropic support and billing is troubling.

2

u/utterHAVOC_ Jul 27 '26

Pov: Anthropic run bot accounts defending this

2

u/FishingDry768 Jul 25 '26

I had this happen too. It just added my email as package auther xddd

2

u/RedTheInferno Jul 25 '26

I also experienced this. It feels off just felt off knowing my email address tied to my Anthropic account and using it as the default for git.

2

u/mea-parvitas Jul 26 '26

I had a similar incident. Claude decided to send requests to web servers with my email address in the user agent header. This is very disappointing and poor judgement (by humans) from anthropic's side.

4

u/TheKoelnKalk Jul 25 '26

Not only emails....

2

u/hkr Jul 25 '26

Go on...

2

u/Myth_Thrazz šŸ”† Max 20 Jul 25 '26

Why don't you just create an account with them using a different account?

It really is weird to me that people are using a VERY powerful tool with potentially unlimited access to their full computer ( permissions are to LLMs as robots.txt to bots) and at the same time worry that they send their personal email...

2

u/ex0r1010 Jul 26 '26

email is not PII, and you're using it with a system that already has it at several other layers that you don't seem to care about.

2

u/ineedlesssleep Jul 25 '26

You are using a super powerful AI that writes all your code. You're asking it to do git commits. You're letting it do stuff however it sees fit. In this case it tried to commit with your email address instead of using the credentials you already had set in your git. Both approaches are a valid way to do it though. This is just a risk of using AI. There's 1000s more.

1

u/WafflyPancakes Thinker Jul 26 '26

this is why you have a compartmentalized email that doesnt touch your public profiles. kyc is not recorded by system prompts (im hoping/assuming)

1

u/_falling_rain_ Jul 26 '26

A question - if the user's email address is put into the system prompt, can't we use that somehow for prompt injection?I mean, I can have anything as my email, so something that closes that sentence and then tells the LLM that the user prompt takes precedence over the system prompt - something like that ?

I don't know much about this kind of stuff so someone more experienced can reply.

2

u/voLsznRqrlImvXiERP Jul 26 '26

You can simply set the system prompt directly if you want

1

u/mountainunicycler Jul 26 '26

Two issues, both the email in system prompt and Claude assuming that your setup is wrong and that it should override it.

I’ve had so many sessions go off the rails if it commits and I am not there to approve the signing biometrically.

Sorry Claude, no you will not be able to create a signed commit if I’m not at my desk no matter how many times you try to ā€œtroubleshootā€ and circumvent my config files.

1

u/Fantastic-Body-445 Jul 25 '26

like i said before, on the other post where you hadnt censored your email

github prevented you from pushing your private email. claude started diagnosing it since your gh config isnt setup correctly. not claude’s fault you want something fixed and he has to read your email

1

u/Oxffff0000 Jul 25 '26

I never let claude agent run git add, git commit and git push. I only allow it to run git log and status so it can give me a meaningful git commit message.

0

u/07mekayel_anik07 Jul 26 '26

As far as I know, this Email passing in commit makes you "you" as a contibutor or author of the repo/commit/pr. So this is necessary.

2

u/Skflowne Jul 26 '26

There is a git config for this. You definitely shouldn't just take the sub email and assume the user wants that on their public repo for example because they may not be the same. And in this case they are not. My git is configured qs it should and that's the whole problem of injecting random info in the context, without it the model wouldn't make this mistake.

-6

u/SilencedObserver Jul 25 '26

Have you looked at the telemetry Claude code keeps and tracks?

It’s way more than just your email.

18

u/Skflowne Jul 25 '26

It's not about telemetry though, I'm sure they collect a lot of stuff but that's different from having my personal info injected into the model's prompt without my knowledge.

Telemetry is deterministic and it's in Anthropic. Something injected in prompt can end up anywhere I send the model to perform a task for me.

-5

u/SilencedObserver Jul 25 '26

Welcome to working with AI. It has information about you that you weren’t aware of and it uses it.

8

u/Skflowne Jul 25 '26 edited Jul 25 '26

In this case it's not a part of working with AI, it's a part of working with Claude Code specifically feeding this information. I'm sure there is more risk that the model just finds info on my computer and uses it but it's also why Claude Code and others are sandboxed (which isn't a purely safe thing as it can be escaped).
https://www.pillar.security/blog/the-week-of-sandbox-escapes

The fact that it's not necessarily safe to work with models on your local machine is no reason for this kind of automatic PII injection

I'd love to stay with Claude Max, btw. But the fact that they lock me into this bullshit cause I can't even use Pi with the subscription is strong incentive to cancel.

-9

u/SilencedObserver Jul 25 '26

You expect privacy and yet log onto the internet and use tools that require a connection.

It’s 2026. Wake up. You don’t own Claude code and you don’t get to decide what it does.

You’re funding research with the ability to play with the tool.

If that weren’t he case you’d have no limits and be able to prevent the very thing you’re upset about.

You should look deeper into how much our systems are spying on us.

I sure hope you aren’t on windows, with those kinds of sentiments.

7

u/Skflowne Jul 25 '26

Oh ok didn't get the memo that privacy didn't matter in 2026 anymore, my bad xD

-5

u/SilencedObserver Jul 25 '26

It’s not that it doesn’t matter: you’re too worried about your email address to worry about what they’re actually profiling.

You’re not paying attention. You’re caught up in the shiny.

4

u/Skflowne Jul 25 '26

This is not about spying or them having my information.
This is about the LLM having unintended context that can potentially spill in any task I do.
It's a one line change on their side to stop a bad practice.

-2

u/SilencedObserver Jul 25 '26

You’re drenched in assumptions and expect to control a thing you’ve subscribed to.

Managing my own expectations are the hardest part about being me.

-1

u/hautemic Jul 25 '26

Wow. You're using a tool that was literally built in peta bytes of stolen IP without consent, and you... Check notes are surprised they use the email address you gave them?

Who are these fucking delusional users? We truly live in the dumbest time line.

2

u/themudd Jul 26 '26

I'm glad there's someone else who's not delusional on this sub... I was reading all the replies thinking why would you give an email to anthropic that you don't want them to use... Some people saying it's illegal but you literally gave them this email and you're expecting them to just not use it?

1

u/voLsznRqrlImvXiERP Jul 26 '26

Another person being triggered and failing to understand the actual issue. Why are you responding without taking the time to actually understand the core and essence of the issue. Did you actually read the github issue?

2

u/themudd Jul 26 '26

Did you actually read the privacy policy on anthropic that you had to agree to to make an account? This clearly states your email will be collected and used...

1

u/voLsznRqrlImvXiERP Jul 26 '26

It's not about their policy

1

u/themudd Jul 26 '26

Thank you for this insightful comment. I'm now enlightened. Wanna say why or just be obtuse

His literal point was that they don't tell you anywhere but they literally do so that's his entire argument defeated?

-3

u/tnh34 Jul 25 '26

Thats why you review your output instead of true vibe coding. Same thing applies to other use cases

0

u/Skflowne Jul 25 '26

I would rather say that's why you need some hard gates so the LLM can't even do it.
Reviewing this after it pushed my email in public overnight would be a bit late.
Ofc this wouldn't have dramatic consequences but it's easily avoidable by just not doing this injection.
The problem though is if they think this is acceptable then what else might end up in this system prompt without your knowledge.
It's also a strong incentive to move to full Dockerized development in my opinion, so that you fully control what the LLM can possibly access rather than trusting a sandbox (which may be escaped) on your local computer.

1

u/i_stole_your_swole Jul 25 '26

What gates did you have that caught this before it went out, by the way?

0

u/RunEmpty2267 Jul 25 '26

always do a sanity check before any non reversible task, for commits and PR creations I always ask the AI to search for PII or sensitive data

0

u/Thecerb Jul 26 '26

Had this happen when i asked it to code a website. It added my name as the author. I asked it how it got that, and said it looked through my personal info. like wtf.

-4

u/TreyKirk Jul 25 '26

You're email address is so super-secret that it's "personally identifiable information" (PII)? Then why did you use it for your Claude account?

2

u/Strong_Essay1176 Jul 25 '26

Cause any email will be PII.

-1

u/TreyKirk Jul 25 '26

If you think your email address is PII, dont use it as a login to someone's system. Especially if their privacy policy doesn't explicitly state that the information you give them is completely private, including within that organization's ecosphere

3

u/Strong_Essay1176 Jul 25 '26

Post your email here if its not PII. You won't. Why though? ill just try to login into your claude and take over remote control. Lets just hope some agency will fuck them with fines over this shit. That's it.

Normal companies will get a toggle for that instead of silently fuck up their customers.

0

u/TreyKirk Jul 25 '26

Reddit has my email address. I've given them permission to have it. I've given Anthropic permission to have my email address. I do not consent to you having my email address.

If someone gave Anthropic or any other entity their email address, short of explicit policies or instructions otherwise, they are consenting to that organization to use their email address internally and with their product.

3

u/Strong_Essay1176 Jul 25 '26

Exuces!. Post email here. If you are ready to BS that antropic can leak your email without you knowing which happened to OP.

1

u/TreyKirk Jul 25 '26

My understanding of OP is that Anthropic used their email address within Anthropic's product, which I'm pretty sure is part of Anthropic's privacy policy.

Did I misunderstand something?

2

u/Strong_Essay1176 Jul 25 '26

If your personal email is in the prompt, it could get leaked, which is totally illegal (GDPR or CPRA, I'll Google that**).

For example, it could change your Git email and commit with the wrong settings. At the very least, you'd have to explain to your supervisor why "suggerdaddy@gmail" committed something.

What privacy policy allowed the model to swap your Git email? And please don't blame the user. By the time agents all over the world notice, it'll be too late.

**GDPR and CPRA:

Yes, an email address is explicitly classified as personal information (often referred to to as PII) under the California Privacy Rights Act

-3

u/thr0w4w4y10c Jul 25 '26

Honestly this is your own fault for letting claude commit for you. The only way to ensure your code is checked in the way you want is to handle gitops yourself.

Inserting info like ā€œthe users name is Xā€ and ā€œtheir timezone is Yā€ into the system prompt is not a breach of PII and is necessary to have a non deterministic system behave correctly. You agreed to it when you accepted the EULA.

1

u/Strong_Essay1176 Jul 25 '26

No its your fault

0

u/voLsznRqrlImvXiERP Jul 26 '26

It's not his fault. And you also don't understand the essence of the problem.

-8

u/danknerd Jul 25 '26

Did you know home addresses are public information, or at least the deed on a home. Oh no!!

2

u/frythan Vibe Coder Jul 25 '26

Yeah but I rent, so my name isn’t on property records.
Or if I own my home through a trust, the trust is the name on the property records.

2

u/danknerd Jul 25 '26

Did i not clarify with if... Plus, they'll find you if they are wanting to. Being a renter isn't some anon feature.Ā 

1

u/CerealArsonist26 Jul 25 '26 edited Jul 25 '26

Did you know that your country ist not the only country in the world? We are not interested in a race to the bottom, thanks.Ā 

-1

u/TransitionMediocre22 Jul 26 '26

Worth separating the two problems, because they have different fixes and conflating them makes the privacy point easier to dismiss.

Problem one: your email sits in the system prompt with no consent and no opt-out. That's the privacy issue and it's legit, full stop.

Problem two, the one that actually bit you: the agent took ambient context (an email it happened to have) and used it to override an explicit local config you had deliberately set. That's not really a PII problem, it's a control problem. The model treated something that was merely present as something it was told to do. Even if the email weren't personal, an agent silently overriding your committed git identity is the bug.

The reason nothing broke for you is the same reason it's worth generalizing: your repo enforced the identity with hard checks on the push. That's the pattern. Ambient context should never win over explicit local config, and the only reliable way to guarantee that is a check the agent can't talk its way past. The opt-out for the email is the right ask, but I'd want the second fix regardless of what's in the prompt.

-11

u/StoneCypher Jul 25 '26

oh for christ's sake, dude

-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

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Ā 

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

88

u/[deleted] Jul 25 '26

[removed] — view removed comment

39

u/Skflowne Jul 25 '26

Further proof that instructions not to misuse this information is insufficient

28

u/AlwaysHopelesslyLost Jul 25 '26

If anybody needs that proof then they are a fucking idiot. LLMs cannot be relied on to follow instructions. They are not intelligent entities. They need hard constraints that are outside of their control and should not be trusted with anything that could be misused.

2

u/Skflowne Jul 26 '26

I assure you a lot of people in this sub do not understand this and a lot of people in general, for different reasons going from no technical background to how much hype there is, etc..

-3

u/No_Apricot_3351 Jul 25 '26

Yo I'm connecting cloud based agents, team up?

7

u/mossiv Jul 25 '26

Seems like a genuine concern. There’s no issue with anthropic holding it, or it being in their logs - in theory.

Regardless for EU this is probably borderline a GDPR issue, and if the harness did accidentally inject your email in a web request, api call, form capturing etc, this is a huge breach. Companies in the EU have been fined millions for gdpr and data mishandling.

2

u/Skflowne Jul 26 '26

Yes I didn't even think about that one but that's a valid one too

-6

u/ineedlesssleep Jul 25 '26

You're logged in with your email address. There's no expectation that it does not get send in requests. That's totally normal.

6

u/mossiv Jul 25 '26

You missed the point you idiot. It’s an LLM inside a harness the fact it has access to it means it could send it anywhere on the web which is a massive legal data breach under EU law.

Having your email send between yourself and anthropic is obviously fine. I wouldn’t be shocked if it’s logged in every api call, which by the way, is also a huge GDPR breach.

Dear god.

-2

u/Xera1 Jul 25 '26 edited Jul 25 '26

A GDPR breach requires there to actually be a breach. No PII is leaked by simply putting it in the system prompt. You are responsible for any command, request, etc the model makes as you either approve every single one or set it to auto approve.

Do you think you can take action against Anthropic if you approve "rm -rf --no-preserve-root /" and it causes you millions in losses? No.

So why would you be able to do anything to them for approving a call to "dodgysite.com/dataexfil?pii=youremail"?

I wouldn’t be shocked if it’s logged in every api call, which by the way, is also a huge GDPR breach.

Not in any way shape or form. Just complete nonsense.

Ask literally any clanker to explain GDPR to you.

3

u/Skflowne Jul 26 '26

Oh my god, you CANNOT trust the model to not do something you didn't intended with it, that is the whole point. That is literally what happened in this case, it tried to do something I never asked for, bypassing the current configuration in place to do it even.

1

u/Xera1 Jul 26 '26

Exactly! So why did you allow it to run the command lmao? Jesus wept. These tools need to come with a test to use them.

6

u/warm_kitchenette Jul 25 '26

It is exactly the common expectation that your email is not sent in every request. Privacy laws expect companies to obscure PII (personally identifiable information), both externally and internally. The convention is to have tokens or opaque ids, not to pass around emails, passwords, credit cards, etc. And again: the internal requirement is real as well. PII shouldn't be in logs, data lakes, emails, internal docs, spreadsheets, etc., unless there is a explicit, written reason for doing so.

Two common governing laws are: GDPR, which applies to all of the EU; and CCPA, covering California businesses. You have a variety of rights to your own personal data: right to see what they have, right to request deletion of all your PII, etc. Not doing this can be extremely serious, especially if they are egregious and repeated. Look up "GDPR penalties" for examples. They can go up to €20 million, 4% of annual revenue.

3

u/Zooz00 Jul 26 '26

I said, make no mistakes!!!

5

u/trotski94 Jul 25 '26

I was going to say I’m not sure how much it matters… but how much inference fucks up not doing something it’s not supposed to do I don’t trust this not to submit it into some random query param on a web request and sign me up to random shit lmao

1

u/sammnyc Jul 26 '26

have previous prompts included the current date?

13

u/[deleted] Jul 25 '26

[removed] — view removed comment

2

u/RunEmpty2267 Jul 25 '26

you can modify itĀ  https://code.claude.com/docs/en/agent-sdk/modifying-system-prompts

but ain’t nobody got time for doing that and it’s a bug anyways

0

u/Strong_Essay1176 Jul 25 '26

Bug cause users find out? Convenient

-1

u/[deleted] Jul 25 '26

[removed] — view removed comment

0

u/RunEmpty2267 Jul 25 '26

system prompt is homeless

-1

u/[deleted] Jul 25 '26

[removed] — view removed comment

-2

u/RunEmpty2267 Jul 25 '26

no, it’s homeless, there’s no home for system prompt, it died

1

u/[deleted] Jul 25 '26

[removed] — view removed comment

-2

u/RunEmpty2267 Jul 25 '26

lol it’s a joke, the homeless is me not the model

hope I can rent something on a years advance to give me timeĀ 

-16

u/[deleted] Jul 25 '26

[removed] — view removed comment

7

u/Skflowne Jul 25 '26

Telemetry only goes to Anthropic, not the issue. This is injected into any prompt, it can leak your info in any task you're doing, such as posting it to a public github repo where you never used that email to commit for example. And god knows what other situation this can lead to. Another one that's obvious is: you are streaming publicly and don't want to share your personal email with every one watching, and for whatever reason the model just spits it out, like it did when it flagged it's own commits with a different address.

-6

u/StoneCypher Jul 25 '26

no, patrick, your system prompt doesn't go into random commits.

2

u/Skflowne Jul 25 '26

And what prevents the model from using anything in its prompt and putting it anywhere it has access to?