LoopGain
Stop agent loops with control theory, not max_iterations. An open-source cost controller for AI agent loops — stops a loop when it's actually converged and rolls back before it degrades, instead of running to a fixed max_iterations cap. Real-time loop-gain (Aβ) bands + best-so-far rollback. Adapters for LangGraph, CrewAI, AutoGen, LangChain, OpenAI Agents, and Claude Agent SDK; raw API for custom stacks.
LibraryOpen source
Reactions (1)
Similar products
by description similarity
AI Circuit Breaker
circuit-breaker-sage.vercel.appReverse proxy to stop agent infinite loops
SwarmClaw
github.comOrchestration dashboard for OpenClaw and AI agents
AgentGuard
github.comAuto-kill AI agents before they burn through your budget
Shikigami
shikigami.devrun AI coding agents in parallel, each in a Git worktree
Hierarchal Agent Loop Optimizer