nwhitehouse puts guardrails on the AI's tool-using loop
A small safety layer that stops the assistant from spinning its wheels when it gets stuck calling the same tools over and over.
Anyone who has watched an AI assistant get into a rut - fetching the same document three times, or chaining lookups for a full minute before answering - knows the failure mode. nwhitehouse's fork now ships a controller that watches for three of those patterns: too many tool calls in one turn, the same tool being called with identical inputs again and again, and a turn that has simply run too long.
When any of those trip, the assistant isn't cut off mid-thought. It still receives whatever it just looked up - it's just told, politely, to stop fetching and answer with what it has. Thresholds are tunable, and every escalation gets written to the fork's audit log so operators can see when the brakes were pumped.
Spotted something wrong? Or know the PR text has fresher detail than the writeup above?