Skip to content
papuh

From the workshop

While I sleep: the morning batch and the checker

How AI agents work through a queue of tasks in the morning without me, who checks their work, how much of it comes back, and which limits the batch must not cross.

As of November 2026. The numbers come from my repositories and the batch records.

The situation

Many tasks in my projects do not need me. Writing a draft, adjusting a script according to a written procedure, going through source material and summarising it. If the task is well written, an agent can handle it alone. The idea was simple: let such tasks be done while I sleep, and in the morning I only decide what to do with the result.

That is what the batch is for. It is a script started by the system scheduler that takes tasks from the queue and runs Claude Code agents on them with nobody at the computer. It is driven by my control panel, which I call the control room.

What I gave the AI and what I did not

An agent in the batch may, on its own Never without my yes
read and write files in the repository push changes to GitHub
save changes, but only its own files send email out
run tests and scripts over local data money, contracts, registrations, purchases, accounts
propose tasks, questions and decisions delete files
connect to other devices
change rules without a recorded decision with a reason

At the boundary the agent stops, marks the task as blocked and writes me a question. It does not guess.

How the batch chooses

Every task has a line in its header saying whether it can run on its own. “Yes” means the task may run without me. “No” means I have to be there. Anything unclear is “no”.

The second important line is “Model”. It says which model to use for the task. When it is missing, the batch uses Claude Sonnet.

So the header is not decoration. It is an interface read by a program. Every line has to stand on its own from the start of the line in the exact form, otherwise the task does not get into the queue and nobody notices.

How one morning goes

  • At 4:00 the batch starts. The window was set up in September 2026, when my subscription limit was counted in five-hour windows and one of them reset at four.
  • The batch handles at most 30 tasks. One task may take at most 120 minutes; if it runs over, a guard stops it. Whether there is still time for another task the batch checks only between tasks.
  • Every task runs on its own branch and in the batch’s own workspace, not in mine.
  • After each task the checker comes. Only what passed gets into the main branch.
  • 9:00 is the end of the window.
  • At 9:05 a morning summary is prepared: what was done, what did not pass, what waits for me.

The checker

The agent that did a task likes to mark it as done. So someone else checks it afterwards, in three steps:

  1. A test without a model. If the task has a runnable test, it runs first.
  2. A critic. Another agent reads the task and its definition of done and verifies the result itself: it runs the tests and commands the definition asks for. If it fails, it proposes a fix.
  3. A stronger model. When the critic cannot decide, Claude Opus judges.

If the check fails, the batch returns the task to the worker once for rework. If it fails a second time, the task is blocked and waits for me. A branch that did not pass is not merged into the main one. In the morning I decide whether to merge it, rework it or throw it away.

The checker changed the meaning of the word “done”. A task without a “Verified:” line has only been reported as done, not verified.

Numbers

So far the checker has reviewed 88 pieces of work from the batch:

Result Count
passed 45
failed 35
undecided 8

About four pieces of work in ten come back. Without the checker they would all look done.

Limits held by a program, not a sentence

The prohibitions in the table above are not just written in the instructions. The batch starts the agent with a named list of allowed tools (git without pushing, reading, tests) and a list of forbidden commands: pushing to GitHub, connecting to another machine, copying to another machine, downloading from the web, deleting, and touching the system scheduler. Anything that would need approval is refused right away. Nobody is waited for, because nobody is at the computer. The batch has no network.

One thing I learned along the way: the list of allowed tools is not a fence. Commands that only read get through even when they are not on the list. The real limit is held by the list of forbidden ones.

More safeguards:

  • If unsaved files remain after a run, the batch puts them on a backup branch, sends me a notification and continues with a clean folder.
  • When too many unmerged branches from recent days are waiting, the batch does not start and lets me know. Decisions about work already done come first.

Model and subscription limit

The batch’s default model is Claude Sonnet. Claude Opus is an exception in the batch, for tasks whose consequences are hard to undo. Opus uses up limits many times faster; if the whole batch ran on it, the subscription’s weekly cap would be gone before Wednesday.

I treat the subscription limit as a budget. Every 15 minutes it is measured how much has been used. The batch never goes into paid usage beyond the subscription. I do, in a session, but by my own decision for a specific piece of work.

The laptop’s memory

The batch runs on a laptop with 24 GB of memory, which also runs local models. So before each task it checks memory. A critical state is when less than 10 % of memory is free, or when there is 8 GB or more in the swap file and less than 30 % of memory is free. Then the batch waits at most 10 minutes. If the state does not improve, it stops and sends me a notification. The task in progress finishes, the next one does not start.

What went wrong

  • Three tasks silently dropped out (6 September 2026). They were approved, but “on its own: yes” was written inside the sentence of the “Status” line, not on its own line. The program did not find it and the tasks never entered the queue. Nobody knew. Since then the header format is an interface, and after a manual edit a validator checks it.
  • Wrong quotes (8 September 2026). The instructions for the agent were in double quotes in the script, and the command line interpreted some characters in the text as commands. Three tasks thus got instructions without the part that said what the tests should look like. Since then the instructions are written in the script so that the command line interprets nothing in them, and variables are filled in afterwards.
  • The checker reverted someone else’s work (16 September 2026). It reverted a change that the batch had not made; another session had. Since then the rule is that someone else’s commit is never reverted.
  • Full memory (20 September 2026). A local model held 16 GB of memory, 12 GB were in swap, and nobody saw it. That led to a memory brake before every step and a guard that watches memory and sends a notification in a critical state.

How to check

For every task the batch marked as done, I look at the “Verified:” line. If it is missing, it is only the agent’s report. For things that matter I also look at the diff of the files.

What to watch out for

  • A batch is not for beginners. It makes sense only when there are more well-written tasks than can be done during the day. With one project and a few tasks a week it is faster to do them in a session.
  • Done is not verified. Without a checker the morning brings many things that only look done.
  • Silent failure is the worst. A task that drops out of the queue reports no error. Hence the validator and the morning summary.
  • The laptop has to run. When it sleeps or is off, the batch does not run.
  • Who is responsible. I am, also for what an agent did at five in the morning.

Takeaways

Autonomous AI without a checker produces work that only looks finished. For me about four tasks in ten come back. The batch works thanks to three things: a task header read by a program, a check after every task, and prohibitions held by a list of commands, not by a sentence in the instructions.

Exercise for today: for one task for AI, write down in advance how I will know it is really done. If that cannot be written, the task is not suitable for unattended work.

Previous episode: GitHub for non-programmers. Next episode: Rules the AI reads.

I prepared this text with the help of AI from my own notes.