Open-source cost control for AI agent loops — stop paying to run loops past the point they've already converged. Stops at convergence, rolls back on divergence.loopgain.ai Toronto, CanadaJoined May 2026
We re-graded our own benchmark against a fuller test suite and found ~1 in 20 "converged" runs were actually wrong — a bug on an edge case that wasn't sampled.
LoopGain stops when your verifier says zero errors. So the verifier is the whole game. A field guide to building one you can trust.
We ran 2,000 paired agent-loop trials and pre-registered the predictions first, so we couldn't move the goalposts.
Headline: 92.8% cheaper than max_iter=20. That's the least interesting thing we found. Five honest surprises — including that the savings are loaded toward the easy cases.
Deciding when to stop an AI agent loop is a signal-processing problem, not a prompt-engineering one. You can't fix a control problem with a better prompt.
Here's the actual math LoopGain uses instead of max_iterations — loop gain, a log-trend fit, and a significance test.
loopgain.ai/blog/posts/how…
Most agent tooling tells you what happened after the loop ran. LangSmith, Langfuse, Helicone — all strong at observing. Almost none act while the loop is still running.
A map of the landscape, drawn on the one line that matters: observe vs. control.
loopgain.ai/blog/posts/ope…
Zero of six pre-registered kill criteria fired. Two pre-registered floors missed — both well inside the kill thresholds, both disclosed in Findings, not buried in footnotes. Seven pre-data amendments preserved with full rationale. Aggregate pairwise judge preference across 1,800 comparisons: 0.681.
LoopGain is the real-time monitor that stops AI agent loops when they've actually converged, and rolls back when they're about to degrade, instead of running to a fixed max_iter cap.
The first bench is public. 2,000 paired real-API trials. 🧵
439 Followers 1K FollowingLeads health tech, delivering data-driven, AI-led digital transformation. Mentors career development and individual growth. Here to help…
41 Followers 463 FollowingBuilding LoopGain - Open-source cost control for AI agent loops — stop paying to run loops past the point they've already converged.
439 Followers 1K FollowingLeads health tech, delivering data-driven, AI-led digital transformation. Mentors career development and individual growth. Here to help…
1K Followers 733 FollowingLate-starter dev building useful shit. Latest: audio-guided boxing training app. No fluff, just progressive sessions that work. Edinburgh
261K Followers 5K Following📍 Analista CNPI, invisto há +20 anos 📈 Fundador da @sunoresearch e @sunoasset, sócio @statusinvestbr 🤝 Conte com os serviços do meu time👇
5K Followers 4K FollowingCEO & Co-Founder @LassieAI | Building AI that runs small businesses, starting with the doctor's office | Early PM at Robinhood & Coinbase
1.5M Followers 2 FollowingClaude is an AI assistant built by @anthropicai to be safe, accurate, and secure. Talk to Claude on https://t.co/ZhTwG8d1e5 or download the app.
301K Followers 3K FollowingSenior Developer Advocate at Atlassian | Co-Host of The Programming Podcast |
I've helped 1000s of people land jobs in tech |
210K Followers 456 Following- Head of DevRel Engineer at https://t.co/t5PMw0nLYM
- Software Developer
- Rust, Docker, Web Dev
- Docker Captain
- Keynote Speaker
- Building a 1M community...66%
131K Followers 553 FollowingTech writer @logrocket, @sitepointdotcom and @refine_dev 📚
Built DevTunes FM (1.8M+ listens) and DevQuizzes (900K+ answers) 🚀
206K Followers 3K Following🌏 Digital Nomad 🇬🇧🇵🇹🇹🇭
⭐️ GitHub Star of the Year | 👨🏫 GitHub Top Teacher Award
🤓 Developer Advocate @paypaldev
🎙️ Views expressed are my own
30K Followers 541 FollowingVector Institute transforms cutting-edge artificial intelligence research into practical solutions. AI-generated content will be disclosed. FR: @InstitutVecteur
52K Followers 41K FollowingTop 50 Outstanding #AI Business #Influencer | Top 22 AI Influencer to Follow | Top 100 Global #ThoughtLeaders | Deloitte | i2 & Blue Yonder | @Pelico
124K Followers 648 FollowingMila Scientific Director. Ex @Google DeepMind & Twitter Cortex. Father of 4. // Directeur scientifique à Mila. Ex @Google DeepMind & Twitter Cortex. Père de 4.
1.3M Followers 2 FollowingWe're an AI safety and research company that builds reliable, interpretable, and steerable AI systems. Talk to our AI assistant @claudeai on https://t.co/FhDI3KQh0n.
81K Followers 1 FollowingWorkflow automation for technical teams to build AI solutions that integrate with any app or API at no-code speed and code flexibility. Open and self-hostable
1.2M Followers 787 FollowingProfessor at NYU & Executive Chairman at AMI Labs.
Ex-Chief AI Scientist at Meta.
Researcher in AI, Machine Learning, Robotics, etc.
ACM Turing Award Laureate.