From d9e8cd9834fc265a86ef10b2c6680141ff31087c Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 1 Dec 2025 13:02:53 -0500 Subject: Increase duplicate tool call guardrail limit from 5 to 20 The limit of 5 was too aggressive - reading 5 different files while exploring a codebase would trigger the guardrail. 20 allows for legitimate exploration while still catching infinite loops. --- Omni/Agent/Worker.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Omni/Agent/Worker.hs') diff --git a/Omni/Agent/Worker.hs b/Omni/Agent/Worker.hs index 6691f21..286836a 100644 --- a/Omni/Agent/Worker.hs +++ b/Omni/Agent/Worker.hs @@ -317,7 +317,7 @@ runWithEngine worker repo task = do Engine.Guardrails { Engine.guardrailMaxCostCents = 200.0, Engine.guardrailMaxTokens = 1000000, - Engine.guardrailMaxDuplicateToolCalls = 5, + Engine.guardrailMaxDuplicateToolCalls = 20, Engine.guardrailMaxTestFailures = 3 } agentCfg = -- cgit v1.2.3