At mark file search order in antigravity

Often when I want to specify a file with an at mark (@) in antigravity, it suggests a lot of irrelevant files that are nested deep into the folder structure (I think it orders from longest to the shortest including the path)

As a vim user, if I want to refer to a document that is already opened by vim, there is usually a .filename.txt/swp file, and it always suggested before the filename.txt.

Other example could be referring to a .py file with compiled pyc in __pycahche__folder with the same name, different extension.

There is no way that people want to refer to a metadata file / compiled files that are usually have the same name, but with more extensions and usually barried deep into the nested folder structure (they’re usually hidden). I’m pretty sure that this is not the kind of feature a flagship CLI tools by a bigtech want to have, as it creates the suggestion function completely useless.

It would be nice if this can be fixed, as I always gets annoyed pressing downarrow key so many times to get to the desired file that has the shortest name (including path) in most of the cases. It is badly compatible with vim’s workflow as well, because arrow keys are hardly used.

Thank you in advance.

Hi @thashi, Welcome to the Forum!

I tried reproducing it, but in my testing the actual source file (e.g., notes.txt/hello.py) was correctly suggested before the .swp and .pyc files.

Could you please share a bit more information:

  • Which operating system are you using?
  • Which version of Antigravity are you using?
  • Could you share a small sample project or folder structure where this occurs?
  • Could you share a short screen recording showing the @search suggestions in the incorrect order?

Hi
I am using

System Details Report


Report details

  • Date generated: 2026-09-04 19:39:12

Hardware Information:

  • Hardware Model: Dell Inc. OptiPlex 7000
  • Memory: 16.0 GiB
  • Processor: 12th Gen Intel® Core™ i5-12500 × 12
  • Graphics: Intel® UHD Graphics 770 (ADL-S GT1)
  • Disk Capacity: 512.1 GB

Software Information:

  • Firmware Version: 1.41.0
  • OS Name: Ubuntu 24.04.4 LTS
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 46
  • Windowing System: Wayland
  • Kernel Version: Linux 6.8.0-41-generic

This is the system I am using.

Software :
Antigravity CLI 1.1.12

VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Aug 24 2026 22:13:04)
Included patches: 1-16, 647, 678, 697
Modified by team+vimtrackerdebian
Compiled by team+vimtrackerdebian

I just noticed that antigravity has now version 2.0, I will try it there and see if it fixes it.
I was never notified that there is antigravity CLI version 2.0 (or are they different? I don’t know…)

Actually, it doesn’t fix it. Or I won’t install antigravity 2.0, because it seems to be different from antigravity CLI.

Okay, how to recreate this in

Antigravity CLI 1.1.26

Make a folder. Open this folder, make a text file with some content

```
touch tmp.txt
echo "hello" > tmp.txt
vim tmp.txt
```

Keep it open with vim. This creates a temporary file. Then in other terminal window, you goto the same folder and run
`agy`
Then start prompting @tmp you'll have .tmp.txt.swp as the first choice.

This is unbelievably annoying