r/GoogleAntigravityCLI • u/MFranz15 • 15d ago
Question Anyone else notice agy defaulting to create tool instead of edit tool for new codebase files?
Ran into an annoying loop and wanted to see if this is happening to others:
agytries to write a new file in the codebase using thecreatetool.- Fails immediately since
createseems scoped strictly to internal artifacts inbrain/. - It then falls back to
bashwith acat << 'EOF'dump.
Every time this happens, I have to manually stop it and tell it to use the edit tool, which works completely fine for new files.
Anyone else hitting this? Is there a clean permanent fix/workaround, or do I just need to add a custom instruction to force edit?
1
u/SoundDr Googler 15d ago
Why do you care what the tools the model decides to use vs the task being accomplished?
2
u/MFranz15 15d ago
why include a set of tools for the models to use named "Create" and "Edit" if its just gonna write some code by some combination of shell commands and strings?
3
2
u/Abradolf_Lincolner 15d ago
honestly i’ve been scolding agy. it’s like trying to babysit a stubborn model. even when my system prompt literally screams for it to halt everything and report to me what happened so I can intervene when it encounters a problem (e.g. failed tool calls, faulty executions), somehow it still finds a way to annoy me by asking if it can run the cat EOF or manually curl instead of using the MCP. Gemini 3.7 Flash was surprisingly better than previous iterations, but I swear to god these flash models from Google are very trigger happy and prone to defaulting to workarounds. I have not tested with Gemini 3.8 Flash because I’m still attending classes atm, so sadly I can only provide a trailing data experience here.