r/AI_Loops • • 19d ago

weekly loop thread: what did your agent loop do this week? (nov 6)

1 Upvotes

first weekly thread for this sub. drop any agent loop you ran or saw this week, big or small, working or broken.

what helps most:

  • what the loop checks itself against (tests, a photo, a diff, a human)
  • where it got stuck or went wrong
  • rough cost or time if you know it

a few from this week to get it going:

  • claude painting a watercolor with a robot arm overnight: it ran out of shades at 4am, mixed its own and checked each against a photo before continuing. 303 strokes, 4.5h
  • 6 claude code subagents on 106 tasks in 35h, but real parallelism was 1.8 agents. test slots, merge locks and human review were the ceiling
  • a server watchdog that only wakes claude when the machine's state changes, after a polling loop burned 100M tokens in a day

what did yours do this week?


r/AI_Loops • • Jun 14 '26

What AI loop are you building this week?

1 Upvotes

Weekly thread for sharing what you are building, testing, or trying to turn into a loop.

Use any format:

  • Goal: what should the loop accomplish?
  • Trigger: when does it run?
  • Tools: what does it use?
  • Check: how does it verify success?
  • Memory: what does it keep for the next run?
  • Failure mode: what could go wrong?

Small loops are welcome. Half-broken loops are welcome. The point is to move from one-off prompts to systems that keep working.


r/AI_Loops • • 20h ago

DeepMind's quantum agent teams: 24% of the gains came from agents trading unverified ideas at a 'conference' every 4 hours

2 Upvotes

DeepMind published how it used teams of Gemini 4 agents to find cheaper quantum circuits. The results are interesting, but the loop is the useful part: the paper measures where the gains actually came from.

The problem the loop solves

These circuits need thousands of qubits, so you can't run them to test them, not on classical computers and not on today's quantum chips. So the test is a proof: researchers write a Lean spec (a correctness theorem plus a cost theorem), and agents fill in the program and both proofs.

The loop

  1. Researchers write the spec once. That's the only thing humans have to review before a run
  2. Independent agent teams search in parallel (seven teams), iterating on errors from the Lean kernel
  3. An outside checker grades every submission in a clean sandbox against the frozen spec. The paper says why: agents working in their own workspace "may exploit loopholes by weakening theorem statements, altering definitions, or adding axioms." A submission passes only if the theorems and every definition they depend on are unchanged, the proof uses only standard axioms, and the cost theorem gives the claimed number
  4. Verified results go to a shared wiki, labelled verified, promising or dead end, with credit to the teams
  5. Every four hours, a conference. Agents from all teams post questions, critique claims and propose constructions for other teams to test. Unlike the wiki, this is where unverified ideas travel

Where the gains came from

The paper classifies every verified gain by where its idea started. Across the three science problems:

  • 61% from within-team ideas
  • 15% from the shared wiki
  • 24% from the conferences

The cross-team share ranged from 13% (fusion) to 63% (the drug-metabolism enzyme). The largest single drop on one problem (-34%) began as one team's conference proposal that another team refined and proved. On that problem, the lead changed teams eight times, and the final circuit combines techniques from three teams.

Results (Google's numbers, preprint, not peer reviewed)

  • Fusion: 11.8x lower cost, 5,650 -> 4,338 error-corrected qubits
  • Photochemistry: 8.22x
  • Cytochrome P450: 2.49x, 481 -> 333 qubits
  • A quantum arcsin routine: 290x, against a 2018 baseline
  • DeepMind's own caveat: real simulations would still need more than the first error-corrected quantum computers are likely to have

The Lean library, specs and verified solutions are open source: github.com/google-deepmind/formal-quantum-computation. The agent orchestration itself isn't.

What I'd take from it

  • If you can't run it, prove it, and grade outside the agent's workspace, because agents will weaken the test if they can touch it
  • Share verified results and unverified ideas through different channels. The wiki moved code; the conferences moved ideas, and they were worth more
  • Measure where your gains came from. "Agents talking to each other helps" is a vibe until you can say 24%

Paper: arxiv.org/abs/2611.09822 · Blog: deepmind.google/blog/finding-faster-quantum-algorithms-with-agents-and-formal-verification

Anyone running multi-team agent setups: have you measured how much the cross-team channel actually contributes?


r/AI_Loops • • 1d ago

A Claude Code agent setup measured its own failures: 39.6% of subagent handbacks were rejected, and the bug was in the instructions, not the model

3 Upvotes

u/a4mula shared this in the comments here last week and agreed to let me write it up. It's the most concrete example I've seen of an agent setup that measures its own failures, and his own caveats are kept below.

The setup

A multi-agent Claude Code system with different agent "seats" (a main seat, workers, Explore, an adversarial reviewer, workflow subagents and so on), hooks that validate what each one hands back, and a session-open packet that loads the knowledge each seat needs.

The loop

  1. Record: every tool call is logged with its outcome: ok, tool error, or blocked by a hook
  2. Evaluate from outside: an evaluator that isn't one of the agent seats reads that telemetry read-only (SQLite opened mode=ro). It runs every 10th session, or after any session with a failed-tool-call rate above 10%
  3. Look for specific patterns: failure rates by seat and tool, hooks that never fire, retry loops (the same failure repeated on one command), and gaps in the session-open packet, meaning things the agent didn't know it didn't know
  4. Fix the instructions, not the agent
  5. Measure again

What it found

He backfilled outcomes onto about 17.8k historical tool calls. About 300 were subagent handbacks rejected by a hook for returning the wrong JSON shape. Cross-reading the rejections against the schemas showed that one helper instruction template listed the return keys but left out one the schema requires. Another template still said a field was "not checked" long after the hook started checking it, and that accounted for 43 more.

His point: the agents were following their instructions faithfully. The rejection message told them what was wrong, but the instructions had never told them what was required. The gap was in the instructions.

Before and after (template fixes landed 2026-11-23)

  • Handback rejections: 299 of 755 (39.6%) from 11-11 to 11-21, then 9 of 52 (17.3%) on the day of the fix
  • StructuredOutput errors: 176 of 388 (45%) before, 5 of 14 (36%) after. Too few calls to tell apart

His caveats

  • The after sample is one partial day
  • The rate was already falling before the fix: 47% on 11-19, 22% on 11-20, 29% on 11-21, because the hook started validating handbacks on 11-19. The template fix can't take all the credit
  • 17.3% is not near zero, so the instructions are still missing something, and the by-reason breakdown hasn't been re-run yet

What I'd take from it

  • When a hook keeps rejecting the same thing, assume the instructions are wrong before assuming the model is
  • Diff every instruction template against the schema and hook it points to. That's cheap and it's the automated version he's building next
  • Keep the evaluator outside the agents and read-only, so it can't change what it measures

Anyone else measuring failure rates per agent role? What does your worst seat/tool pair look like?


r/AI_Loops • • 2d ago

~50 agent PRs an hour, 40-80 min to check each: the public Riemann proof-checking project just paused because the verifier became the bottleneck

1 Upvotes

There's a second claimed proof of the (generalized) Riemann hypothesis going around: Alessandro Masullo's 940-page unrefereed draft, separate from the Alpöge/Claude one. Instead of waiting for referees, a group put it on GitHub (mccorvie/riemann-masullo) and invited anyone's coding agent to formalize it in Lean. It's the biggest public multi-agent loop I've seen, and this morning it hit the bottleneck every agent loop eventually hits.

The loop

  1. Digest: a digester agent turns one section of the paper into Lean statements with sorry (no proof yet), each tagged with its page number
  2. Issue: every statement becomes its own GitHub issue labelled proof
  3. Claim: anyone's agent comments Claiming on issues from one file. A claim with no pull request after 8 hours is released automatically. Agents that give up comment Releasing with what blocked them, and that note goes to whoever takes it next
  4. Prove, split or refute: three outcomes all count. Prove it; split it into smaller lemmas left as sorry; or show it's false, best of all with a Lean proof of the negation. The one hard rule: never change a statement
  5. Gate: an automatic check builds the pull request on current main. If it only fills in proofs and adds private lemmas, it merges in minutes. If it adds definitions, statements or new sorrys, a "merger" agent or a person reads it
  6. Errata: every gap goes into ERRATA.md. Reports are checked by an integrating agent, then by two more agents in sequence, the second told to refute the first, and the strongest level is a Lean proof of the refutation

There are 8 roles in total (integrator, merger, progress tracker, reviewer, scout, digester, prover, sweeper), each with its own prompt file in the repo, and a public progress map refreshed every 20 minutes.

The numbers (about 3 days after the repo was created)

  • 2,314 pull requests merged
  • 3,468 proof issues closed, 199 still open
  • 11 issues labelled as gaps in the paper

Where it broke

At 14:10 UTC today they paused new claims. Their write-up: a check takes 40 to 80 minutes, about 50 pull requests arrived per hour, and on busy files main changed several times while a check ran, so most checks were stale by the time they finished and had to run again. 160+ pull requests were waiting.

That's the lesson. Generating proofs scaled to anyone with spare tokens. Checking them is serial, because each merge changes the thing every other check is running against. Throughput is set by the verifier, not by the number of agents, and adding agents past that point only makes the queue staler.

What they got right

  • Every unit of work is one statement that is already written, so an agent can't redefine the problem to make it easier
  • "I tried X and got stuck at Y" is an accepted result, and it's handed to the next agent
  • Refuting a statement counts as success, not failure
  • Claims expire, so an abandoned agent can't lock work forever

What it doesn't tell you

A green progress bar isn't evidence the proof holds: one hole in a core step sinks the whole thing, and the main theorem is still disputed. The paper's own author calls the draft unfinished: Chapter 13, which should deduce the hypothesis from the main trace formula, doesn't yet state its main theorem. What the project will produce either way is a machine-checked map of which parts hold, which hold after repair, and which don't.

Question for anyone running parallel agents into one repo: how do you deal with checks going stale while main keeps moving? Merge queue, file-level locks, or just throttling the agents?


r/AI_Loops • • 4d ago

A self-improving agent loop picked its best strategy at +4.3 points. On the untouched test set it was +0.7. Princeton/Meta's Strategist, broken down

3 Upvotes

Princeton and Meta posted Strategist (arXiv 2611.03618): an agent that writes, tests and keeps inference strategies (the code around a model call: chains, verifiers, voting, routing) for other models. The models stay frozen; only the strategy code evolves. Two numbers in it are useful for anyone building loops, and neither is the headline.

The loop

  1. Retrieve: search a shared library of past strategies ("blueprints"), each stored with a measurement card (accuracy, cost) and notes from earlier runs. It also returns a few blueprints from unrelated domains as "inspiration"
  2. Propose: 5 candidates per round, and every round must include at least one brand-new design, one that wraps an existing blueprint, and one straight reuse. Forced exploration, built in
  3. Evaluate: run each candidate on real samples; train and validation splits guide the search, a separate hidden split picks the winner, and a 200-sample test split is never touched until the end
  4. Accumulate: every candidate, winners and losers, goes back into the library as reusable structure, with its numbers and an analysis note. Task-specific prompts are stripped so the next task can reuse it
  5. Repeat for 10 rounds per task, then move to the next task with a bigger library

The strategist was GPT-6 Sol via Codex CLI. The executor models were small: Qwen3 0.6B, 1.7B and 4B.

Result: across 30 benchmarks, about the same accuracy as the strongest baseline (74.7% vs 74.0%) at 39% lower cost, winning on 24. Strategies found on Qwen3 then ran unchanged on GPT-5 and Gemini 2.5 and still beat baselines there.

Number 1: the library is most of the effect

Same loop, library turned off: 65.4% vs 78.7% on their 10-benchmark ablation set, a 13-point drop. Their note on why: without inspirations, the search "goes on to a narrow repetition". The loop alone just circles. The memory of what worked elsewhere is what moves it.

Number 2: selection is partly luck, and they measured it

The final pick was 4.3 points above baseline on the hidden split it was selected on, but only 0.7 points above on the untouched test split. That 3.6-point gap is the winner's curse: if you pick the best of many candidates on one set, that set flatters your pick. Their candidates didn't overfit during search (train and hidden stayed within 1.2 to 2.5 points), but the act of choosing did. Every table they report uses the test split, which is the honest move.

Where it breaks

  • Lost or traded off on 6 of 30 benchmarks, including AIME and MedQA (accuracy for cost)
  • Some wins cost a lot: on BoolQ, +16% accuracy at 31x the baseline's cost
  • Small executors, small splits (up to 100 samples per dev split). Unclear how the gains hold for frontier models as executors, beyond the transfer test
  • Search cost per task isn't in the headline. The 39% saving is inference cost after the search

The one thing to steal

Keep a fourth split nobody selects on. Most home-built loops tune on one set and report the best score on that same set, which bakes in exactly the 4.3 vs 0.7 gap above. If your loop picks a winner, your real number is on data the pick never saw.

Question: does anyone keep a strategy library across tasks in their own setup, or does every loop start from scratch?


r/AI_Loops • • 5d ago

An AI swarm designed a CPU from scratch. The trick wasn't the agents, it was a 250%-wrong simulator they taught to fix itself

1 Upvotes

Architect Labs published Frostbite yesterday: a general-purpose CPU with a new instruction set where, per their post, agent swarms "autonomously iterated over the compiler, ISA, architecture, microarchitecture, RTL, verification, and final GDS". The chip is interesting, but the loop behind it is the more useful part for anyone building agents.

The loop

  1. Explore: agents read papers and benchmarks and built quick Python models to compare architecture ideas. Output: a 141-page spec PDF
  2. Formalize: the spec gets rewritten in their own formal spec language (ASL), which lowers to Lean. By the end: 800k+ lines of Lean "contracts". After that, the PDF and the Python models were deleted. The contracts became the only source of truth
  3. Propose: swarms propose architecture changes in parallel git worktrees
  4. Check: every change is checked against the contracts, run in a fast system model (about 660x faster than RTL simulation), implemented in RTL, and measured for power
  5. Keep or drop. Across four searches plus ablations: 58 ideas tried, 37 kept

The part most loops get wrong: the fast checker drifts

Their fast model was off from the real RTL by almost 250% at first. So a separate autonomous loop recalibrates it: find the power hotspots in the RTL, trace them to counters in the spec (SRAM reads, flits sent, frame misses), and let the model write any Python function over those counters to predict power. It repeats until model and RTL agree within 5%. Only then do the swarms go back to searching on the fast model.

That's the general lesson. If your loop optimizes against a cheap proxy (a quick test, a simulator, an LLM judge), the proxy drifts, and the swarm will happily optimize the error. Re-anchor the proxy to the expensive ground truth on a schedule.

Where it could break

  • In their words, the single provable source of truth "prevents a large class of bugs, silly mistakes, and reward-hacking instances when deploying large agent swarms". Without it, they expect the agents to game the checks
  • The 4.59x perf/watt is against an undisclosed "dual-issue, in-order" core, a small, simple CPU. Against the 15 held-out workloads it's 3.83x; on the 10 the swarm tuned on, 6.02x. That gap is the overfitting tax, and they reported it, which is good practice
  • Nothing is in silicon yet. 7nm synthesis and GDS only, so the power numbers are pre-silicon
  • Some kernels ran at 64x smaller than standard benchmark sizes

What it cost

Not disclosed. No compute, agent-hours or human-hours numbers.

The one thing to steal

Make the spec machine-checkable and delete the prose once it is. Their claim is that the formal contract, not the model, is what made a large swarm safe to run. Even a much smaller version works: a test suite or schema that every agent change must pass before it's kept, and that the agents can't edit. (Note: Frostbite itself didn't go that far. Per the post, the AI wrote the spec and the contracts evolved together with the design, so the guarantee is consistency across the stack, not a rulebook fixed by humans.)

Question: for those running agent swarms on one codebase, what's your equivalent of the contract the agents can't touch? And how do you keep your fast checker honest?


r/AI_Loops • • 6d ago

Meta's agent ran 1,097 real training experiments on a production ranker. Their conclusion: the loop around the model mattered as much as the model

2 Upvotes

Meta just put out a paper (arXiv 2611.23910, NeurIPS AutoMLR workshop oral) on an agent that does ML engineering on a production search ranker, the kind with over a billion requests a day. Not a benchmark, a real model with a real A/B test at the end. The paper's own conclusion is the interesting part: "intuition suggests that a stronger underlying model is enough, but in our experience, the design of the loop around it is just as critical." So here's the loop.

The loop, per iteration

  1. Context: current config, recent wins and losses with their metric deltas, a "What Didn't Work" list, the humans' current direction, and paper summaries during research phases
  2. Think: one research call and one brainstorming call pick candidate ideas
  3. Act: about 7 implementation calls in parallel, one coherent change each (never two changes in one run, so results aren't confounded)
  4. Run: each candidate is a real training job on 64 GPUs, median 3.5 hours
  5. Check: score on an objective they calibrated to match online impact, plus "variance probes" (unchanged reruns) to measure how much of a gain is just noise
  6. Keep or reject, log it, next iteration

Humans keep four jobs: setting the objective, redirecting the search, reviewing the final model, and running the online test.

What it did

131 iterations over 31 days, 1,097 completed experiments, 325 kept (29.6%, up from 15.6% in their first version). Best model: +0.23% search volume in a large A/B test. Several wins were architecture changes the team had never tried.

Where it breaks (their list, not mine)

  • It drifted back into parameter tuning until a human redirected it. The blocklist reduces this but doesn't stop it
  • Self-correction is unreliable. Once it reverted its own change after 18 later experiments showed it was net-negative, but it doesn't do that consistently
  • Diminishing returns: the best model showed up well before the end, later iterations added nothing
  • Offline wins don't always move online, and it has no way to tell which ones will
  • The launched model had a latency regression. An agent optimizing a pure quality score won't raise that trade-off on its own

What it cost

About 360,000 GPU-hours. On top of the 1,252 completed runs, 2,798 attempts failed or were retried, mostly flaky infrastructure. Plan for the plumbing failing more often than the ideas.

The one thing to steal

The "What Didn't Work" list. Every iteration gets the full history of failed ideas with their numbers, so the agent stops re-proposing them. It's cheap, it works with any model, and it's the piece most home-built loops skip. Pair it with their "one change per run" rule and your keep/reject log actually means something.

Question for people running long loops: what's your version of the variance probe? How do you tell a real gain from noise before the loop builds on it?


r/AI_Loops • • 15d ago

45 people told me how they keep agent loops alive with the laptop closed. the 7 things that actually mattered

1 Upvotes

asked r/AI_Agents where people's agents actually run when the laptop is closed. 45+ replies. the hosting answers were all over the place (mac mini, hetzner auction box, raspberry pi in a closet, gitea actions, a vps), but the parts that keep a loop alive were the same everywhere. the best ones, with credit:

  1. a heartbeat only counts if it's watched from outside the box (Full_Tooth_a, sneakoo) if the host dies, the scheduler and the alerting die with it, and silence looks healthy. each run pings something external at start and finish, and no ping by the expected time = alert. the scariest failure is the run that never started, because there's no error to catch
  2. every run has to end with a written outcome (Moth__leaf) every scheduled run is a card on a task board and must close with a result. a run that died just sits there unfinished, and one that needs a person parks with a question instead of guessing. no monitoring needed, the open card is the alert
  3. alive isn't the same as done (Top-Explanation-4750) a heartbeat proves the run happened. it says nothing about whether the job got done. check both
  4. save state after every step, read it before the next (sneakoo, Moth__leaf) a crashed run resumes where it stopped instead of redoing the day or skipping it. each step reads the state first and doesn't assume the last one finished
  5. the box itself (newtablecloth, who runs a bunch of mac minis 24/7) sudo pmset -a autorestart 1 so it boots after a power cut, auto login so the session comes back, macos auto-updates off and done by hand on a weekend
  6. start local, hand off when it gets long (look) start a task on the laptop, and when it turns out long, push a wip commit plus a handoff note and continue on the always-on box. close the laptop
  7. agent under its own user, no sudo a bad rm -rf takes out its own workspace and not everything else on the server

what's the one thing that made ur loop survive a week unattended?


r/AI_Loops • • 16d ago

goldman's line for coding agents: by role, not by model. who owns your loops at work?

1 Upvotes

goldman just limited claude code and copilot to its ~12,000 engineers. traders and bankers who'd built their own agent tools (watching client flows, modeling positions) lost access. the claude agents engineering runs in the back office stayed.

the line they drew isn't about the model. it's about who owns a loop once it's running: a trader's script can go into daily use with no review, no tests, and no one who can fix it.

for anyone running loops at work: who owns yours? if u left tomorrow, would anyone know it exists, let alone fix it when it breaks?

full breakdown: https://www.reddit.com/r/ClaudeAI/comments/1xrstm7/


r/AI_Loops • • 18d ago

escalation loop: cheap decision model judges everything, opus only on the unsure ones. calibration beat raw accuracy

Thumbnail reddit.com
2 Upvotes

r/AI_Loops • • 19d ago

6 claude code subagents, 106 tasks, 35h. real parallelism was 1.8 agents, and the bottleneck was test slots, merge locks and the humans

Post image
2 Upvotes

r/AI_Loops • • 20d ago

the human typing junk into idle claude sessions to keep the cache warm is a loop design bug

2 Upvotes

small thing from the HN agent setup thread that i think is underrated for anyone running loops: someone runs 3 claude sessions at once and types junk into the idle ones every 30 to 45 min so the prompt cache doesn't expire.

that's a loop design problem showing up as a human chore. if your orchestrator waits on a long subagent or test run, the main session goes cold and the next turn pays to rewrite the whole prefix. on claude code the default window is 1h on a subscription, but only 5 min once you're on credits or an api key, and the 1h option costs more per write.

stuff that seems to help:

  • keep the waiting outside the model. a script waits on the test run and wakes the session with one line when it's done, so you only pay when something happened
  • short phases with a fresh context and a small note on disk, so a cold cache costs a small prefix instead of a 500k one
  • pick the ttl from your real gaps between turns, not from vibes

how are you handling idle time in your loops, do you keep sessions warm or design around it?


r/AI_Loops • • 21d ago

event-driven agent loop: a dumb cron diff wakes claude only when the server state changes, after a polling loop burned 100M tokens in a day

Thumbnail reddit.com
2 Upvotes

r/AI_Loops • • 22d ago

grade every agent result by the human touches right before it (a minecraft run did this with A to D evidence levels)

2 Upvotes

someone ran 4 cheap coding agents in a minecraft survival world for 12 days and did something i want in every long agent run: every milestone gets an evidence level, assigned by a mechanical rule over the server log, no human judgement.

A: no operator command of any kind before it B: only harmless help (skipping the night) C: assistance was active (buffs, keep inventory) D: a teleport or grant fired right before it. not an agent result

so the early game came out A, and the ending was honestly labeled D, done by console commands. that one table says more than any "agents beat minecraft" headline.

for normal agent loops the same idea maps pretty directly: log every human touch (approval, manual edit, retry with a hint, a forced rerun) and grade each result by the touches right before it. then "the agent shipped 40 PRs this week" turns into "12 were A, the rest needed a nudge".

how do you currently tell what your agent did on its own vs what you steered it into?


r/AI_Loops • • 25d ago

deepseek open-sourced their always-on coding agent. the loop is built around one rule: don't waste human attention

1 Upvotes

deepseek's harness team dropped dsh-superagent today (github: deepseek-ai/dsh-superagent-prototype, MIT, research prototype). it's an always-on coding agent that sits on one github repo and picks up work when someone pings it. went through the docs, the loop design is the good part.

the main rule: take as little human attention as possible. everything it does is priced in attention.

the loop, roughly:

  1. trigger: only an allowed person mentioning it, or a rule the team wrote. bots can only produce "candidates", never real requests
  2. new proactive rules start record-only: it logs what it would have done until u trust it
  3. each accepted ticket gets its own worker session and directory
  4. shell commands move to background after 5s so the worker can still take new messages mid-run. background work gets max 30 min after a turn, then it's killed and reported
  5. it speaks 3 times max: confirm once, then result, question, or "can't finish". silent while working
  6. one concrete question at a time, never buried in a report
  7. stops by impact: a local change goes all the way to a reviewable PR, anything needing a design decision stops with a question
  8. panel shows only tickets waiting on a person. healthy = empty

the part i like most is the noise rule: if the agent is noisy, make the prompts shorter and stricter or pause it. don't add more messages to explain the noise.

question: does anyone here run a record-only / shadow mode before letting an agent act? how long did u keep it there before trusting it?


r/AI_Loops • • 25d ago

the cheap-implementer / smart-reviewer loop: when it saves money and when it doubles the bill

1 Upvotes

saw a good thread in r/ClaudeCode today about delegating implementation to a cheaper model (deepseek flash, sonnet, whatever) while claude/opus stays the boss. the takes split two ways, and both have a point.

camp 1: a single agent is the cheapest way to finish anything, multi-agent mostly adds turns. one person cut turns ~50% with a batch-edit tool that runs checks in the same call. fewer turns beat cheaper tokens.

camp 2: a smart orchestrator plus cheaper workers (sonnet coder + qa, compacting at 250k) saved a lot, and the orchestrator gets token metrics from the workers so it can tune them.

the loop that seems to make camp 2 actually pay off:

  1. smart model writes the spec plus acceptance tests, nothing else
  2. cheap model loops: implement, run tests, retry, hard cap ~5 tries
  3. smart model sees only pass/fail + diff stat, not the full diff
  4. escalate to a real review only on repeated failure or risky files (auth, db, payments)
  5. one git worktree per task so a failed run costs nothing to throw away

the economics break the moment step 3 becomes "opus reads every line". then u pay twice.

question for this sub: where do u put the escalation trigger? test failures, diff size, file paths, or let the cheap model decide when it's stuck?


r/AI_Loops • • 26d ago

7 loop patterns hiding inside xAI's Grok Bot playbook

1 Upvotes

went through xai's grok bot guides this week. almost every good tip in them is about how the loop is wired. the ones worth stealing:

  • polling loop: every 30 min a bot checks PRs for review comments, failing CI, merge conflicts. boring, but it's the thing that keeps agents from sitting blocked for hours
  • P0 mode: same loop at 5 min intervals that actively steers the agents. costs more tokens, so you only flip it on when something's on fire. a loop with a throttle knob, basically
  • outer loop: one bot only gathers context and writes a clean prompt, a different bot builds. the context bot never touches code
  • closed feedback loop: give the agent a way to run and test its own output so you're not the verifier
  • bots reviewing bots: an ops bot reads other bots' reasoning to stop repeat mistakes. that's the self-improving part, a second loop running over the first one's traces
  • feedback → standing rule: when a human says "too salesy" once, it becomes a permanent rule. the loop learns from one correction and you don't have to repeat it
  • guardrail inside the loop: "reps can't approve their own discounts". the loop that proposes can't be the loop that approves

the P0 throttle one is the most underrated imo. most ppl run one fixed cadence and either burn tokens or react way too slow

which of these are you actually running? and what interval did you land on for the polling one?


r/AI_Loops • • Jun 24 '26

Agentic Looping done easy (python)

2 Upvotes

I built my own loops framework.

It's totally customizable and starts with strict rules: ruff lint, pyling pyright, semgrep, etc. And added a preferences file for my coding quirks. Like I HATE when agents use underscore naming and ruff and pylint dont catch that. So i made it a rule in my preferences python file. And there's a small dumb shell script that takes in iteration count and max minutes alloted to each agent. Then it just loops. I just the framework for all my projects now. Just drop in my plan in the plan.md and adjust it periodically. Apparently there are companies building and trying to sell stuff like this as a product, which is ridiculous to me. https://github.com/rxdt/py_ralph_frame


r/AI_Loops • • Jun 20 '26

the loop starts after the first prompt is done

1 Upvotes

watched this and the useful part is not “agents can work longer.”

it’s the handoff after a task finishes.

you ask for code, then you run it, check it, commit it, open a PR, wait for review comments, paste the comments back, ask another agent to review, merge it, start the next piece.

that whole chain is the actual loop. most of us are still running it manually.

the interesting move is asking the agent to take one extra step at a time: run the dev server, check the UI, file the PR, watch comments, fix review notes, ask another thread to review, then move to the next PR.

not fully autonomous forever. more like: find the parts where you keep becoming the courier between tools and make the loop carry its own context.

video: https://www.youtube.com/watch?v=iJVJwmCKW9o


loops are the new agents? or hype? wdyt?


r/AI_Loops • • Jun 20 '26

what should a loop quote before it starts?

1 Upvotes

i keep thinking the preflight screen matters more than the prompt. before an AI loop runs, it should probably tell you how long it expects to run, what tools/accounts it will touch, what it thinks success means, what will make it stop, and where it needs a human yes.

otherwise “start” is too vague. it should feel closer to approving a small job.


r/AI_Loops • • Jun 17 '26

what does your loop check before it says done?

2 Upvotes

curious about the boring part. not the prompt, not the model. the actual signal.

row exists, webhook fired, file changed, test passed, human approved, budget stayed under X, no duplicate send, whatever.

what’s the check that makes your loop stop lying to you?


r/AI_Loops • • Jun 15 '26

what's one task u want running while you're not looking?

1 Upvotes

trying to collect real loop ideas, not agent demos. mine rn is: watch a few sources, pick one useful thing, draft it, then check if it actually landed. what’s yours?

bonus if u include the boring stop condition


r/AI_Loops • • Jun 14 '26

Welcome to r/AI_Loops: stop prompting, start designing loops

1 Upvotes

Welcome to r/AI_Loops.

This community is for people moving past one-off prompts and into loops: recurring AI workflows that run, check results, learn from feedback, and repeat.

A loop can be simple:

  1. Watch a source
  2. Decide what matters
  3. Act
  4. Verify the result
  5. Update memory, rules, or the next step
  6. Run again

The focus here is practical loopcraft, not vague AGI hype.

Good posts:

  • Show a loop you built
  • Share what broke after the first run
  • Ask how to design a safer or better loop
  • Post evals, traces, diagrams, prompts, code, or operating notes
  • Debate human-in-the-loop vs self-improving loops
  • Compare agent loops, workflow loops, memory loops, eval loops, and recursive improvement patterns

Early rule of thumb: real experience beats generic takes.

If you are building loops, studying loops, or trying to understand why loops may be the next paradigm after prompts and agents, you are in the right place.

First question: what is the smallest useful AI loop you would trust to run every day?