Ingenious AI · AI coding-agent hygiene · Free self-check
Did “don't ask again” save a secret into your repo?
When you approve a Claude Code command and choose "don't ask again," it saves the exact command string as an allow rule in .claude/settings.local.json — password included, if the command had one. Security firm Apiiro downloaded every public copy of that file on GitHub: 104,185 copies, and 1,122 held a real secret (report 5 November 2026; The Hacker News). Anthropic fixed the behavior in Claude Code 2.1.323 (12 November), keeping secret-looking rules session-only — but files already committed stay committed. Paste your own settings file below and check it.
What this does — and does not do
Does: parses the settings file you paste, inspects every allow rule for embedded secrets (database passwords, bearer tokens, API keys, sshpass passwords, cloud keys) and risky permission shapes, and checks your pasted git ls-files / .gitignore for whether the file is tracked. Findings show the rule and the kind of secret — the secret itself is redacted in the output and never leaves your browser.
Does not: look at your GitHub, your history, or anyone else's repo. Git history needs the commands below — a secret deleted from today's file can still live in yesterday's commit. The badge at the end attests that you ran this self-check on the file you pasted; it is not an audit and we do not verify it.
Check your file
Your self-check badge
Markdown for your README — it links back to this checker so anyone can re-run the same check:
The badge says a self-check was run on the date shown, with no secret found in the pasted file. It does not cover git history, other files, or other machines — keep it honest.
Then audit the history — five commands
A clean file today proves nothing about history: in the median affected repo the file had been public for 217 days. Run these in your repo:
git ls-files | grep -n "settings.local.json" # is it tracked at all?
git log --all --oneline -- .claude/settings.local.json # every commit that touched it
git log --all -p -- .claude/settings.local.json | grep -iE "password|token|api[_-]?key|bearer" | head
grep -rn "settings.local" .gitignore # does the repo itself ignore it?
git log --all --oneline -- .claude/settings.json # the shared team file, too
If a secret ever appears in history: rotate it first — deleting the file does not unpublish history, forks, or clones. Then purge history (git filter-repo) if the repo is shared.
Why the ignore didn't save people
Claude Code adds the file to the developer's global git excludes when it creates it — protection that lives on one machine, under one user account, and never travels with the repo. Move machines, work in a container, or let the agent itself commit (Apiiro traced agent-co-authored commits touching the file in more than half the affected repos) and the file ships. The repo-level fix is one line in the project's own .gitignore: **/.claude/settings.local.json. Apiiro also ran gitleaks and TruffleHog across the corpus: about one in five real secrets were flagged by neither — which is why this checker looks at the rule shapes themselves, not just generic secret patterns.
Sources
Apiiro's findings, the 2.1.323 fix, and the audit — SSD Nodes summary of the primary report · Claude Code leaks secrets in 1,122 public GitHub repos (via The Hacker News)