Single pusher: Using CAM to organize multi-agent version control

in Harness engineering

With 15 to 20 AI chats committing to one repo, every chat can push, so pushes pile up, collide and each one runs the full test gate.

  1. Why name one pusher?
  2. What you need
  3. How did the role work?
  4. What did the git timeline show?
  5. Why did a second chat still offer to push?
  6. What would make the rule hold?
  7. Strong and weak points
  8. Summary

Why name one pusher?

Because any chat that can push will push, at a time that suits its own task. On busy days I run 15 to 20 Claude Code chats in one repo, ai-wow, which holds my agent tooling. Each chat commits its own files to the shared main. At the end of September, four different chats pushed in two days. One push carried 84 commits from every chat at once. Earlier that week, chats pushed copies of their commits by id instead of the branch, and GitHub's history split from ours until a merge joined them (the last post on serializing pushes tells that story).

The push is also where everyone's mistakes come due. The pre-push gate ran about 25 test suites plus a scan for private names over the whole tree. Seven commits in three days were titled "unblock push" or "scrub": the chat that happened to push was fixing other chats' files to get the gate green.

So on 30 September I tried a rule with no code behind it: one chat pushes, every other chat only commits.

What you need

Tool Used for
Claude Code (desktop app) 15 to 20 chats on one checkout
git one shared main, pushed to GitHub
CAM the journal and pins every chat reads at start (how it works)
push-main the one script that pushes main, under a lock
the wrap-up skill the end-of-chat steps, which offer a commit and a push

The idea needs no tooling to try. Any team of agents, or people, can name one pusher for a day.

How did the role work?

The operator, me, names one chat the pusher for the day, and that chat tells the others.

operatoropens a pusher chat pusher chatthe only pusher CAM inboxone message per chat push-mainlock, scan, push open chats18 told, commit only origin mainone push, many commits asks anyway 1 2 3 4 5
Figure 1. One chat pushes; the rule reaches the others as CAM messages.
  1. I open a chat titled as today's pusher.
  2. It sends each open chat a CAM message: commit, but don't push.
  3. Each chat reads its message on its next prompt, and only commits. Chats opened later get none.
  4. At its own wrap-up, the pusher chat runs push-main.
  5. One push sends the whole day's commits from every chat.

The dashed arrow is the leak, covered in the next section.

On 30 September the first pusher chat wrote "Push owner today" into the journal after its 84-commit push. Twenty-four minutes later another chat landed a commit and noted "not pushed, push owner" instead of pushing. The rule worked on its first day with nothing enforcing it.

I ran it on at least five days between 30 September and 22 October, each time opening a chat titled for the job ("you are single pusher today"). The rule travelled as CAM messages, which each chat reads on its next prompt. In find-work the message read: "Commit to main as usual, but do not run push-main or git push." On 17 October the ai-wow pusher sent it to 14 open chats, then to 2 more, then to 2 more that evening: 18 chats told one by one. Chats opened later never heard it. That gap is why CAM pins were built the same afternoon: a pin heads every new chat's start-up block until the day ends.

What did the git timeline show?

The batching shows up in git-timeline, a local page that logs every git command the chats run, per repo. Its Push and Pull panel lists each push with its commit count. Its Chats panel lists each chat with the commits it made and the pushes it ran. Clock times on the screenshots are local.

Git timeline, Push and Pull panel for ai-wow on 17 October: pushes of 62, 9, 3 and 3 commits between 13:50 and 16:30, then one push of 80 commits at 23:27. Every push row says outside agents.
  1. 13:50 to 16:30: four pushes of 62, 9, 3 and 3 commits, before a pusher was named.
  2. 23:27: one push of 80 commits, at the pusher chat's wrap-up.
Figure 2. Push and Pull on 17 October: four small pushes, then one batch.

On 17 October, four pushes went out before lunch and early afternoon: 62, 9, 3 and 3 commits. Then the pusher chat was opened, and the next push came at its wrap-up: 80 commits in one go. Its CAM note sixteen minutes later reads "push batched to 389's wrap-up".

Git timeline, Chats panel for ai-wow on 17 October: 17 chats, each with between 1 and 13 commits made and 0 pushes. The last row, outside agents, has 5 pushes carrying 157 commits.
  1. 17 chats made between 1 and 13 commits each, and none pushed.
  2. All 5 pushes, 157 commits, sit on the "outside agents" row.
Figure 3. Chats on 17 October: 17 committed, none credited with a push.

The same day from the chats' side: 17 chats made between 1 and 13 commits each, and every one of them shows 0 pushes. All 5 pushes, 157 commits, sit on one row, "outside agents". That row means the page could not tie those pushes to a chat, so the pusher chat gets no credit by name.

Git timeline, Push and Pull panel for ai-wow on 22 October: a push of 164 commits at 22:50, in the same minute as a fetch by the chat titled single pusher, push to main.
  1. 22:50: one push of 164 commits.
  2. The same minute, the chat titled "single pusher, push to main" fetches.
Figure 4. Push and Pull on 22 October: 164 commits in one push.

22 October was the biggest day. One push at 22:50 carried 164 commits, in the same minute that the chat titled "single pusher, push to main" fetched origin to check it.

Why did a second chat still offer to push?

Because the message was prose, and the push question comes from a skill step that a script triggers. The message said two things: one chat is the only pusher, and don't push from here. Some chats skipped it. Some still asked.

another chat wrap-upstep 6 push-main --previewcode prints the offer ✕ offer? weigh skill vs messagetwo prose rules ✕ message wins? ask: push main?operator says yes secondpusher commit onlyoffer: no no push askedthe rule held yes no yes no 1 2 3
  1. Wrap-up runs push-main --preview. On offer: no the chat asks only to commit.
  2. On offer: yes the agent weighs the skill step, which says to ask, against the CAM message, which says not to.
  3. If the skill wins, it asks to push main, and a yes makes a second pusher that day.
Figure 5. Where a non-pusher chat's wrap-up can still offer a push.

The wrap-up skill's step 6 has the agent run push-main --preview. The script prints the commits waiting and ends with offer: yes or offer: no. On offer: yes, the skill says to ask me "push main?". The script knows nothing about the message. So a chat at wrap-up holds two instructions that disagree. The skill step is long, specific and in front of it right now. The message is one line it read hours and many tool calls ago. Sometimes the step won.

When it did, I got a push question in a chat that was not the pusher. A tired "yes" would make a second pusher that day, which is the thing the rule existed to stop. The push-main lock means a second push can't race the first. It still breaks the batching and runs the full gate again.

I did not count how often this happened.

What would make the rule hold?

Code that reads the rule, so no agent has to. A pin is already stored as data in .git/cam/pins.json, so the rule can live there. Two small changes, neither built:

  • push-main --preview prints offer: no (chat X is today's pusher) when a live pusher pin names another chat. The wrap-up step already handles offer: no by asking only to commit, so the skill text needs no change.
  • push-main itself refuses to push from any chat but the named one, with a flag for me to override.

The first change turns the prose rule into an output the skill already obeys. The second makes it hold even if an agent ignores both.

The name of the game is making more deterministic code-driven harness to rely less on agents reading and executing harness engineering instructions, minimizing the risk and volatility of the non-deterministic nature of LLMs.

That is the lesson I took from this run. An agent that reads an instruction usually follows it. A script that checks a condition always does. Every rule that matters enough to repeat in 20 chats belongs in the script.

Strong and weak points

Where it wins:

  • Zero build to start. A day's rule in one sentence fixed the scattered pushes on its first day.
  • One push a day. The gate runs once, on the whole day's commits, instead of at every wrap-up.
  • One chat owns gate failures, so nobody fixes a peer's files by surprise.

Where it loses:

  • The role dies with the chat. When the pusher chat ends, "push owner" points at nobody.
  • Prose leaks. The message told chats not to push, and some still offered to.
  • Commits wait. Work sits unpushed on one disk until the pusher wraps up.

I don't run it today. It was useful on the days I had 15 to 20 chats open at once.

Summary

  • One named pusher turns many scattered pushes into one batched push and one gate run a day.
  • Delivering the rule by message misses chats opened later; a pin fixes delivery.
  • A message or a pin is still prose. A skill step triggered by a script can outweigh it, and did.
  • Rules that must hold belong in the script the agent already runs, not in text it may weigh.
  1. Make push-main --preview print offer: no when a pin names another pusher.
  2. Make push-main refuse a push from any chat but the named pusher.
  3. Give pins a typed field (pusher: chat X) so scripts don't parse prose.