Claude Code Sent Your Email
An ex-Amazon software engineer once gave me a system design tip I keep coming back to. Start from the customer and walk your way back. This week I put it to work in a post, growing a Django link shortener from what its users do all the way down to Redis and nginx. Turns out the customer never asked for microservices.
This issue covers two weeks. Inside, Claude Code sending your email address to websites, Claude’s new message threads, GPT-6 Cyber, a model editing another model’s weights, the agent that reviews my plans, an index that took one Django app from 714 to 1,260 requests a second, three tools, a fix for passwords in your repo and one app idea.
Talk of the Town
On November 5, a developer opened a GitHub issue saying Claude Code had put their account email address in the User-Agent header when it searched the web. The User-Agent is the line every request carries to tell a website which program is calling. So every site those searches touched could see whose account was asking. The reporter says a flood of scam emails followed.
It reached 1,593 points on Hacker News. It touches something every Claude Code user has, an account email, and nobody was asked before it went out.
Anthropic answered the same day. A contributor said a built-in mod called cc-plugin-privacy blocks it in v2.1.317 and later. It’s on by default, and you can turn it off in /plugins. The v2.1.317 release notes from November 3 add a check that asks before a web or shell tool call sends your account email to the network. The report came two days later, on v2.1.318, and the thread doesn’t explain that gap.
People aren’t happy with the answer. The reporter wants the email taken out of the tool entirely, not left as a setting, and says their company is moving to Pi with OpenRouter. Commenters argue it’s likely a GDPR violation. On r/ClaudeAI, a post used the bug as its example of why 15,766 of the 16,060 open Claude Code issues, over 98%, have nobody assigned. The issue is still open.
I haven’t noticed anything on my side. Still, my email has no business in a User-Agent header. A mod you can switch off is a patch, not a fix. Take it out of the harness.
This Week in AI
Claude message threads
Claude’s API added message threads in beta on November 2. Normally every turn of a chat sends the whole conversation again. With a thread, the API keeps the conversation on its own servers, so each request sends only the new messages, which means smaller requests and a faster first reply. A thread expires 5 minutes after its last request.
If you run long chats or agent loops, this cuts the work every turn repeats. It’s not covered by zero data retention, though the conversation stays in memory and is deleted within an hour of its last use.
Worth a try, but it’s beta and the server holds your conversation. Test it on a side project before you move a real app’s chat onto it.
GPT-6 Cyber
OpenAI released GPT-6 Cyber on November 5, a model for finding exploitable security bugs and writing fixes, trained to stay within the scope it’s authorized for. Only approved customers in OpenAI’s Daybreak Red program can use it for now. OpenAI says it found 81 unknown high-severity flaws in Firefox, and wrote working exploits for 948 Linux kernel bugs. OpenAI also rates it “Critical” for cybersecurity under its own safety framework.
Models that find bugs this fast will find them in your dependencies too, whoever is running them.
81 Firefox flaws and 948 kernel exploits are OpenAI’s own numbers, and the model sits behind an approval gate. Watch it, patch your Firefox and kernel, and don’t plan around it yet.
A model that edits another model’s weights
MIT CSAIL researchers posted that GPT-6 Astra edited 0.016% of a small Qwen model’s weights, the numbers a model learns in training, with no training at all. Its MATH-500 score went from 7.9% to 48.1%. Matthew Honnibal, who made spaCy, replied that only the tiny networks were read from raw weights. The Qwen result wrote Python and ran the model.
Simon Willison then got Qwen 3.8 27B on his laptop to name 3 of 4 games from a small network’s weights, at about an hour a try. It’s research, not something to build with on Monday. Still, it’s the week’s second-biggest topic.
The headline says it reads weights. The Qwen result wrote Python and ran the model. Still impressive, just not the same trick. Read the rebuttal before you share the post.
Workflows & Hacks (Steal This!)
Steal #1. An agent that reviews every plan before Claude writes code
What it is. A Claude Code subagent, a helper with its own instructions that starts fresh, without your chat. Before Claude writes any code, it reads the plan against your real codebase and reports what will break, which claims are false and what nobody checked. It can’t edit anything. It ends with one verdict, safe to implement, safe with changes, or do not implement as written.
How to install. Nothing to install. Paste the first prompt below into Claude Code. It asks where to save the agent, then writes it on the same rules mine follows.
How to use it. Add the second block to your ~/.claude/CLAUDE.md. Every plan then goes through the agent before Claude starts coding. What mine catches most is plans that call something “already verified” or “a one-line change” when the code says otherwise.
The artifact.
Create a Claude Code subagent called plan-adversary. Before writing it,
ask me one question: save it for all my projects (~/.claude/agents/) or
only this one (.claude/agents/)? If a file with that name already exists
there, stop and tell me.
Its job: review an implementation plan against the real codebase before
any code is written, and return a verdict with evidence. It never edits
files.
Frontmatter: a description telling Claude to use it before implementing
any multi-step plan or proposed fix, and whenever someone calls a change
safe, a one-line change, or already verified. Tools: Read, Grep, Glob and
Bash. Use the most capable model.
Instructions it must follow:
- It starts without our conversation, so it expects the plan (text or
file path), the repo path, my goal, and decisions already made. It
treats those decisions as fixed unless they break something.
- Read the repo's rules first (CLAUDE.md files, CONTRIBUTING, the PR
template), then every file the plan names.
- Treat every claim in the plan as a guess until a file proves it: line
numbers, "already the case", "nothing else uses this", "a one-line
change", and any claim about how a library behaves.
- Find every consumer of anything the plan changes (functions, routes,
env vars, columns, config keys, jobs) with Grep, including tests,
scripts, CI, workers, cron jobs and webhooks.
- Check failure paths, and whether rollback really undoes things like
migrations, written data or sent emails.
- Flag any planned test that would still pass if the change were broken.
- Use Bash only to read (git log, git diff, ls). Never run tests, builds,
migrations or installs. List those as gaps instead.
- Before reporting a Blocker, try to prove it wrong. No style comments.
Approving a sound plan is a normal result.
- Output, under about 1,000 words, leading with one verdict: safe to
implement, safe with changes, or do not implement as written. Then
these sections, each finding tagged Blocker, High or Medium with
file:line and the quoted code: WILL BREAK, CLAIMS THAT ARE FALSE,
UNVERIFIED, NOT ACCOUNTED FOR, VERIFICATION GAPS, OPTIONAL, CHECKED
AND SOUND, and MINIMAL CORRECTION (the smallest change to the plan
that clears every Blocker and High).
When it's saved, show me the file and tell me how to call it.
- Before ExitPlanMode, in every repo, run the plan-adversary agent on
the plan.
- It can't see this conversation. Brief it with: the plan file path,
the repo path, my goal in one sentence, decisions already made (so
it doesn't relitigate them), and any facts it can't find in the repo.
- Fix every Blocker and High it reports, list what's still UNVERIFIED
in the plan, and put its verdict in one line of the plan. Its
OPTIONAL items are suggestions: don't chase them unless they're
cheap and clearly right.
Watch out for. It always finds something. Fix every Blocker and High and treat the OPTIONAL list as suggestions, or you’ll chase noise all afternoon. Claude writes the agent fresh each time, so yours won’t match mine word for word.
Steal #2. An index that fits the question
What it is. In my system design post, a stats page asked PostgreSQL for one link’s clicks in the last 7 days. Django’s automatic index found every click for that link, then threw most away. One index on link and time made the query 6 times faster.
How to use it. Run EXPLAIN ANALYZE on the slow query. If you see “Rows Removed by Filter”, add an index whose columns match the question, then make the migration.
The artifact.
class Meta:
indexes = [
models.Index(fields=['link', '-created_at'], name='click_link_newest_idx'),
]
The query went from 31.9 ms to 5.1 ms, and the whole app went from 714 to 1,260 requests a second.
Watch out for. A plain index locks the table against writes while it builds. On a busy table, use Django’s AddIndexConcurrently.
Builder Radar
- sandbox-mcp gives you, or your AI agent, a fresh Windows 11 machine in Windows Sandbox, then throws it away. It’s an MCP server and a CLI, MIT. “Works on my machine” gets tested on a machine that isn’t yours.
- OmniDiff is a diff tool in Rust that understands what it’s diffing, from code and config to images, PDFs, archives and fonts. It’s AGPL-3.0 with a commercial license. Because “Binary files differ” has never helped anyone.
- devvm gives every project its own VM with that project’s toolchain, built on Lima, for macOS and Linux, MIT. It runs Claude Code, Codex, opencode and pi inside. A coding agent can wreck its own VM instead of your laptop.
Fix it before you ship
Your passwords are in a file you didn’t know you committed
A lot of AI-built apps have a password or API key sitting in a committed file. When Claude Code asks to run a command and you pick “Yes, and don’t ask again”, it saves that command, key and all, in .claude/settings.local.json. Apiiro found passwords this way in 1,122 public GitHub files. Claude Code keeps that file out of git through your machine’s global settings, not the repo’s own .gitignore, so a copy made by hand isn’t covered.
- Never paste a key into a command. Use its variable name, like
$STRIPE_KEY. - Keep keys in
.env, and add.envand.claude/settings.local.jsonto the repo’s.gitignore. - Keep production keys only in your host’s dashboard.
- Run a secret scanner before you push, like GitHub push protection or gitleaks.
- If a key ever reached a commit, replace it. Deleting the file doesn’t delete it from history.
Check this repo for leaked secrets before launch. Change nothing until
I approve. First list every file, tracked or in git history, that holds a
password, API key, token or connection string, including
.claude/settings.local.json and .env files: file | line | what kind of
secret | committed (yes/no). Never print a secret itself. Then add .env
and .claude/settings.local.json to .gitignore, move every secret in the
code into environment variables, and tell me exactly which keys I must
replace with their providers because they reached a commit.
App Ideas
Here’s an app idea. Free trials that quietly turn paid, and subscriptions that raise their price without a word, cost real money because nobody reads their statement line by line.
I want an app that reads your bank or card statement, CSV or PDF, finds every recurring charge, flags trials about to convert and quiet price hikes, then drafts the cancel email. It’s for anyone who has paid for a gym they forgot existed.
How I’d build it with Claude. Claude reads the statement and names each merchant. Plain code groups the charges, works out every total and price change, and checks the dates. Claude drafts the cancel emails from those numbers.
Interview & Sketch prompt.
I want to design a "subscription watchdog" app. It reads my bank or card
statements (CSV or PDF), finds every recurring charge, flags free trials
about to turn paid and price increases since the last charge, and drafts
cancel emails. All totals, dates and price changes are computed in code,
never estimated by the model. Before sketching anything, interview me one
question at a time about my own setup: which banks and cards I use, what
formats they export, how many statements I'd upload, how I want alerts,
and what privacy I need for financial data. Keep going until you can
design around my real situation. Then sketch an architecture: parsing
CSV and PDF statements, normalizing merchant names, detecting recurring
charges and their cadence, detecting trials and price hikes, storing
data safely, and drafting cancel emails. Give me the answer as a
numbered list of implementation phases.
Demo/Mockup prompt.
Build a dummy-data prototype called "Leak", an app that reads bank and
card statements and finds every subscription you're paying for.
## Design & Theme
- Dark theme, near-black background, off-white text
- One accent color for "needs action" and nothing else colorful
- Clean sans-serif UI font, monospace for amounts and dates
- Minimal and calm. No gradients, no glow, no emoji
- Works on a phone and a laptop
## Pages
### 1. Overview (/)
- Monthly total spent on subscriptions, yearly total, and change since
last month
- "Needs action" list: trials converting in the next 7 days, price
increases, charges you haven't used (marked by you)
- Upload button for CSV or PDF statements
### 2. Subscriptions (/subscriptions)
- Table: merchant, amount, cadence (weekly, monthly, yearly), next
charge date, first seen, price change since first seen
- Filters: active, trial, price went up, marked for cancel
### 3. Subscription Detail (/subscriptions/:id)
- Charge history as a small bar chart and a table of every charge
- Price change timeline
- "Draft cancel email" button that shows a ready-to-send email
### 4. Statements (/statements)
- Uploaded files: bank, period, rows read, recurring charges found
### 5. Settings (/settings)
- Alert timing, currency, which accounts to include
## Important Notes
- Prototype with dummy data only, no real backend, no real bank data
- Hardcode realistic data: 14 subscriptions (streaming, music, cloud
storage, a gym, two app trials, one price increase), 6 months of
statements, realistic merchants and dates
- Make navigation between the five pages work
- Make "what am I paying for, and what should I cancel" obvious at a
glance
Build it? Hit reply.
Build & Experiment Log
- Building. Tradion Snipe is back. Drop in a chart screenshot and get a report with a Buy, Sell or Hold call, with every number worked out in code. A Chrome extension sends the chart on your screen in one click.
- Building. A new $20 Basic plan with a 7-day trial, for traders who want Tradion at a lower price, and Flow Chat, a chat about what Tradion Flow shows, on every plan.
- Tried. htmx 4 on Flask, and Locust load tests on a Django app I grew one bottleneck at a time.
- Broke. Redis, on purpose. Every request failed until I added fallbacks. Slow beats broken.
- Learned. Compute your math in code instead of letting the AI decide, because it will make numbers up.
- Next week. Polishing Snipe and Flow Chat for Basic users.
From the Blog
- Comprehensive Docker Tutorial for Beginners (Step by Step). A Docker tutorial for beginners in 12 steps. Run containers, build images, keep data in volumes, connect an app to MySQL, use Compose and push to a registry.
- htmx 4 Tutorial for Beginners With Flask (Step by Step). A beginner htmx tutorial on htmx 4 and Flask. Build a reading list with live search, inline edits, deletes, 422 errors and CSRF, tested in Chrome.
- Sklearn Linear Regression on NFL Combine Data (Step by Step). Sklearn linear regression step by step on real NFL Combine data. Predict 40-yard dash times, score the model and replay two mistakes from my class code.
- Learn System Design by Growing a Django App (Step by Step). Learn system design by growing one Django link shortener in 12 steps, from requirements to caching, queues and load balancing, load tested after every change.
P.S. Forward this to a friend who builds. Read it on the web at Claude Code Sent Your Email.
Thank you for reading!
Hit reply and tell me, what are you building?