How to Keep Secrets Out of .claude/settings.local.json When "Don't Ask Again" Saves a Token as an Allow Rule
Choosing "Yes, and don't ask again" on a Bash command with an inline token used to write that token into .claude/settings.local.json as an allow rule. What Claude Code 2.1.323 changed, how to find and clean rules that already hold a credential, how to tell if the file is tracked by git, and a tested PreToolUse hook that stops Claude from inlining tokens in the first place.