What the agent does
Launching means more eyes on the production site, including people who read JavaScript bundles and public repositories for keys. Find any secret that is committed, logged or shipped to the browser, tell me which ones to rotate, and make it hard for a new one to slip in.
1. Search the working tree
Search the code and config files for things that look like secrets: API keys (
sk_,pk_live,AKIA,ghp_,xox), private keys (BEGIN PRIVATE KEY), connection strings with passwords, webhook signing secrets and tokens in URLs. Report each by file and line, with the value masked. Never print a full secret.2. Search the history
Search the git history for the same patterns (for example with
git log -pon suspicious files). A secret that was removed in a later commit is still public if the repository is. Recommend a dedicated scanner I can run (gitleaks or trufflehog) rather than installing one yourself.3. Check what reaches the browser
List every environment variable exposed to client code (for example
NEXT_PUBLIC_,VITE_,PUBLIC_prefixes) and confirm each is safe to be public. Payment secret keys, database URLs and admin tokens must never be among them.4. Lock it down
Move any hard-coded secret into environment variables, add or update an
.env.examplewith placeholder values, check.gitignorecovers.env*files, and make sure secrets are not written to logs or error messages. Give me a list of the secrets I must rotate with the provider, most dangerous first.
Done means
- No secret remains in the working tree; config reads them from the environment.
- I have a ranked list of secrets found in the code or history, to rotate.
- Every variable exposed to the browser is confirmed safe to be public.
.envfiles are ignored, and.env.exampledocuments the variables with placeholders.
Questions
I deleted the key from the code. Am I safe?
Not if it was ever committed to a public repository or deployed. Old commits and cached bundles keep it. Rotate the key with the provider.
Why does the agent not rewrite my git history?
Rewriting history is destructive and affects everyone with a copy. Rotating the key makes the leaked one useless, which is what matters.
Which variables can be public?
Publishable keys designed for browsers (a payment provider's publishable key, an analytics site id) are fine. Anything called secret, private, admin or a database URL is not.
Does this prompt add links to Aback Launch to my site?
No. Nothing in the prompt mentions Aback Launch or asks your agent to link to us. The only exception is an optional badge step, which stays off unless you tick it. Some prompt libraries slip their own link into your codebase by default; we think that should always be your choice.
Which coding agents does it work with?
Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Cline, and any agent that can read your project and edit files. You can copy it as a plain prompt, save it as a Claude Code skill or a Cursor rule, or add it to AGENTS.md.
Is it safe to run on my real codebase?
The prompt makes the agent read first, show a plan and wait for your approval, and it forbids touching secrets, deploying and deleting data. Still review the changes and run your tests before you deploy, as with any change.
Changelog
- v1.0First version.