Claude itself committed 539 out of 1,105 leaked repositories, and I find this design completely absurd.
When you click don't ask again, the CLI writes the full command including your secret keys as plaintext into settings.local.json. The only defense in place relies on a global gitignore. It does not touch the project's own .gitignore at all. If you clone the repository onto another machine, the passwords go straight to GitHub in the clear. Those 1,122 public files are paying the price for sloppy engineering. When a toolchain fails to do basic credential sanitization, giving an agent free rein to run commands is genuinely dangerous.