diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-09 05:50:59 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-09 05:50:59 +0000 |
| commit | 8ec366de42dd66256895f16c9669469791ca823a (patch) | |
| tree | 1650beda8dd017e476148a0177e96e3ab79832a8 /internal/executor/classifier.go | |
| parent | 5c8562460fc5b78372a1cfdb400e0cb1f51875cd (diff) | |
executor: strengthen rate-limit avoidance in classifier
Updated isQuotaExhausted to detect more Claude quota messages. Added 'rate limit reached (rejected)' to quota exhausted checks. Strengthened classifier prompt to explicitly forbid selecting rate-limited agents. Improved Pool to set 5h rate limit on quota exhaustion.
Diffstat (limited to 'internal/executor/classifier.go')
| -rw-r--r-- | internal/executor/classifier.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/executor/classifier.go b/internal/executor/classifier.go index 123f92d..efd2acb 100644 --- a/internal/executor/classifier.go +++ b/internal/executor/classifier.go @@ -43,7 +43,8 @@ Gemini: - gemini-2.5-pro (most powerful Gemini, larger context) Selection Criteria: -- Agent: You MUST prefer an agent that is NOT rate limited. If an agent is rate limited, do NOT select it unless all available agents are rate limited. +- Agent: CRITICAL: You MUST select an agent where "Rate Limited: false". DO NOT select an agent where "Rate Limited: true" if any other agent is available and NOT rate limited. + Check the "System Status" section below. If it says "- Agent claude: ... Rate Limited: true", you MUST NOT select claude. Use gemini instead. - Model: Select based on task complexity. Use powerful models (opus, pro, pro-preview) for complex reasoning/coding, flash-lite/flash/haiku for simple tasks. Task: |
