Who in your business should have an AI coding agent?
Somebody in your business has probably built a small tool with an AI coding agent this year. Maybe a report that pulls figures from two systems, or a script that tidies a spreadsheet every morning. The agent wrote the code, ran it, and fixed it when it broke. The person who asked for it may never have written a line of code in their life.
That is the appeal, and it is real. It also means people who have never used git, the tool developers use to track changes and publish code to sites such as GitHub, are now creating software and the files that go with it. Some of those files hold passwords. The people least familiar with what gets published are the ones most likely to publish a file they did not know existed.
Two stories from the past fortnight show both halves of that.
A bank decided who gets the tools
Goldman Sachs has restricted Anthropic's Claude Code and Microsoft's GitHub coding tools to its engineers, according to internal guidance updated in October and seen by Bloomberg News. Traders and bankers who had been using them to monitor client trading flows and model positions lost access. "Strats", who sit between trading, research, and software engineering, kept it.
As recently as July, Goldman's chief information officer was praising "vibe coding" by non-technical staff, who built tools with AI and handed them to the firm's 12,000 engineers to improve. A Goldman spokesperson told Bloomberg that the bank assesses factors "including productivity and risk management" before deciding who keeps a tool for the long term.
That is the stated reason, and it is all we know. Goldman has not linked the decision to any particular incident. Nor should you read it as a template: a regulated bank with 12,000 engineers is not a 40-person firm. What is worth copying is that it made a choice, rather than letting the tools spread by default.
A settings file that remembers your passwords
The second story shows what can go wrong when nobody makes that choice.
By default, Claude Code asks before it runs most commands on your computer. One of the options is "Yes, and don't ask again". Pick it, and Claude Code saves an approval rule in a file called .claude/settings.local.json inside the project, so the same command runs without asking next time. Anthropic's permissions documentation describes this behaviour.
Sometimes the saved rule is a pattern, such as "any test command". Sometimes it is the exact command, word for word. If that command included a database password or an API key (a secret that lets one piece of software use another's service), the secret is now in the file, in plain text.
Researchers at the software security company Apiiro searched public GitHub for this file and, as The Hacker News reports, found 104,185 copies. Of those, 1,122 held at least one secret, 1,379 different secrets in all. They included 379 database passwords, 43 remote logins to public servers, 42 tokens for code-hosting services, and 23 Amazon Web Services keys. Apiiro did not test whether the secrets still worked, but one company it notified confirmed its key had been live. In half of the affected repositories, the file had been public for at least 217 days.
Claude Code does try to keep the file private. Its settings documentation says the first time it writes the file, it tells git on that computer to ignore it. That protection lives on one person's machine. It does not travel with the project, it does nothing for a file already published, and it does not help someone who created the file by hand. In 539 of the 1,105 repositories the researchers traced, a commit that listed Claude as a co-author had changed the file.
Common secret scanners missed many of these. Neither of the two widely used free scanners caught 215 of the 1,122 files, mostly because a password typed into a command looks like an ordinary word.
What to decide
This is a governance question before it is a technical one. Three decisions are worth writing down.
- Who gets an AI coding agent. Developers, yes. For everyone else, decide case by case, and make sure each person outside the development team has someone technical they can ask. The agent runs with that person's own access, so a finance user's agent can reach finance data.
- Who owns what they build. A tool someone builds for daily use should have a named technical owner before it touches client or financial data.
- Secrets never go into prompts or approvals. No passwords, keys, or tokens typed into an AI tool, ever. Say it in your AI policy and in the half-hour of training that should come with access.
What to fix
For whoever looks after your code:
- Search your GitHub organisation for
.claude/settings.local.jsonand.claude/settings.json, including git history, where deleted files still live. - Rotate first, clean up second. Change every password, token, and key either file has ever held. Deleting the file does not remove it from history or from forks.
- Stop tracking the file with
git rm --cached .claude/settings.local.json, then add it to the project's own.gitignoreand to your organisation's repository templates, so the protection travels with the code. - Check local copies too. Open the file on each machine and delete any rule that contains a secret. It can also end up inside zip files, container images, and synced folders.
- Keep secrets out of commands. Refer to them as variables from a secrets manager, so the saved rule holds a name, not the value. Approve patterns rather than one-off commands.
- Teach your scanner about agent folders. Treat
.claude/and similar folders like.envfiles, and make sure scanning catches passwords inside commands, not only known key formats.
How Steelwise can help
Deciding who gets AI tools, writing the rules that come with them, and checking what has already leaked is the kind of AI advisory work we do. Get in touch.