From 5ad8356b5ce4d525af079f902791559d53b67bba Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Mon, 9 Mar 2026 01:08:51 +0000 Subject: executor: fix Claude rate-limit detection and prioritize Gemini when limited Updated parseStream to detect 'rate_limit_event' and 'assistant' error:rate_limit messages from the Claude CLI. Updated Classifier to strongly prefer non-rate-limited agents. Added logging to Pool to track rate-limit status during classification. --- internal/executor/classifier.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/executor/classifier.go') diff --git a/internal/executor/classifier.go b/internal/executor/classifier.go index 28581ea..bab3ea9 100644 --- a/internal/executor/classifier.go +++ b/internal/executor/classifier.go @@ -45,7 +45,7 @@ Gemini: - gemini-1.5-pro (more powerful, larger context) Selection Criteria: -- Agent: Prefer the one with least running tasks and no active rate limit. +- 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. - 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