Coding agents fail quietly when they can't run the real toolchain: lessons from running agents on macOS 24/7

Reddit r/AI_Agents News

Summary

A practitioner shares lessons from running coding agents 24/7 on a real macOS machine for iOS development, finding that strict 'definition of done' rules, visual Simulator feedback, persistent warm environments, and environment-state handling matter more than model quality.

Most coding agents run in Linux sandboxes. That's fine for web and Python, but for anything tied to a platform toolchain they start guessing. My case is iOS: the agent writes Swift, can't run xcodebuild or the Simulator, and hands back code it never compiled. I've been experimenting with giving agents a real, always-on macOS machine instead, and a few things surprised me: A "definition of done" beats a better model. Once the agent's instructions said "not done until the build succeeds and tests pass", it started fixing its own errors instead of returning them. Visual feedback closes the loop. Having the agent take Simulator screenshots before and after UI changes made it notice layout bugs on its own. Persistence matters more than speed. A warm machine with caches, signed-in tools and a session that survives disconnects (tmux) beat a fast but fresh sandbox for long tasks. Environment state is the real hard part. Keychains locked over SSH, modal license dialogs the agent can't see, OS updates rebooting mid-task: none of these are model problems. Licensing shapes the infra. macOS can only be leased to one customer for 24+ hours, so "spin up a Mac per task for 5 minutes" isn't straightforward. Curious how others handle this: are you running agents on real OS environments (macOS, Windows, devices), or keeping everything in Linux containers? What broke first?
Original Article

Similar Articles

What 9 years of shipping iOS apps changed about how I build agents

Reddit r/AI_Agents

An experienced iOS developer shares nine years of mobile engineering lessons applied to building AI agents, emphasizing tool output validation, stale-state handling, and treating the code around the model—not the model itself—as the reliability layer.

Coding Agents Won’t Be Won by Prompts, but by Runtime Infrastructure

Reddit r/AI_Agents

As coding agents become more capable, the bottleneck shifts from model quality to the infrastructure that supports long-running tasks, including durable state, permissions, checkpoints, observability, and cost controls. The author argues that the best agent products resemble runtime and workflow systems rather than just improved prompt interfaces.

Coding agents make my life so much harder.

Reddit r/AI_Agents

A developer vents that running multiple long-lived coding agents has replaced hands-on coding with exhausting context-switching, code review, and question-answering, and asks the community how they cope — fewer agents, structured numbered responses, or scheduled review breaks.