Dev.to AI ๐Ÿค– Ai ๐Ÿ‘ 0 ๐Ÿ“– 5 min read

How long can AI agents keep working with nobody watching?

Watch on YouTube You have probably used AI agents this way. Three or four terminals open, with Claude Code, Codex, OpenCode or some other terminal agent running in each. One stops to ask you a question while you are get

How long can AI agents keep working with nobody watching?

Watch on YouTube

You have probably used AI agents this way. Three or four terminals open, with Claude Code, Codex, OpenCode or some other terminal agent running in each. One stops to ask you a question while you are getting coffee, and it waits there until you come back. One drifts off course, and you notice half an hour later. One says it is done, you run the tests, and they are red.

So you sit there and watch. While the agent writes code, you watch the agent write code.

This post tries to answer one question: if you stop watching, how long can agents keep working on their own? The answer is at the end, from a run on our own product, udctl (UnDercontrol). First, what we changed. We changed one thing. Talk first, decide, then walk away.

The example below is the one from the video: adding offline reading to a reading app. That feature was made up for the demo. The run at the end of this post was on different work.

Talk first, decide, then walk away: what happens in each step

You answer options instead of writing a spec

It starts with one sentence to Alfred, the butler agent: add offline reading.

But one sentence leaves a lot open. If a note is edited offline and the same note changed somewhere else, which version stays? How many books can be stored? When storage fills up, what gets removed? Working all that out yourself means writing a page of requirements first.

So Alfred turns the questions that need your call into numbered options, each with one recommended. You tap one, and that is your answer. If you are unsure, take the recommended one, or reply with a sentence saying what you want.

Alfred puts the decision in front of you as options, with option 1 recommended (demo account)

The effort on your side goes from writing it all down to picking one.

Design flaws get caught before anyone writes code

But a first draft always has holes, and the agent that wrote it is bad at seeing them.

So once the design agent has a draft, a second agent running on a different model reviews it and looks for problems. The review lands in the same thread, and the design agent revises it into v2.

But the reviewer is not you. However careful it is, it does not know what you had in mind.

So you push back too, round after round. In the video, the card goes through one review and two more rounds of your comments before the third version is final and you reply "Approved". The final design records what lives where, each step of the flow, and what changed in every version.

All of this happens before any code exists, and rewriting a paragraph costs far less than rewriting code.

Decisions don't disappear with the chat window

But a conclusion left in a chat gets forgotten. Next week you won't remember why you decided it that way, and the agent picking up the work never knew.

So every decision goes into the card body, written in full sentences, with the flow drawn in Mermaid. Card bodies, notes and comments share one Markdown editor, so diagrams, tables and code blocks go straight in. udctl uses the same editor for notes, expenses and accounts too, not only task cards.

The flow and acceptance criteria drawn in the card body (demo account)

Every small card says what done means

But one big card is where an agent drifts most easily. With a wide scope, it adds things you never asked for and skips things you did.

So the big card is split into small ones, and each says what done means: which test to run and what result to see. The agent gets a job with edges, and whoever checks the work has a ready-made yardstick.

A new agent picks up the work without you explaining it again

But the next agent starts with no memory. A fresh session knows nothing about what the last session discussed.

So reviews and test results are written as timestamped notes on the card. Whoever picks up the work reads the card first, and everyone reads the same thing. You don't retell the backstory.

You say go, and every hand-off is on record

So at this point, all you do is tell Alfred to start, in its window.

But one model has blind spots. When the same model writes the code and reviews it, it tends to miss the same things twice.

So different agents own different parts: one plans and accepts the work, one writes code, one reviews, one ships the release. Each agent is configured with its own terminal agent, whether that is Claude Code, Codex, Gemini CLI or OpenCode. In our run, some were on Claude and some on Gemini.

Handing out work is one mention on a card. The agent wakes up on your machine, replies that it got it, and writes the result back to the card when it is done. Everything Alfred has handed out, and everything it is following up on, is listed in its window.

Follow-ups and Dispatched, the two lists in Alfred's window (demo account)

When an agent gets stuck at night, someone nudges it, and it isn't you

But with nobody watching, an agent can sit stuck all night: waiting on a permission prompt, waiting on an answer, or its process quietly exited. You find out in the morning.

So every hour, Alfred runs a scheduled job that checks every session and every card. When one is stuck, Alfred nudges it on its card.

All of it ends up on the cards in writing: the hourly job, the hand-off, the "got it", the result, and the nudge. You don't have to watch. If you want to, open that agent's session and every step is there in its terminal.

"Done" has to come with evidence

But when an agent says done, that is only a claim.

So acceptance has a rule. The test must fail first, which proves it can catch the problem, and then pass after the change. CI has to be green as well. A new problem found during acceptance becomes a new card on the spot instead of being folded into the current one.

The test-run table in a note: all three tests failed before the change and passed after (demo account)

In the run described below, the main card ended up with 44 child cards, and a good number of them were opened on the spot when acceptance or review turned up a problem.

The answer: two days and two nights

Back to the opening question. With nobody watching, how long did they keep going?

On our own product, last time: from the afternoon of December 2 to the night of December 4, about 57 hours. Two days and two nights, and nobody sat up watching.

udctl: you decide, they do the rest. Downloads and docs are at udctl.com.

๐Ÿ“ฐ Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.