What happened

Anthropic's AI coding assistant, Claude Code, can save a developer command that has been approved. The Hacker News reported that when a user selects "Yes, and don't ask again", the assistant can save the command, word-for-word, including any secret, in a project settings file.

The reported risk

The report adds that passwords and API keys typed into approved commands are sitting in public GitHub repositories, where anyone can read them. Software security company Apiiro said yesterday that it found 1,122 public copies.

For developers, the concern is that a public GitHub repository is readable by others. If a saved command contains a password or API key, that information could be exposed.

What remains unclear

The available details are limited. The report does not provide more information on how the files became public or what the 1,122 copies contain. The practical risk for developers therefore remains unclear.