Security and launch check for apps built with Cursor or Claude Code
Updated
Cursor and Claude Code write code in your own repository on any stack, so there is no platform default to rely on. Before launch, check the git history for committed .env files and keys, verify that every API route checks the user on the server, review dependencies the agent added, and limit what the agent itself can access, especially production credentials.
Where the risks come from
Lovable, Bolt and v0 make many decisions for you, including where secrets go. With a coding agent in your repository, those decisions are made prompt by prompt, and different sessions can make different ones. The result is often three ways of checking permissions in one codebase.
What to check
- Git history. Agents sometimes create
.envfiles or paste keys into config while debugging. Scan the full history, not just the current files, and add.env*to.gitignore. - One way to check access. Find every route or handler that reads user data and confirm each one checks the session the same way. Inconsistency is where holes hide.
- New dependencies. Review packages the agent added. Look for ones with few downloads or names close to popular packages.
- The agent’s own access. Don’t give the agent production database credentials or deploy keys during normal work. Use a development database and separate keys.
- Rules for the agent. Write the security rules into
AGENTS.md,CLAUDE.mdor Cursor rules: where secrets go, how access is checked, which files not to touch. The next session then keeps the fixes instead of undoing them.