We already run a secret scanner. What is different?
+
We check whether the scanner covers the full repository history, how narrowly it suppresses false positives, and whether a failed scan can block a merge. A scanner that only reads the current working tree can miss a deleted secret that remains in history. When a false positive is silenced by excluding the whole file, any real token later added to that file is silenced with it. And if the branch rules do not require the scan to pass, the finding can still be merged.
Our secrets never touch git. Are we covered?
+
Keeping secrets out of git covers one path. A build can also copy a CI secret into what it produces, for example a Dockerfile that sets a secret as an environment variable keeps it in the image. We scan the build output before deploy and check which pipeline steps receive each secret. We also list what every machine account and token can reach, so a token that does leak can do no more than the job it was created for.
We have static analysis. Why is AI-written code a separate problem?
+
Static analysis still has a place, but it does not cover the whole path an agent can use to change a project. Credentials may appear in recorded test data, generated reports, or agent configuration. An agent may suggest a package that does not exist, while a plugin server can run with the developer's privileges and update outside the normal dependency process. We keep the existing code checks and add coverage for the agent, its dependencies, and its toolchain.
Does this depend on Claude Code?
+
The checks that run while the agent works are built on Claude Code. They use its hooks, permission rules, built-in security review, and instruction files. The history scan, dependency checks, and merge rules run in CI and work with any agent. With another agent, the agent-time checks have to be rebuilt on its own hooks and settings.
Will the gates slow the team down?
+
Poorly tuned checks slow a team down and are soon ignored or disabled. Before a rule can block a pull request, we run it against the repository's history and tune its false positives. When a check fails, it points to something in the proposed change that the author can fix.
What do we tell the auditor?
+
You can show the auditor the original scan, the credential rotation record, the repository rules, and the before-and-after audit. Each change in the audit is linked to the control that produced it. We also document the method, including corrections made along the way.
What will this work not do?
+
This work ends before deployment; it does not cover network, infrastructure, or runtime security. We never test a suspected credential, because that would mean using it, and credential owners handle rotation in the issuing system. We do not rewrite repository history or include secret values in our deliverables. The agent's pre-commit review is installed as a required step, but its catch rate is not yet measured and is reported that way.