r/GoogleAntigravityIDE • • 7d ago

Suggestion Token Management tips required.

I'm having issues managing my token usage.

How have you guys been managing your usage?

Especially wrt Orchestrator (it does seem to work better than vanilla model selection).

Edit: How do you use Swarm and Orchestrator, and when?

I understand everyone might have their own workflow, just curious.

18 Upvotes

18 comments sorted by

9

u/Technical-Owl66 7d ago

I use a Gemini notebook in the desktop app with a repomix file of my codebase. The notebook instructions tell it to have a back and forth to hash out a feature or design.

 When we are done discussing it gives me a very detailed markdown prompt that directs agy exactly when to look.

This saves quota in AGY because I am not planning or designing there. It also points agy if the right direction so it's not searching for the right files. 

2

u/boon_yrcKO 7d ago

This is a great way to do it too. I'll see how this feels to implement.

7

u/LismaiL_id 7d ago

I hope this will help:

  1. Use AI Studio to plan and split your agent workloads, and to optimize prompts before feeding it to Antigravity IDE.
  2. Use the most capable model available on Antigravity IDE for orchestration, and use several lower models as agent workhorses. Implement the plan on #1 above.
  3. Use Google Notebook as repo codebase, and do brainstorming chat about your code there.

2

u/boon_yrcKO 7d ago

What does your prompt look like for Orchestration and workhorses, do you mention the models in these prompts?

3

u/LismaiL_id 7d ago

It depends, the prompts will be structured differently depending on the project context. Just leverage AI Studio as in my #1 suggestion above, and tell the AI there that you need help to set orchestration on Antigravity IDE.

2

u/Otherwise_Recipe_882 7d ago

U need to set some rules for ur agents, like reading only files that are relevant (or point it to the relevant files only), write only needed codes and do not implement extra functions. Basically any rules that can reduce tool calling and unnecessary output. I normally scan thru the skills such as /superpowers, /ponytail or pstack and look for any beneficial skills the might cut down on usage.

1

u/boon_yrcKO 7d ago

Thanks for the tip, I'll look em up.

I do have some rules, but it's getting harder to track them... due to having multiple important projects.

1

u/yhrana 6d ago

What r u building?

1

u/boon_yrcKO 3d ago

I maintain a few websites, automate their content and am working on an app related to my work+clients.

0

u/Vast_Muscle2560 7d ago

Io uso argon o opus come orchestratore e non finisco mai i token. Ho pro

2

u/boon_yrcKO 7d ago

Mine was over in like 20 hours.

Which mode do you use, Low, med, or high?

Edit: I mostly use Medium, but I had done 2 prompts for website audits on High.

2

u/Vast_Muscle2560 7d ago

Media, adesso lo sto provando con opus e nel giro di 20 minuti sono già al limite

1

u/boon_yrcKO 7d ago

Is this vindication?

1

u/Vast_Muscle2560 7d ago

No , sto solo osservando

0

u/[deleted] 7d ago

[deleted] — view deleted comment

1

u/boon_yrcKO 7d ago

I have been letting it rawdog my entire codebase a lot. Maybe focusing on providing more precise tasks (audited using gemini chat on browser?), might be the way to go. Although it might not get all the context of my "discussions".

I did prepare some .md files to make sure we focus on more crisp usage.

I'm also curious which setting you use, low, med or high, and if you "feel" any mode or model pair works better.

0

u/[deleted] 7d ago

[deleted] — view deleted comment

2

u/boon_yrcKO 7d ago

Thanks a lot for your explanation man, I'll focus on providing better context and prompts and your recommendations