@omarsar0: Great tips. In practice, this is how it roughly looks to run agents autonomously for hours or days. /goal or /loop to k…
Summary
A thread sharing practical tips for running AI agents autonomously for extended periods, focusing on the Opus model with advice on permissions, dynamic workflows, and verification.
View Cached Full Text
Cached at: 06/08/26, 09:28 PM
Great tips.
In practice, this is how it roughly looks to run agents autonomously for hours or days.
/goal or /loop to keep it going.
Verification is crucial here.
We are going to go deep into this in the next couple of weeks in the academy.
Join us: https://academy.dair.ai/events
I wanted to add an extra note to this, as there is a bit too much hype on the agent loops stuff. This works great for maintaining codebases and things that can be verified easily (in other words, where you can set clear conditions that the agent can meet). However, for a lot of other domains and real-world use cases, human in the loop is necessary. So I think a better approach is designing loops that support autonomous runs while enabling easy human collaboration and inputs. That’s what I have been working on recently, and I think it’s important to combat AI slop, which I am afraid these naive loops will generate purely from an AI model’s capability and lack of knowledge and world understanding.
The current “loop” conversation is mostly assuming conditions that can be automatically verified. Human-verified can be baked in as well, like an escalation trigger, but from my experience with coding agents on a loop, they aggressively escalate to humans if that option is there, so this has to be set up carefully.
Exactly. Lots of sloppy code getting generated for sure.
Similar Articles
@omarsar0: How to effectively run autonomous long-running coding agents? This is one of the most exciting discussions on agents I'…
A recorded discussion about effectively running autonomous long-running coding agents, including insights on goal setting, model selection, and best practices, made freely available.
@ericzakariasson: https://x.com/ericzakariasson/status/2070493377267646797
A practical guide on setting up iterative loops for AI coding agents with defined stop conditions, cloud execution, and notification channels to offload work without constant babysitting.
@hanakoxbt: https://x.com/hanakoxbt/status/2091515787366306154
The article explains how using loops for automated checks and graphs for workflow optimization can reduce manual oversight in managing AI agents.
@omarsar0: As we target more complex use of coding agents (e.g., dynamic workflows and /goals) on long-horizon tasks, you will sta…
Discusses challenges with coding agents in complex long-horizon tasks, highlighting bizarre user experience issues and inefficient agent interactions, and advocates for more control over the agent harness.
@s4yonnara: https://x.com/s4yonnara/status/2070797048471756948
A guide on building autonomous loops for AI coding agents, explaining how to design systems that allow agents to run tasks repeatedly without manual intervention, with conditions for when loops are worth it and how to build them safely.