loopgain-ai / loopgain
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.
Why this job: topics: agent-orchestration, langgraph, crewai, ai-agents, agentic-ai, agentic, agent sdk
What it does
AI agent loops waste time and money when they don't know when to stop. LoopGain measures the loop in real time and stops it the moment it has actually converged — and rolls back before it degrades — instead of running to a fixed max_iterations cap.
Get started
pip install loopgain- Maintenance
- Active
- Last commit 40 days ago
- Stars
- 127
- +1 this week
- Licence
- Apache-2.0
- Allows business use
- Downloads for
- None listed
- No release files
- Latest version
- v0.6.5
- Released 40 days ago
- Built with
- Python
- 100% of the code
Is it looked after?
- Contributors
- 3
- Last 90 days
- Issues
- 50% closed
- 1 still open
- Pull requests
- 12 merged
- 1 waiting
- Releases
- 1
- 1 in the last year
- No contributing guide
- No security policy
- No code of conduct
Similar repos
| Repo | Stars | Last commit | Licence | Downloads for |
|---|---|---|---|---|
| AgentOps-AI / agentops | 5,949 | 4 months ago | MIT | No downloads |
| hidai25 / eval-view | 141 | 24 days ago | Apache-2.0 | No downloads |
More: languages, topics and project record
Languages
- Python 100%
- Makefile <1%
Topics
- agent-orchestration
- agentic
- agentic-ai
- ai-agents
- anthropic
- autogen
- claude
- control-theory
- cost-control
- crewai
- divergence-detection
- early-stopping
Project record
- JobAgent frameworks
- StatusListed
- Commits70
- Forks11
- Watching2
- Stars in 28 days+1
- CreatedMay 12, 2026
- First seen by usNov 7, 2026
- CheckedNov 7, 2026
