Engineering
Export every routine, then trim tokens on purpose
One bot running everything cannot see its own waste.
What hurt
Justin Fredette (@justinfredette) starter: ask your bot for a copyable list of every automation/routine, then use a dedicated optimizer bot (he links "dr eggbot") to tune for the same results with fewer tokens. Pattern to steal even without his template: inventory first, optimize second. Not affiliated with xAI.
What to install or create
Inventory routines to a file. Optionally open his optimizer share. You approve every deletion/slowdown.
Bots
Token optimizer
Reads the routine list. Proposes cuts. Never deletes alone.
Plugins
None on day one. Follow the first-run steps.
Files
routines-inventory.txt. Copyable list of every automation/routine.
Routines
None on the first run. Watch one manual pass first.
The prompt
This is a tip, not a pasteable system prompt. The author did not publish one. Follow the first-run steps.
First run
- 1Read https://x.com/justinfredette/status/2109813100203417702 (credit @justinfredette).
- 2Ask each bot for a copyable list of automations/routines; merge into one file.
- 3Paste into an optimizer bot (his share or your own) and ask for same-result / fewer-token proposals.
- 4Approve slowdowns and merges one by one.
- 5Re-export the list next week and compare.
Approval fence
Do not delete routines without your yes.
What to tweak
Steal inventory-before-optimize. You cannot cut what you have not listed.
Source
Justin Fredette @justinfredette · Original post
Not affiliated with xAI. We did not write this prompt. Third-party template terms still apply.
Pro pack
Routine cost control: stop running out of usage by Wednesday
A one-hour audit, a quiet Usage officer and a fix playbook (cadence, silence, event triggers, fresh chats, scripts over clicks) that cut waste without losing the jobs your bots do.