
I Told My AI "Never Touch Auth" — It Did Anyway. Here's How I Fixed It.
Last month, I was building a SaaS app on Bolt.new. Session 1 went great — auth system working, Supabase connected, everything clean. Session 2, I asked Bolt to "add a dark theme." Bolt added the dark theme. It also rewrote my auth system , switched my database queries, and broke 3 pages I didn't ask it to touch. Sound familiar? The Problem Nobody's Solving AI coding tools now have memory. Claude Code has auto-memory. Cursor has Memory Bank. Lovable has Knowledge. .cursorrules and AGENTS.md exist. But memory without enforcement is dangerous. Here's what actually happens: Your AI remembers you use Supabase — then switches to Firebase because it "seemed better" Your AI remembers your auth setup — then rewrites it while "fixing" a bug Your AI remembers your constraints — then ignores them when they're inconvenient The stats back this up: 66% of developers say AI gives solutions that are "almost right, but not quite" (Stack Overflow 2025) 45% of AI-generated code contains security vulnerabi
Continue reading on Dev.to
Opens in a new tab


