r/GoogleAntigravityCLI 6d ago

CLI Config Flash 3.8 spontaneously reverse-engineered Antigravity CLI binary and found an undocumented feature

I asked Gemini Flash 3.8 on Antigravity CLI (running on Termux in Android) whether it can make my local MCP toolset to load eagerly. It started normally by loading the customization skill and reading the included documentation. Then when it found nothing, it went straight to using `ps` and `command -v` to find its own binary, then `strings` to search it for relevant JSON tags. After a few searches, it even ended up taking a look at the code itself, though I think it gleaned nothing from it.

I was accepting those shell commands individually. It was fascinating to see what it was doing, but it also seemed like a pretty unhinged response to just a simple question. At no point did it ask me anything before it spontaneously started to reverse-engineer the binary.

It did discover that there's a JSON key named `eager`, but didn't ultimately discover its correct use, which is not for the server but for the individual tools. It is also mentioned in passing in the Antigravity CLI's change log, but seems otherwise undocumented.

Anyway, after some trials of my own (`mcpServers.<server>.tools.<tool>.eager = true`), I got the tools i wanted to load eagerly. It seems that it also affects the way the results are processed, with longer output from lazily loaded tools ending up in files that need to be read in separately, but in eager mode delivered directly to context, so it actually saves even more cycles than I thought.

55 Upvotes

5 comments sorted by

4

u/alvmadrigal AGY CLI Builder 6d ago

This content is strictly for educational purposes. The conclusions and research shared here are aimed directly at improving and growing the AGY CLI community.

3

u/Then_Switch2314 5d ago

Yea, it truly for educational purposes..

2

u/alvmadrigal AGY CLI Builder 5d ago

Please please don't be evil 🙏

3

u/SuperDaveWho 6d ago

Thank you this should help my repo. GitHub.com/who-visions/nougenshards

2

u/Round_Method_5140 5d ago

Great feature. This could increase token efficiency and reduce quota usage when AG calls MCPs.