Harness, agent, loop, orchestrator: one PC that runs all four
Material for devflowdaily.com, 2026-11-06. Firsthand: the logs of one 16 GB Windows PC on which several AI coding-agent sessions (Claude Code and Codex) and a self-hosted agent harness worked side by side on three code repositories, 29 October to 6 November 2026. Who it applies to: developers running more than one AI coding agent on one machine and one set of repositories. It does not describe cloud agent platforms or a single agent working alone.
The four words, each pointed at a running part
- Agent: a model that picks its next action from what its tools returned, until it decides it is done. On this PC: each Claude Code or Codex session (tools: read a file, edit, run a command), and the self-hosted harness's agents, which use small local models.
- Loop: the repetition. There are two, and they fail differently. The inner loop is the agent's own think-act-observe steps within one task, under a step budget the harness sets per task. The outer loop re-runs a task on a schedule: one session here re-runs a marketing task every hour, and a review loop ran every 30 minutes.
- Harness: everything around an agent that the agent does not decide: which tools a task may use, the step budget, the check that decides whether the result meets the task's criteria, and the log. The harness defines what "done" means; the agent only claims it.
- Orchestrator: what decides which agent does which work, so that agents neither collide nor starve each other of the machine. Here it is not one program: a claims file, a gate for heavy commands, and handoff notes do the job together.
What we found
- Over the nine days, 2,100 heavy commands (builds, test suites, installs) went through one gate that lets at most two run at once and none while memory is nearly full. They came from 70 session names (a session gets a new name when it restarts).
- Those 2,100 commands waited 76.2 hours in total for their turn and ran for 72.2 hours: waiting took longer than the work. 827 of the 2,100 had to wait at all; the median wait was zero seconds, so the waiting was concentrated in crowded hours.
- The lowest free memory the gate recorded at the start of a command was 0.33 GB of 16 GB.
- 421 of the 2,100 commands ended with a non-zero exit code (a failed build or test), about one in five.
- The claims file recorded 283 claims on work (105 still held, 178 released with an outcome) by 47 session names. A claim is a key such as a topic, a site or an API route; a second session asking for a held key is refused and told who holds it.
- Before the claims file existed, on 29 October two sessions built the same change minutes apart, and on 30 October three sessions took the same set of thin sites; the owner then moved claims out of shared markdown tables into the file.
- On 6 November a session asking to take an affiliate-features topic was refused because another session held it, and the two agreed a split by message instead of building the feature twice.
- The outer loop needs its own stopping rule: one harness goal spent 3.0 million tokens while its success criterion flipped between met and not met, which the harness read as progress.
- The harness can cut the inner loop short by itself: until 6 November it clamped every task's step budget to 30, whatever the task asked for, so a nightly site review that asked for 36 steps was stopped at step 24 every night, with 7 tool calls kept for its result. The fix raised the ceiling to 60 and gives each task the budget it asks for.
- The check that ends a task is a part of the harness that can be wrong on its own: a small local judge model marked criteria of the form "every X has Y" as not met when there were zero X, so tasks that were done kept running.
What this means for someone running several agents
- Name the four parts separately, because they fail separately: an agent makes a wrong edit; a loop does not stop; a harness accepts a wrong "done" or rejects a right one; an orchestrator lets two agents do the same work or starves the machine.
- The orchestration that mattered most here was not clever: a JSON file of claims, a CSV log of heavy commands, and markdown notes per area. Each one stopped a failure that had already happened once.
- Measure waiting, not only running: on a shared machine the queue can cost more time than the work.
What we are unsure of
- The gate log records each command once; a command killed by the machine is not always recorded, so failures may be undercounted.
- Session names change on restart, so 70 names is more than the number of distinct sessions; the true count is lower.
- The claims file does not log refusals, so the number of collisions it prevented is not known; the examples above are the recorded ones.
Sources
- The PC's own records: the gate log (
heavy-log.csv, 2,100 rows, 29 Oct - 6 Nov 2026), the claims file (283 claims), and the workspace rules file that records the 29 and 30 October incidents. - Anthropic, "Building effective agents" (December 2024), for the distinction between workflows with predefined paths and agents that direct their own steps: https://www.anthropic.com/engineering/building-effective-agents