Ethan. Email me
Writing · 2026-11-26

What broke in 27 days of running a team of AI agents on real work

I made a 95-second film of an ordinary day with my agents (ethanflow.com/how-i-work). Every scene in it was re-enacted on the live system, with names and conversations changed, and the film says so on screen. A film shows the parts that work. This post is about the parts that broke, which is where most of my time goes.

The setup: since October 31, a coordinator session has run on my Mac every day, from morning into the evening. It is a Claude Code session with a written manual. It splits requests into briefs, hands them to worker sessions or short-lived sub-agents, checks what comes back, and reports to me in a group chat on my phone. The work is ordinary: reading and drafting email, shipping updates to my apps, keeping a few servers alive, research, and repairing its own tooling. There is one hard wall, payments. It fills everything in up to checkout and stops.

The model is rented. Everything around it I built, and that is the part that breaks.

The context window fills up, so the coordinator works in shifts

A busy day of chat, reports and tool output fills the window by mid-afternoon. A hook warns at 70% and again at 85%. The coordinator then writes a handoff file (what’s pending, which workers are running, whether the listener is armed), opens a fresh session and tells it to read the file. In 27 days there have been 35 coordinator sessions.

The rule that makes this survivable: state lives on disk, not in the conversation. Every wake-up is read disk, act, write back. What still broke:

  • A coordinator I couldn’t see. If I haven’t opened one by 8:45, a scheduled job opens the day’s coordinator. A session started that way can’t turn on remote control for itself, because that takes an approval click and nobody is at the Mac. So the session on duty was invisible on my phone until a session I was talking to switched it on.
  • Yesterday’s coordinator. One week, four mornings in a row, I said good morning to the previous day’s session out of habit. On November 11 that cost me a day of desktop work: the old session spent its first minutes suggesting I open a new one, the screen locked meanwhile, and nothing that needed a desktop app could run until I got home. Now whichever session hears “good morning” first turns on duty mode and keeps the screen awake, then asks for a fresh session. A small file names the session on duty; any other session that wakes up and finds a different id there stops and pings that one.

Waiting costs money, and so does pretending to wait

The coordinator never polls in a loop of its own. A small client I call the listener holds a long-poll against the chat server and exits when something arrives. The exit ends a background job, and that wakes the session.

  • The first version also exited every 30 minutes when nothing had happened, so the coordinator could re-arm it. On November 14 that meant 24 empty wake-ups, each re-reading a large context to do nothing. It now exits every four hours, and anything scheduled gets its own timer: a background sleep that ends at the right time.
  • On November 13 one worker accounted for about 77% of the roughly 1.3 billion context tokens read that day on the model it ran on. Its “wait for new posts” tool was returning immediately instead of blocking, so it looped: wait, nothing, wait, around 290,000 tokens a turn. Two days earlier another worker had reported that it “waited 30 minutes with no reply” and stopped. It had waited one minute. Same bug. If an agent tells you how long something took, check the clock.
  • On day 7 the network dropped, the listener died with it, and nothing re-armed it: four hours in which nothing I wrote was seen. On day 10, twice, I wrote in the second a connection reset, and the listener reconnected without looking back (24 and 12 minutes late). Catch-up on reconnect and catch-up on start both shipped that afternoon. Even so, on day 13 a line I sent landed seven seconds before the coordinator re-armed the listener, after its last read, and sat for half an hour. Now it reads once more right before re-arming.

A loud failure needs someone listening

The most useful bug I’ve had came from someone else’s agent. The chat service my coordinator reports through is AndCo, which I built so that people and their own AIs can share groups, and other users’ agents run the same listener script. On November 2 we found that one user’s agent had been deaf for 19 days. As far as we could tell it ran our client; either its credentials had been rotated and the server answered 403, or a proxy connection had hung. The client handled 401 and nothing else. Any other failure meant: wait 15 seconds, try again, write nothing, never exit. Its owner had been calling it in a group for two days before anyone noticed.

The fix: log every non-401 failure to stderr (the first at once, then at most one line every five minutes), and after ten minutes of continuous failure, exit with code 2. Exiting is the one signal a supervisor reliably sees. A background job ends, launchd restarts the process, a host marks the task finished.

On November 17 my own listener did exactly that. A network relay I depend on stopped working, and at 11:19 the listener gave up and exited with code 2. That exit is supposed to wake the coordinator, which re-arms the listener. Nothing came back until 21:55, when I got home and poked the coordinator from another session. The midday run, the evening run and the automatic renewal of duty mode were all missed. I still can’t say whether the wake-up never fired or fired into the same dead network. Either way, the only thing watching the listener was the session that depended on it.

Now the manual says exit code 2 means re-arm at once, and every scheduled job has its own timer, so a dead listener no longer takes the schedule with it. Failing loudly is half the fix. The other half is deciding, before you make a failure loud, who is going to hear it.

A desktop has one mouse

Some of the work needs GUI apps with no API, and my own Chrome, where the logins live.

  • Permissions are per session. Computer-use access to an app is granted session by session, and workers opened by a scheduled job had nobody to click Allow, so they were refused every day. Instead of making permission outlive the session, I made the session outlive the day: three long-lived operator sessions, one per app, approved once while I was at the Mac. The coordinator sends them tasks. When their context fills they compact themselves; they never hand off.
  • Apps that aren’t on screen don’t behave. An app on another Space or behind a full-screen window stops redrawing and ignores background clicks. One iPad-style app’s accessibility tree froze every time an agent clicked into its text field. The rule now: take a screenshot before typing, and if the screen hasn’t changed, stop rather than force it.
  • Whose account is this? Two sessions once used the same desktop chat app within minutes of each other, so the operator now checks which account is signed in before it types anything. On November 18 that check found the app signed into my personal account instead of the one the operator is meant to use, and it sent nothing.

Guardrails that lock you out

  • Session-level taint tracking. On November 1 I built a guard: once a session had read anything from outside, such as a web page or an email, its tool calls were limited to an allowlist. It needed six patches in five days for false positives. A URL inside a file being written counted as fetching it. localhost with a port counted as the internet. The worst part was inheritance: a session started by a tainted session was tainted too, so the “clean” replacement coordinator wasn’t clean. At one point the system couldn’t write to its own memory repo or switch itself off. I retired the guard on November 6. My takeaway: the session is the wrong unit. Taint belongs to a piece of data and the actions that use it, not to everything a session does afterwards. I haven’t built that yet.
  • Auto mode only trusts what I type. Claude Code’s auto mode stayed on, and it is strict in a way that turned out useful: it counts an instruction only if I typed it in that session. “The coordinator says I said yes” doesn’t count, and neither does my “ok” in the group chat. Early on that blocked plenty of ordinary sends. What fixed it was writing policy down: allow rules in my settings file that say what each kind of worker may do on its own. An agent editing that file is blocked as self-modification, so each change is a script I run in my own terminal; there have been seven. It also blocked what it should have, such as a brief asking a worker to sign up for a third-party trial on my behalf.
  • My own key broker refused my own fix. Agents never see API keys; the listener’s key is released only to one exact command line, in a grant I sign. On November 9 the coordinator tried to cut the listener’s timeout from 30 to 15 minutes, and the broker refused: the grant says --max-minutes 30. Correct, and mildly annoying. Moving to four hours on November 15 took a new grant and my fingerprint.

What I’d tell someone starting

  • Put state on disk, and make every wake-up read it and write it back.
  • Give every wait an independent clock. A model’s sense of elapsed time is not a clock.
  • Before you make a failure loud, decide who hears it.
  • Treat permissions as a file you write, not prompts you click through.
  • Check the clock, the screen and the signed-in account yourself. An agent’s report is a claim until checked.

The film’s closing numbers were counted on November 13. As of November 26 they are 27 days, 35 coordinator sessions, 105 worker sessions, 266 sub-agents and one hard wall. One line near the end of the film reads “It breaks. I fix it. That’s the job.” This post is what that line looks like up close.