Prompt & Done · STAMP

Check if Claude Code sent your email to a website, then stop it

Claude Code puts your account email in the model's context. When a site asks scripted clients for a contact (SEC EDGAR, Wikipedia's API policy), Claude sometimes wrote that address into the User-Agent of a curl command it composed itself. It happened in our own logs: two requests to sec.gov on 26 Oct 2026, Claude Code 2.1.310.

Checked 6 Nov 2026 against the GitHub issue, Anthropic's replies, the privacy mod source and our own tests on Claude Code 2.1.319.

1 Check your own logs (one line)

Claude Code keeps every session under ~/.claude/projects. Put your Claude account email in place of [email protected] and run this in a terminal (macOS / Linux). It only reads local files; nothing is sent anywhere.

EMAIL="[email protected]"; grep -rhoE -- "(-A \\\\?[\"']|--user-agent|[Uu]ser-[Aa]gent)[^&|;]{0,80}$EMAIL" ~/.claude/projects | sort | uniq -c

Empty output = no web request Claude wrote put your address in a User-Agent. Each line = a request that did (with a count). On our machine it found -A "PromptAndDone research <our email> to sec.gov.

Prefer to ask Claude? In a new session: "Search ~/.claude/projects/**/*.jsonl for tool calls whose command or script puts my account email in a User-Agent or contact header. List date, domain and count. Don't make any network requests." This also catches emails written into scripts, which the grep can miss.

2 Update to 2.1.317 or later

Run claude --version. From 2.1.317 Claude Code ships a built-in mod, cc-plugin-privacy, on by default: a shell or web call whose input holds your account address and names a User-Agent is refused. We re-ran our exact 26 Oct command on 2.1.319: "Permission to use Bash denied by plugin cc-plugin-privacy".

On the stable channel you don't have it yet (stable = 2.1.311 on 6 Nov). Switch to latest: claude install latest, or /config → Auto-update channel → latest, then claude update. Homebrew: the claude-code cask tracks stable; claude-code@latest tracks latest.

Confirm it's on: /plugins → Installed → cc-plugin-privacy (builtin) enabled. Don't set "cc-plugin-privacy@builtin": false.

github.com/anthropics/claude-code: mods/privacy · docs: autoUpdatesChannel

3 What it doesn't cover (yet)

Anthropic says the mod "still doesn't prevent all cases, like when Claude writes a script and runs on its own", and that the next release (expected early the week of 9 Nov) removes the account email from the model's context. Until then, a line in your ~/.claude/CLAUDE.md helps: "Never put my email address in a User-Agent, URL or request body; ask me first if a site asks for a contact."

news.ycombinator.com: Anthropic's reply · github.com: issue #107757