Safe to rename a repo?

I’m wondering if it’s «safe» to rename a Github repo, from a context and cache standpoint. Will Cursor be able to figure out that I’m still in the same project (and therefore remember what it has picked up on it)?

Thanks in advance!

Hey, good request. Renaming a repo on GitHub is safe. The Codebase Index and chat history in Cursor are tied to your local project folder, not the GitHub URL, so changing the remote name won’t make Cursor forget anything. After renaming, just update the git remote with git remote set-url origin <new-url>. GitHub will also redirect the old URL for a while.

What to watch out for:

  • If you also rename or move the local folder, Cursor will treat it as a new project. It’ll rebuild the index, and the old chats will disappear from the sidebar. The data is still on disk, but the link is lost.
  • If you use any web-side features that point to this repo, like Cloud Agents environments or Automations, check they still reference the right repo after the rename. Rebuild or reselect it if needed.

Let me know if anything behaves oddly after the rename.