From 8ec366de42dd66256895f16c9669469791ca823a Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Mon, 9 Mar 2026 05:50:59 +0000 Subject: 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. --- internal/executor/classifier.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/executor/classifier.go') 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: -- cgit v1.2.3