frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: I replaced a $120k bowling center system with $1,600 in ESP32s

1592•section33•11h ago•173 comments

Show HN: Headroom – measure your GPU's true bandwidth ceiling for local AI

https://ar5en1c.github.io/headroom/
2•Ar5en1c•1h ago•0 comments

Show HN: A canvas-based note taking and organizer app

https://www.passinote.app/
40•passiflora96•4h ago•12 comments

Show HN: Bribes.fyi – Built something to report bribes

https://bribes.fyi/
20•neverenderr•10h ago•17 comments

Show HN: Deploy AI agent in 5 lines of code

https://www.custodianlabs.io
2•sherryf123•3h ago•1 comments

Show HN: Q3Edit – Edit and play Quake 3 maps in the browser

https://q3edit.com
92•drdator•1d ago•26 comments

Show HN: ShipMD.app – Moving things in folders, move things in the real world

https://shipmd.app
2•bosky101•5h ago•0 comments

Show HN: IKEA Complexity Index

https://ikea.greg.technology/
171•gregsadetsky•1d ago•87 comments

Show HN: LoopGain – Stop agent loops with control theory, not max_iterations

https://github.com/loopgain-ai/loopgain
27•fitz2882•4d ago•12 comments

Show HN: Chalie – AI peer not employee

https://github.com/chalie-ai/chalie
4•dylangrech92•6h ago•1 comments

Show HN: Watch bots interact with an SSH honeypot in real time

https://honeypotlive.cc/
178•tusksm•2d ago•60 comments

Show HN: A gallery of browser-based PDF imposition and printing templates

https://pdfpress.app/gallery
3•jp1016•8h ago•0 comments

Show HN: A self-correcting algebraic agent swarm

https://github.com/Michael-Ax64/K4-AlgebraicSwarm
3•michael-ax•10h ago•0 comments

Show HN: PilotCite – Get your brand cited by ChatGPT, Gemini, and more

https://www.pilotcite.com
5•standew•19h ago•2 comments

Show HN: PostgreSQL course with database running in your browser

https://learnpg.xyz
4•Serpant•12h ago•3 comments

Show HN: Knowledge graph skill for Claude/Kimi Code

https://org-edge.com/sysedge.html
3•org-edge•12h ago•1 comments

Show HN: Clx – Compile Lua to Native Executables Through C++20

https://github.com/samyeyo/clx
143•_samt_•1w ago•32 comments

Show HN: Textcaster – social networking where RSS is the protocol

https://textcaster.app
9•rmdes•14h ago•2 comments

Show HN:MinIO-dash – MinIO admin panel after they removed the Console in 2025

https://github.com/MarceliRacis/minio-dash
4•marceliracis•15h ago•0 comments

Show HN: Regularly, hand-picked daily logic and number puzzles, no ads

https://regularly.co
3•deepakrb•15h ago•0 comments

Show HN: Same castle prompt, 8 LLMs, 24 procedural Three.js worlds

https://castle-bakeoff.pages.dev/
5•valhallarecords•15h ago•1 comments

Show HN: Leaves – A text-UI disk usage treemap visualizer

https://github.com/patonw/leaves
90•patonw•3d ago•30 comments

Show HN: CheckRun – a checklist runner for the Chrome side panel

https://checkrun.co/
3•gingermanymph•15h ago•0 comments

Show HN: AI Buddy – Free STT and Screenshot Tool for Mac (Requires Gemini)

https://claudete.co/ai-buddy
2•morion4000•16h ago•1 comments

Show HN: Peek-CLI: Let Claude Code iterate on front end designs

https://github.com/puffinsoft/peek-cli
6•G3819•1d ago•1 comments

Show HN: We ran 79 MCP servers in microVMs, only 31 passed

https://usethrone.dev
3•imtaimoorkhan•16h ago•1 comments

Show HN: Inertia, Physics in a Terminal

https://inertia-web.github.io/
4•aclfe•16h ago•0 comments

Show HN: Firefox in WebAssembly

https://developer.puter.com/labs/firefox-wasm/
271•coolelectronics•4d ago•126 comments

Show HN: A zoomable timeline of 4M Wikipedia events

https://app.everything.diena.co/
115•lortex•2d ago•43 comments

Show HN: Zlvox – A no-signup suite of developer tools (JSON, Temp Mail, PDF)

https://zlvox.com/blog/why-i-stopped-using-random-online-ai-tools-2026
2•mraadikhokhar•17h ago•0 comments
Open in hackernews

Show HN: LoopGain – Stop agent loops with control theory, not max_iterations

https://github.com/loopgain-ai/loopgain
27•fitz2882•4d ago

Comments

fitz2882•4d ago
Hey HN — Dave here. While building a multi-agent system a couple of years ago, I kept noticing that the diagrams of agents passing feedback to each other looked just like the electrical circuit diagrams from control theory. I got curious whether the established math transferred, and to my surprise it did. LoopGain is the first product of that research: an open-source library that replaces the max_iterations=N cap on agent loops with an actual measurement of whether the loop is still improving.

The cap is how nearly every verify-revise loop gets stopped today, and it's wrong in both directions. Stop too early and you clip a loop that was still improving. Stop too late and you pay for iterations after the loop already found its best answer — and ship the final attempt, which is sometimes worse than one it already had.

On a 2,000-trial benchmark (paired real-API runs, five loop patterns across six framework adapters, three model providers, pre-registered protocol with kill criteria), LoopGain cut total API spend by 92.8% vs max_iterations=20 ($27.05 → $1.94) and median wall-clock ~15x (30.9s → 2.1s). A cross-vendor judge preferred LoopGain's outputs on the weighted average (0.678 across 1,800 pairwise comparisons) — mostly because LoopGain returns the iteration with the lowest error it saw, while a fixed cap ships whatever the final iteration produced. The raw data and methodology are public, the full run is browsable at dashboard.loopgain.ai/benchmark, and there's a replay of a real benchmark run (all measured, no simulation) at dashboard.loopgain.ai/demo.

How it works: each iteration, LoopGain takes the ratio of the current error to the previous error — the loop's empirical loop gain (Aβ, borrowed from control theory). Aβ<1 means the error shrank — the loop is improving. Aβ≥1 means it held or grew — the loop is stuck or making things worse. A trajectory classifier reads the recent Aβ values, labels the loop (FAST_CONVERGE / CONVERGING / STALLING / OSCILLATING / DIVERGING), and decides whether to keep going, stop here, or stop and roll back to the lowest-error output so far.

Integration is a few lines around any loop that produces an error signal:

    from loopgain import LoopGain

    lg = LoopGain(target_error=0.0)
    output = generate(task)                # first attempt

    while lg.should_continue():
        errors = verify(output)            # e.g. count of failing tests
        lg.observe(errors, output=output)  # the only LoopGain call in the loop
        output = revise(output, errors)

    result = lg.result   # .best_output, .outcome, .convergence_profile, .savings_vs_fixed_cap
Honest limits, because they matter more than the headline: LoopGain detects convergence, not correctness — it inherits your verifier's blind spots. I re-graded my own benchmark and 4.5% of "converged" code-gen runs passed every check the loop ran but failed a fuller held-out test suite. And savings depend on workload: failure-heavy loops save ~78–84%, not 92.8%. There's a writeup on designing verifiers strong enough to trust on the blog.

Apache-2.0, pip install loopgain. Adapters for LangGraph, CrewAI, AutoGen, LangChain, OpenAI Agents SDK, and the Claude Agent SDK; the raw API works for anything with a measurable error.

What I'd really love from HN: if you run production agent loops, I'm interested in whether the stop decisions match what you see empirically — and what your loops' error signals actually look like, since the verifier is what makes or breaks the stop. Happy to answer anything.

lochnessduck•4d ago
To the author (Dave): have some faith in your voice. If you can’t describe the project as well as the AI (because you vibe coded it), then take a dang hour to ask the AI how it works and do a proper write up without copy pasting. Nobody is going to bother otherwise; it’s too obviously AI generated.
fitz2882•1d ago
Hey, thanks for your comment. This is an idea that I thought up, researched, developed, and in the end built a useful, working, open source tool. Yes I used AI to assist me in the process, it's a complicated subject. But I take your point that it would be better to write in my own words. You're right, lesson learned.

Anyhow, whether I used a tool like AI to assist me or not, I am here to share something I built that I hope others will find useful. I am building what I am passionate about.

stephantul•13h ago
I don’t think this is the right take-away though.

Your fully generated project description makes people lose faith in the actual project. If you went through the trouble of writing the whole code yourself, why generate the comment presenting it to the public wholesale.

N_Lens•12h ago
He’s passionate about using AI!
Terretta•2d ago
Fitz, Dave, whoever is "here" ...

What prompt are you using to generate this exact form of thing?

Problem history story...

Everyone's doing it wrong...

Proof of claims ...

Abstract ...

"Honest" bustedness ...

Keyword stuffing ...

Call for feedback ...

"What I'd really love from Dave:" is what's causing this particular structure. What model/harness/agent are you using, whether automated or pasting it yourself?

idiotsecant•13h ago
I'm not sure you can so easily calculate 'error' for most real world cases.

In your example you are calculating error as a function of missed tests, for example. That's a pretty good example, you can't just leave that value at 2.5% of starting. It needs to be zero. All existing loops have logic to not proceed until those tests all pass.

If you can propose a means of generating an error signal in actual code you've just invented a way of automatically grading the goodness of code, which should make you quite a lot of money!

brody_hamer•13h ago
> All existing loops have logic to not proceed until those tests all pass.

My understanding is that this tool is mostly about “giving up” sooner, when it’s obvious that additional loops are not getting any closer to passing those tests.

It’s a cost saving measure when the problem is intractable, and needs more human context, etc.

fitz2882•6h ago
Hey everyone, I just want to clear some things up here based on the comments:

I (Dave) am a real person, and yes I used AI to help me with every part of this project, including my initial comment introducing it here. That was a mistake, I should have just written it myself. I am a self-taught developer who is passionate about AI development and curious about seeing what I can do with it. I come up with my ideas and test them with the help of AI. Then I have AI help me understand it. This all started because I was building multi-agent systems, just experimenting, and I noticed that they looked to me like electrical circuit diagrams. So it made me curious if there was any cross over between the laws of electrical engineering and how it might apply to agentic systems. With AI today you can pursue any idea you have, so I have fun by seeing what happens when you take concepts from one established field and apply them to something else. I had AI do deep research on electrical engineering concepts, and asked it to research how those might be applied to agentic systems. It came up with interesting ideas, so I had it plan scientific experiments on ones that looked promising, and the one that looked like the most obvious application is what turned into LoopGain. With the help of AI I developed it into a working system, created a website and company around it, made the project open source, wrote blog articles about the experiments, then asked AI how to best share it with the world. I love developing useful tools and researching the edge of AI capabilities, so that is what I am doing here. Thanks for reading.

fitz2882•1d ago
Hey, please see my response to lochnessduck, thanks
gavmor•10h ago
I've got an application for this. Will try and get some benchmarks in the next few weeks. We're definitely attempting to converge on a quality inference without wasting tokens/time.

For now, we're passing the first pass to the humans, and that's roughly 80 for 20, but to get the last 20 without blowing up our token spend? This might be the approach.

Thanks for the write up comment, btw.

fitz2882•7h ago
Hey gavmor, thanks for your comment! Let me know if you need any assistance, I would be happy to help or get any feedback at dave@loopgain.ai