Notes on coding agents and the pages they leave behind, on moving between notes apps, and on the plain mechanics of keeping what you think. Written and published from a Sumibako vault.
Claude Code put your email in a User-Agent and passwords in settings.local.json: what to check today
Claude Code put account emails in User-Agent headers, and Don't ask again left passwords in public repos. What happened, what is fixed and what to check.
Prashant Shaw
Founder, Sumibako
7 min read
Two Claude Code stories ran in the same week of November, and neither was an attack. In the first, Claude Code put signed-in users' email addresses into the User-Agent of web requests it made on their behalf. In the second, a security firm found 1,122 public GitHub files holding passwords that "Yes, and don't ask again" had saved. Both came from Claude Code being helpful in a way nobody asked for, which is the most Claude Code sentence I have written this year.
This post is what happened, what Anthropic has changed so far, and the few commands that tell you whether either one happened to you. Everything was checked on 11 November 2026 against the GitHub issue, Anthropic's changelog and docs, and the Hacker News threads where the Claude Code team answered.
📮 Your email, in a stranger's User-Agent
On 5 November a user opened issue 107757, "Privacy violation in User-Agent header". Their complaint: "I receive dozens of scam emails per day because claude code divulged my email to arbitrary 3rd parties in the User-Agent request header while conducting web searches without my permission." By 11 November it had 1,067 reactions and 117 comments, and the Hacker News thread passed 1,600 points.
Nobody wrote a feature that mails your address to websites. Lydia Hallie, who works on Claude Code, explained it on Hacker News: users had complained that Claude invented names for things like @author tags, "So we added the account email in the model's context for signed-in users." Then Claude wrote its own curl
is one: "Scripts should use an informative User-Agent string with contact information, or they may be blocked without notice." Another member of the team
plainly: "Claude apparently tends to decide that this policy is worth following". It is very polite. It is also polite to every scraper that logs headers.
One commenter searched their own transcripts and found 53 tool calls with their address in a User-Agent, across eight sessions. Another pointed out that "the email is only half of the User-Agent leak": the made-up product names in those headers carried project and client names too.
2.1.317 (3 November) "Added a check that asks before a web or shell tool call sends your account email address to the network". It is a built-in plugin, on by default.
2.1.319 (6 November) "Changed the account email check to refuse only a shell command that holds your email and names a User-Agent, without asking". Several people in the issue reported test commands getting through on 2.1.318 and 2.1.319, so treat it as a net with holes.
The real fix is promised, not shipped. On 6 November Hallie wrote: "We're removing the account email address from the context Claude Code gives the model." It was due in a release "which should arrive early next week". 2.1.321 and 2.1.322 came out on 9 and 10 November, and neither changelog entry mentions it. Until then, in her words, the check "still doesn't prevent all cases, like when Claude writes a script and runs on its own."
She also wrote: "Again, this should not have happened, and we should've caught this behavior earlier." I have nothing to add to that, which is rare for me.
🔑 Passwords in settings.local.json
The second problem is older than its headline and much less funny. When Claude Code asks to run a command and you pick "Yes, and don't ask again", the settings docs say "Claude Code saves that approval as an allow rule in .claude/settings.local.json". The permissions docs add that "Bash rules match the whole command text". So if the command was psql with a password in the connection string, the password is now in a JSON file in your project.
Apiiro went looking for those files on GitHub. On Hacker News its researcher wrote: "Our 1,122 files are all in public repos." And: "In 539 of the 1,105 repos we traced, a commit co-authored by Claude itself changed the file."
How does a local file get committed? The docs say that when Claude Code first writes it, "it adds **/.claude/settings.local.json to your global git excludes file". Global is the catch. Apiiro's answer: "It happens on a new machine or container without the global ignore, in a copied project folder, or once the file has been committed, since ignore rules don’t apply to tracked files." Your laptop knows to ignore the file. The CI runner, your new laptop and your colleague's clone do not.
Boris, from the Claude Code team, answered that ".claude/settings.local.json is meant to stay local", that "Historically Claude Code has not done secret scrubbing", and that "we are looking into what we can do to prevent this". He also said "Permission rules are old hat" and recommended auto mode, plus: "Regardless of what agent you use, you should have secret scanning enabled." As of 11 November no release mentions a fix for this.
🧾 What to check in your own repo
Run these at the root of each repository you use Claude Code in. They read only your own files.
1️⃣ Is the file tracked right now?
2️⃣ Was it ever committed? Deleting it later does not take it out of history.
3️⃣ What is in it? Look for anything that looks like a credential, including a password inside a URL.
⚠️WARNING
If step 2 or 3 found anything in a repository anyone else can read, rotate that secret first. Rewriting history afterwards helps, but every clone, fork and cache already has it. GitHub's guide to removing sensitive data says the same.
4️⃣ Untrack it, and ignore it in the repository, not only on your machine:
5️⃣ Keep secrets out of the commands you approve. Put the password in an environment variable or a config file the tool reads, so the approved command has nothing worth stealing. And turn on GitHub's push protection, which stops a known secret format at git push.
For the email, two checks. Update first: claude --version should say 2.1.317 or later, and 2.1.321 is worth having anyway, because it also "Fixed MCP OAuth requests sending secrets such as refresh tokens to another host when a server redirected them" and "Fixed a case where a read-only Bash command ran outside the sandbox without a permission prompt". Then search your own transcripts for your account address, replacing the example with yours:
A non-zero count is not proof of a leak, since your address may simply appear in your work. Open the files it lists and look for User-Agent, curl -A or mailto: next to it.
🧮 The third headline is a bill, not a leak
A gist that reached 591 points says: "Every ~30 seconds, Claude Code re-sends each background agent's full transcript to the model to fill that agent's status line in the agents panel." That transcript goes to the same model your session already uses, so nothing reaches anyone new. It does cost you: issue 86879 measured "22.7% of all API requests in the session" for those status lines.
The issue was closed on 9 November with a comment saying Anthropic has optimised "these summaries so that they consume 99% less" and added an environment variable, CLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES, to turn them off. I could not find that variable in the environment variable docs or the changelog yet, so check before you rely on it. The gist's own fix is a script preloaded into every Claude Code process. In a week about trusting what runs inside your agent, I would wait for the official switch.
The password story is about a file landing in the project that was never meant to travel with it. I built Sumibako so an agent's plans and notes go to a private page instead of a file in the repo, so weigh this paragraph accordingly. Its command-line tool keeps its token in ~/.sumibako in your home folder, not in the project, and the token can be revoked from the app. It does nothing about User-Agents or approved commands. The checks above are still yours.
Claude Code learned to be polite to Wikipedia and generous with your password. The next release is meant to teach it some discretion.
Which notes apps work inside ChatGPT, Claude and Gemini, app by app
Notion, OneNote, Google Keep, Evernote, Obsidian, Apple Notes, Hjarni and Sumibako, checked in ChatGPT, Claude and Gemini: what connects, and what it needs.