LoopGain – Stop agent loops with control theory, not max_iterations
Applies Barkhausen criterion from 1921 electrical engineering to stop AI loops on convergence.

Local agent loops beat generic chat for tracking long-term health interventions.
Individuals managing chronic conditions or family health records
Health Gorilla · Apple Health · Obsidian
Like everyone, I have been using LLMs for managing my family's health and especially in understanding more in depth about the personal health issue for me and my loved ones.
I ended up creating an agent to manage the long term history of each member. I use it to manage or solve medical issues. I use it multiple times a week for anything related to health.
The alpha version can be downloaded here - https://karankurani.github.io/OpenCareLoop/
It differs from the regular ChatGPT / Claude projects in that there are proper workflows to process and add structure your healthcare data. It has a "loop" that allows you to make changes in your lifestyle/medication/habits and track it. It is way more effective over a period of time compared to using general AI chat.
Some of the stuff that it has helped with so far in no particular order - solve a long running chronic pain of a parent, manage pain levels of another parent, change decisions related to IVF that reduced the number of scans needed, get second opinion, understanding the healthcare decisions being made by doctors and so on.
It is a constant health companion, and I have a feeling it will be useful to everyone.
Restating the obvious here - This is AI and all outputs should be crosschecked and risky changes should always be validated by doctor before doing it.
Applies Barkhausen criterion from 1921 electrical engineering to stop AI loops on convergence.
Iterator-first design beats black-box frameworks like LangChain for debugging.
Karpathy's autoresearch generalized to work with any coding agent and repo.
Fresh-reviewer exit gates force agent loops to actually terminate instead of churning forever
Ralph fork for ChatGPT Pro instead of Claude, but requires prd.json boilerplate.
Separate verifier agent prevents AI from grading its own homework.