Checking how many agents are working

How this works
Contact
← Blog
A cinematic photograph of several brass robots working at separate lit desks in one long workshop, each with its own small lamp and a single paper note on the desk, in teal and steel with a warm amber light, the AMARBARO mark and wordmark centred over it.
✎blog post

Running several AI agents at once without chaos

The short version

A rename commit of ours on 2026-11-10 held 103 files, of which 28 were another lane's uncommitted work riding along under a rename message.

What this is about

One agent is useful. Several agents at the same time can feel like a team. But a team with no rules is a crowd. This article gives three plain habits for running agents in parallel, and tells what went wrong for us when we skipped each one.

We call one stream of work a lane. Each lane has its own task and its own agent.

Why it matters

Parallel agents are tempting because the work is fast. Three agents can fix three bugs in the time one fixes one.

The risk is that they share things. If two agents write to the same file, one overwrites the other. If one commits "everything," it commits the others' unfinished work too. If one finishes and says nothing, you do not know whether to wait.

These are not rare accidents. In our own mistake ledger, the same few repeat.

How it works: three habits

Habit 1: separate workspaces

Give each lane its own place to work. In our setup, our terminal tool herdr keeps one workspace per repository and one tab per lane. When a lane is done, we close its tab and never reuse it for another job. A reused tab carries old state and old context, and confusion follows.

For code, the cleanest version is a separate working copy of the repository for each lane, so no two agents touch the same files at all.

When lanes must share one working copy, the next habit is the rule that saves you.

Habit 2: one owner per file, and name what you stage

Each file has one lane that may change it. Write the list in the task brief: "This lane owns these paths. Do not touch anything else."

The reason is visible in git. A shared checkout is one working copy that several lanes use at once. A command that stages everything, such as git add -A, picks up the other lanes' half-finished files.

Our first rule for the shared checkout cites ten entries from our mistake ledger. Here are the ones that hurt.

  • The secret in a commit. On 2026-07-25, one entry removed a folder with git rm -r, then deleted a line from the ignore file as tidy-up, then staged everything. The ignore line had been hiding a secret file. Removing the line exposed it, and the staging took it. The commit carried three secret values. We caught it before any push and rewrote the commit. We did not copy the values here.
  • Foreign work in a rename. On 2026-11-10, a rename commit had 103 files. The rename itself was 75 files. The other 28 files were another lane's uncommitted work, more than a quarter of the commit, riding along under a rename message.
  • Foreign files in two tags. On 2026-10-14, a staging of a whole folder put another lane's unverified files into two commits and two version tags.

Each ends in the same rule: name what you stage. List the exact paths, then commit those and nothing else.

Habit 3: a short report back

When a lane finishes, it should leave a short, findable report. We use files, not chat. Each task brief is a file, and the deliverable is a file. The terminal only carries status.

Why a file? Because words in a terminal vanish. We have a real example. On 22 October at 00:21, our terminal workspace crashed. Afterwards we listed the last thing each of ten sessions had been given. Most of the last lines were one word: "ok," "go," "k," "do." A one-word message names no task. The task lived somewhere else, and the list did not say where.

Three more facts from that list:

  • The ten sessions sat in eight folders, so counting by folder gave the wrong number of sessions.
  • The window was only about twenty-five minutes.
  • Only two of ten entries carried a path to the full transcript.

The lesson: a short, written report at the end of each lane makes the next start possible. "Ok go" is not a report.

A starter routine for two agents

  1. Write a brief for each lane as a short file: goal, files owned, how to report.
  2. Give each lane its own workspace, or at least its own list of owned paths.
  3. Tell each agent to commit by naming files, never "everything."
  4. Ask each to end with a note: what changed, what failed, what is left.
  5. Read the notes before you merge anything.

Glossary

  • Lane: one stream of work with its own task and agent.
  • Shared checkout: one working copy of a repository used by several lanes at once.
  • Staging: choosing which changed files go into the next commit.
  • Commit: a saved snapshot of chosen changes in git.
  • Brief: a short file that states a lane's goal and limits.
  • Transcript: the full saved record of one agent session.
  • Ledger: our file of dated mistakes, each with a rule attached.

Try it

  • Start with our skills. The skills page shows how we write instructions for agents, including lane work. Read the lane related ones with the three habits in mind.
  • Run a two-agent test. Give two agents two separate small tasks in two folders. Make each end with a three-line note. See whether the notes are enough for you to pick up the work cold.
  • Check your last commit. Run git show --stat on your most recent commit. Is every file there one you meant to include?

Comments

No comments yet.

Log in to comment.