From 45cb8f8104e56f2b79cfa517135ecac6bf0ca4be Mon Sep 17 00:00:00 2001 From: hobbyistlabs-coder Date: Fri, 13 Mar 2026 18:40:09 -0400 Subject: [PATCH] Update AGENT_LOOP_IMPROVEMENTS.md --- AGENT_LOOP_IMPROVEMENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AGENT_LOOP_IMPROVEMENTS.md b/AGENT_LOOP_IMPROVEMENTS.md index 5eb70a4e6..de221c5ab 100644 --- a/AGENT_LOOP_IMPROVEMENTS.md +++ b/AGENT_LOOP_IMPROVEMENTS.md @@ -16,7 +16,7 @@ This document outlines a series of tasks to improve the main loop of the agentic * [x] **Graceful Recovery on Tool Panic:** Add `defer recover()` inside the parallel tool execution goroutines to prevent a panicked tool from crashing the entire `AgentLoop`. Return the panic as an error string to the LLM. * [x] **Exponential Backoff:** Replace the linear backoff in LLM retries (`time.Duration(retry+1) * 5 * time.Second`) with exponential backoff and jitter to better handle rate limits. -* [ ] **Granular Error Classification:** Update `LLMProvider` interfaces to return structured, typed errors (e.g., `providers.ErrContextLengthExceeded`) instead of relying on fragile string matching. +* [x] **Granular Error Classification:** Update `LLMProvider` interfaces to return structured, typed errors (e.g., `providers.ErrContextLengthExceeded`) instead of relying on fragile string matching. ## Phase 3: Performance & Latency