@CodeBase not available

Thanks for reporting a bug you have found in Cursor!
Please add the following info to help us diagnose your issue:

:white_check_mark: Check the forum to ensure the issue hasn’t been reported already
:lady_beetle: Provide a clear description of the bug
:arrows_counterclockwise: Explain how to reproduce the bug (if known)
:camera: Attach screenshots or recordings (e.g., .jpg, .png, .mp4).
:computer: Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).
:no_entry_sign: Tell us if the issue stops you from using Cursor.

Since updating to the latest Cursor (0.46.4, vs code 1.96.2) I can no longer access the @CodeBase directive. It worked just fine prior to the update and no it’s gone.

I’ve tried it with sonnet 3.5 and 3.7 and no difference. I’ve deleted my index and recreated it several times, rebooted the computer, relaunched cursor several times.

MacOS 15.3.1
Cursor 0.46.4

I worked with Sam from Cursor to get this working again. For me it was just removing and reinstalling Cursor:

Here’s how to completely uninstall and reinstall Cursor:

  1. First, quit Cursor completely
  2. Delete Cursor from your Applications folder
  3. Remove Cursor data by deleting these folders:
  • ~/Library/Application Support/cursor
  • ~/Library/Caches/cursor
  • ~/.cursor

Then reinstall Cursor from Downloads | Cursor - The AI Code Editor

I think in the new UI with combined Chat/Composer/Agent @codebase is available only in Ask mode.
My guess this by design, because Agent mode seems to have access to the whole codebase regardless of the use of @codebase, and Edit is intentionally limited to provided context only.

1 Like

Yes I think you’re right. My initial resolution above was short lived as I noticed the download from the website was actually the previous version 0.45.x, therefore it still allowed @CodeBase in edit mode. This morning the IDE updated and I was back at 0.46 and lost access to @CodeBase in edit mode. This is unnecessarily confusing really.