---
title: "Loop Engineering in Production: The Loops We Run and What Stops Them | Vindler Blog"
description: "Loop engineering is the design of automated cycles that run coding agents for you: a trigger, a bounded task, a check the agent does not control, a stop condition and a point where a person takes over. The definitions are written. This post is about loops that run today, in a production multi-agent product, in a game studio pipeline and in our own operation, and the seven decisions every one of them needed."
url: "https://vindler.solutions/blog/loop-engineering-in-production"
locale: "en"
updatedAt: "2026-11-25"
---

[Back to Blog](https://vindler.solutions/blog)

Loop Engineering in Production: The Loops We Run and What Stops Them

[Loop Engineering](https://vindler.solutions/blog?tag=Loop%20Engineering)[Agent Loop](https://vindler.solutions/blog?tag=Agent%20Loop)[Coding Agents](https://vindler.solutions/blog?tag=Coding%20Agents)[Claude Code](https://vindler.solutions/blog?tag=Claude%20Code)[Claude Agent SDK](https://vindler.solutions/blog?tag=Claude%20Agent%20SDK)[Agentic Engineering](https://vindler.solutions/blog?tag=Agentic%20Engineering)[AI Software Factory](https://vindler.solutions/blog?tag=AI%20Software%20Factory)[Evals](https://vindler.solutions/blog?tag=Evals)[CI/CD](https://vindler.solutions/blog?tag=CI%2FCD)[Developer Productivity](https://vindler.solutions/blog?tag=Developer%20Productivity)

# Loop Engineering in Production: The Loops We Run and What Stops Them

Loop engineering is the design of automated cycles that run coding agents for you: a trigger, a bounded task, a check the agent does not control, a stop condition and a point where a person takes over. The definitions are written. This post is about loops that run today, in a production multi-agent product, in a game studio pipeline and in our own operation, and the seven decisions every one of them needed.

November 25, 2026

1 minute

Share:

_The loops we run and what stops them._

In June Addy Osmani wrote up an idea several people building coding agents had been circling, after Peter Steinberger said publicly that developers should stop prompting their agents and design the loops that prompt them. The name stuck. An arXiv paper from August gives the tightest definition: loop engineering is designing automated control structures that repeatedly invoke coding agents, triggered on a schedule or by events, with each run bounded by a stop condition a machine can check.

IBM and others place it as the next layer after prompt engineering, context engineering and harness engineering. The harness is the environment the agent works in. The loop decides when the agent runs, what it may touch, who checks the result and when everything stops.

Definitions are easy to find. Loops that have run for months are harder to find written down, so here are ours.

## The seven decisions every loop needs

Each loop below answered the same seven questions before it ran unattended.

1.  **Trigger.** A schedule, an event (a failing build, a new ticket, a production error) or a person pressing a button.
2.  **Scope.** What the agent may change, in which repositories, with which credentials.
3.  **Check.** What decides whether the output is right. Never the agent's own report.
4.  **Stop condition.** Success, a retry cap, or a budget limit, whichever comes first.
5.  **State.** What carries over between runs, so the loop does not repeat last week's work or last week's mistake.
6.  **Handoff.** Where a person enters, and what evidence they get.
7.  **Budget.** Spend per run and per day, recorded and capped.

The arXiv paper lists almost the same concerns: persisting state, verifying independently of the implementing agent, bounding cost, restricting unattended changes and defining when humans step in. They are the questions that come up as soon as nobody is watching the terminal.

## Loops in a production multi-agent product

For most of 2026 Carlos, who founded Vindler, worked inside the AI engineering team of a SaaS platform used by millions, on its production multi-agent assistant. Several loops came out of that work.

### Production failure to pinned regression

A production log entry or a failing evaluation starts it. The trace is matched to the conversation, Claude Code proposes a patch, the flow is re-run in a browser against the real product, and the case becomes a new evaluation example so it cannot come back quietly. The agent triages and drafts; an engineer merges. The stop condition is the re-run passing in the browser. The state is the evaluation set, which grows with every incident.

### Validate, revise, commit, inside the agent

Inside the product itself, an editing agent proposes a change as a structured patch, validates it with a dry run, revises if validation fails, and commits only a patch that passes, with a retry cap. A destructive change waits for the user's approval. This is a loop at the smallest scale, and it is what stopped the agent from reporting work as done when the product disagreed.

### Generate, critique, fix

For generated output a person would judge by eye, such as a landing page, the loop we designed for the team builds the result, renders a screenshot, runs a static check and a vision check against the brief, and sends the critique back to the generator, bounded to one or two fix passes. The rule behind it: the model that wrote the page must not be its only judge. We proposed it as a tool the agent calls first, promoted to a mandatory step if the evaluations show the agent skipping it.

### Evaluations as a merge gate

Every pull request that touches an agent runs several hundred evaluation examples in CI, and the evaluators read the end state back from the product. The gate blocks on new failures compared with the main branch, because an absolute failure budget with no baseline makes a green run meaningless. This turns the evaluation set from a report into a gate, and it is what makes the other loops safe to automate: a loop can propose anything, and the gate still decides.

### The model upgrade loop

New model versions arrive every few weeks. The upgrade became a packaged skill: swap the model in a branch, run the evaluation suites, price the run, and produce a comparison an engineer can approve or reject. A stricter new model also turned out to be a bug finder: it surfaced two silent production bugs before the switch shipped.

### Production errors mined into evaluations

Failures from production feed back into the agent's own instructions and the test set. In one case, putting a capabilities reference back into the prompt clearly raised the share of tasks completed on the first try and cut the patches the validator rejected, for a small increase in prompt tokens. The point is the direction of the loop: production teaches the test set, and the test set protects production.

We also turned individual coding-agent licences on that team into a shared practice: shared skills, one review rubric that runs locally and in CI, and agent-driven browser tests.

## A loop in a game studio pipeline

For Voodoo we built an autonomous Unity pipeline that takes a one-paragraph brief to a designed, built and tested feature in a live game. The full write-up is in [An Autonomous Unity Pipeline from Brief to Playable Feature](https://vindler.solutions/blog/autonomous-feature-pipeline-mobile-gaming). Two of its decisions matter here.

The first is that a single long agent run does not work. The pipeline splits into stages, each with its own managed context, so no stage carries the noise of the ones before it. The second is the handoff: one human approval gate between design and build, and five independent layers of verification after it. The agent that builds the feature never decides that it works.

## Loops in our own operation

Vindler runs on scheduled agent jobs on an always-on machine. A few of them show the seven decisions at small scale.

An hourly job scans a freelance marketplace for projects that fit our work. The trigger is the clock, the scope is read only, and the check is a scoring gate: a project that does not pass the gate produces nothing, and one that does opens a thread for a person, who decides whether to apply. Nothing automated ever submits a proposal.

A watchdog runs several times a day and reports any job that is late or missing. Every evening another job compares the schedule we declared in a file with what is actually registered on each machine, and reports the drift. A loop you cannot see failing is worse than no loop.

## What we learned

**The check is the product.** Every loop we trust has a check that looks at the end state: the product in a browser, the evaluation score, the test result. Every loop that went wrong trusted something the agent said about itself.

**Bound everything.** Retries, passes, spend and scope. An unbounded review loop between two agents will trade comments until the budget runs out.

**Make the handoff cheap.** If the person at the end needs twenty minutes to understand what the agent did, the loop saves nothing. The handoff should carry the evidence: the diff, the check results, the trace and the cost.

**Start where a machine can say pass or fail.** Dependency bumps, lint fixes, failing tests, regressions with a reproduction. Loops on tasks that need taste come later, with a stronger check.

**Keep state outside the agent.** The evaluation set, the trace store and the instructions file are what make next week's run better than this week's. The agent itself remembers nothing.

## Where this goes next

A set of loops with shared checks, shared state and a review gate is what the industry now calls a software factory. We wrote about what that takes in [What Is an AI Software Factory](https://vindler.solutions/blog/what-is-an-ai-software-factory). If you want help building the first loops for your team, the details are on our [AI software factory page](https://vindler.solutions/hire/ai-software-factory).

## Sources

1.  [Loop Engineering](https://addyosmani.com/blog/loop-engineering/), Addy Osmani, June 2026.
2.  [Loop Engineering: Building Blocks, Adoption, and Impact](https://arxiv.org/pdf/2608.21884), arXiv.
3.  [What is loop engineering?](https://www.ibm.com/think/topics/loop-engineering), IBM.
4.  [Harness engineering for coding agent users](https://martinfowler.com/articles/harness-engineering.html), Birgitta Böckeler on martinfowler.com.
5.  [Agent Harness Engineering](https://addyosmani.com/blog/agent-harness-engineering/), Addy Osmani.

Share:

Carlos Dutra, founder of Vindler Solutions

### Carlos Dutra

Founder of Vindler Solutions, where I help organizations put AI into production and design the operating model around it. I write about AI adoption, agent architectures, and what actually changes inside a company once these systems ship. Completed Leading the AI-Driven Organization at MIT Sloan Executive Education.

[Get in Touch](https://vindler.solutions/contact)

## Related Posts

[What Is an AI Software Factory, and What It Takes to Run One

AI Software FactorySoftware FactoryAgentic EngineeringCoding AgentsLoop EngineeringClaude CodeOpenAI CodexAI SDLCDeveloper ProductivityCI/CD

### What Is an AI Software Factory, and What It Takes to Run One

"Software factory" is the label of the year for teams that let coding agents take work from a ticket to a verified pull request. Most of what ranks for the term is written by the companies selling the agents. This is the operating detail they leave out: who checks the agent's work, what stops a run, what a merged change costs, and the one number that decides whether a factory gets more scope.

November 25, 2026

1 minute](https://vindler.solutions/blog/what-is-an-ai-software-factory)[AI Agent Observability and Evaluation Partners in 2026: A Comparison You Can Check

AI ObservabilityLLM EvaluationEvalsLangfuseArizeDatadogAI AgentsVendor EvaluationComparisonDue Diligence

### AI Agent Observability and Evaluation Partners in 2026: A Comparison You Can Check

Search for help with agent tracing, evals or LLM cost tracking and you get tool vendors' explainers and one vendor-funded ranking. This comparison names the firms that implement Langfuse, Arize, Datadog and Braintrust for clients, judges them on criteria you can verify, links every fact to its source, and discloses our own ties to Langfuse and Arize.

November 24, 2026

1 minute](https://vindler.solutions/blog/ai-agent-observability-evaluation-partners-2026)[Claude and MCP Rollout Partners in 2026: A Comparison You Can Check

ClaudeAnthropicMCPClaude CodeClaude EnterpriseAI GovernanceVendor EvaluationComparisonDue Diligence

### Claude and MCP Rollout Partners in 2026: A Comparison You Can Check

Anthropic's partner directory lists 380 firms, and most of them tick almost every service box. This comparison reads the directory for what its tiers actually measure, names firms with published Claude and MCP work, judges them on criteria a buyer can verify, and links every fact to its source.

November 24, 2026

1 minute](https://vindler.solutions/blog/claude-mcp-rollout-partners-2026)

### Subscribe to our newsletter

Get notified when we publish new posts on AI development, AWS, and software engineering.

## Structured data

```json
{"@context":"https://schema.org","@type":"Organization","@id":"https://vindler.solutions/#organization","name":"Vindler Solutions","alternateName":"Vindler","legalName":"Vindler Desenvolvimento de Sistemas de IA Ltda - EPP","url":"https://vindler.solutions","logo":"https://vindler.solutions/logo.png","description":"Vindler is a global AI engineering consultancy specializing in custom AI solutions, LLM integration, and enterprise-grade AI systems.","foundingDate":"2025-06-02","foundingLocation":{"@type":"Place","name":"São Paulo, Brazil"},"taxID":"61.102.920/0001-05","email":"contact@vindler.solutions","telephone":"+1-646-846-5339","numberOfEmployees":{"@type":"QuantitativeValue","minValue":1,"maxValue":10},"areaServed":[{"@type":"Country","name":"United States"},{"@type":"Place","name":"Europe"},{"@type":"Country","name":"Brazil"}],"knowsAbout":["Multi-agent systems","Retrieval-augmented generation","Voice AI agents","LangChain","LangGraph","LiveKit","AWS Bedrock","Model Context Protocol","LLM observability and evaluation"],"founder":{"@type":"Person","@id":"https://vindler.solutions/about#carlos-dutra","name":"Carlos Dutra","jobTitle":"Founder and CEO","url":"https://vindler.solutions/about","sameAs":["https://www.linkedin.com/in/carlosdutra","https://github.com/cdutr"]},"contactPoint":{"@type":"ContactPoint","contactType":"Customer Support","email":"contact@vindler.solutions","telephone":"+1-646-846-5339","url":"https://vindler.solutions/contact","availableLanguage":["English","Portuguese","Spanish"]},"address":[{"@type":"PostalAddress","addressLocality":"São Paulo","addressRegion":"SP","addressCountry":"BR","streetAddress":"Av. Paulista, 1636"},{"@type":"PostalAddress","addressLocality":"New York","addressRegion":"NY","addressCountry":"US","streetAddress":"524 Broadway","postalCode":"10012"}],"sameAs":["https://www.linkedin.com/company/vindler-tech/","https://github.com/vindler-solutions","https://clutch.co/profile/vindler-solutions","https://www.wikidata.org/wiki/Q141018871","https://www.crunchbase.com/organization/vindler-solutions","https://www.g2.com/products/vindler-solutions/reviews","https://www.designrush.com/agency/profile/vindler-solutions"],"memberOf":{"@type":"Organization","name":"Brazilian-American Chamber of Commerce, Inc.","url":"https://brazilcham.com/","sameAs":"https://www.linkedin.com/company/brazilian-american-chamber-of-commerce-inc./"},"hasOfferCatalog":{"@type":"OfferCatalog","name":"AI Engineering Services","itemListElement":[{"@type":"Offer","itemOffered":{"@type":"Service","name":"AI Engineering","description":"Custom AI systems development from prototyping to deployment."}},{"@type":"Offer","itemOffered":{"@type":"Service","name":"Custom ChatBots & Agents","description":"Intelligent, multilingual, and domain-specific conversational AI."}},{"@type":"Offer","itemOffered":{"@type":"Service","name":"AI Architecture Consultancy","description":"Designing scalable, secure, and ethical AI infrastructure for enterprises."}},{"@type":"Offer","itemOffered":{"@type":"Service","name":"Training & Team Building","description":"Upskill your team or recruit top-tier AI talent."}}]}}
```

```json
{"@context":"https://schema.org","@type":"BlogPosting","headline":"Loop Engineering in Production: The Loops We Run and What Stops Them","description":"Loop engineering is the design of automated cycles that run coding agents for you: a trigger, a bounded task, a check the agent does not control, a stop condition and a point where a person takes over. The definitions are written. This post is about loops that run today, in a production multi-agent product, in a game studio pipeline and in our own operation, and the seven decisions every one of them needed.","image":"https://vindler.solutions/images/blog/loop-engineering-nano-v3.jpg","datePublished":"2026-11-25","dateModified":"2026-11-25","author":{"@type":"Person","@id":"https://vindler.solutions/about#carlos-dutra","name":"Carlos Dutra","jobTitle":"Founder and CEO, Vindler","url":"https://vindler.solutions/about"},"publisher":{"@type":"Organization","@id":"https://vindler.solutions/#organization","name":"Vindler","logo":{"@type":"ImageObject","url":"https://vindler.solutions/logo.png"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://vindler.solutions/blog/loop-engineering-in-production"}}
```
