If you use Claude Code, Cursor, Codex, Gemini CLI, or MCP servers daily, you probably already have .env in your .gitignore and a secret scanner running in CI.
That used to be enough. In 2026, it leaves a massive blind spot right on your laptop.
While auditing my own developer workstation recently, I discovered three places where AI coding agents silently accumulate months of plaintext credentials — places that traditional git-focused secret scanners rarely inspect.
Leak Surface #1: .claude/settings.local.json
Whenever Claude Code runs a shell command and you click "Yes, and don't ask again" , it saves the exact command pattern into .claude/settings.local.json inside your repository so it won't prompt you next time.
That works great for Bash(npm test) .…