How do you prevent AI from Making unauthorized changes ?

Hey Guys,

As the team builds out landing pages and website content we find that the AI makes unauthorized changes (which are hard to track). Is there any way to lock pages from getting touched by accident? Whats the best way to do this?

v0 has a built-in file locking feature specifically designed to prevent AI from making unauthorized changes to your pages. Here’s how to use it: In the v0 UI:

  1. Right-click on any file or folder in the file browser
  2. Select “Lock” from the context menu
  3. Locked files will be protected from AI modifications

Best practices to prevent unauthorized changes:

  1. Lock critical files: Always lock configuration files (package.json, tsconfig.json), working components, and pages you don’t want modified
  2. Be explicit in prompts: Add phrases like “only modify X, keep everything else unchanged” or “do not change any other files”
  3. Use strategic forking: When a chat gets too long, fork it to create a new chat with clear context
  4. Save versions frequently: Use the version history to restore if unwanted changes occur. It’s better to restore + redo than to correct and leave the history of mistakes in the context window, though the agent is getting better at understanding this