Central Agentic Memory (CAM) in practice
in Agent-to-agent communication
Parallel AI chats in one repo take the same job and overwrite each other's work, unless you carry news between them by hand.
- What is CAM?
- What do you need?
- What happened when two chats got the same link?
- How did a form change hands between two chats?
- How did three chats publish one page without overwriting it?
- How did a plan and a UI chat split one file?
- Where did it fall short?
- Summary
Run several AI chats in one repo and they step on each other. Two take the same job. One overwrites a file another just published. The operator ends up carrying news from chat to chat. This post shows four real cases from one evening, on 2026-10-15 into the 16th, where chats sorted this out among themselves, and the places where they couldn't. Times are UTC. Chats are lettered per case.
What is CAM?
CAM (Central Agentic Memory) is a journal and an inbox kept for each repo, inside its git folder.
- Hooks write the journal without being asked: commits, pushes, destructive git commands, agent lanes started.
cam note "<why>"records the reason for an action, which no hook can know.cam tell N "<text>"leaves chat N a message. It shows up in that chat's next prompt, once.cam outcome <id> acted|noted|declined|supersededrecords what the receiver did with a message.
Every chat sees its peers' new journal lines on each prompt and tool call, so it learns what changed without the operator passing it on.
What do you need?
Claude Code with hooks enabled, and git. The journal is a file per repo and the inbox is one JSON file per message, so nothing else runs in the background.
What happened when two chats got the same link?
The operator pasted the same link into two chats. At 22:10 chat B saw chat A's files and stopped. It deleted its own copy, kept chat A's (the one other files already pointed to), and filled the shared record from chat A's notes. Then it sent chat A one message, ending with the line that mattered:
"It is at version 2, so write it with update + if_version rather than set."
The record lives in a store that refuses a write when its version has moved on, so that line stopped chat A from overwriting the record with an older copy.
What happened: one copy of the work instead of two, and no lost write.
Warning: chat A read the message at 22:36, 26 minutes later. A message waits for the receiver's next prompt, so an idle chat sees nothing.
How did a form change hands between two chats?
The operator asked chat B to finish a long web form that chat A had started. Three messages moved it across:
- 22:45, B to A: "I'm taking over" the answers file and the record's
workingfield, "so please leave both alone". - 22:49, A to B: agreed, and passed on one answer it had just given the operator, so the file would stay complete.
- 22:58, A to B: the operator told chat A the form was submitted. Chat A marked the record done, now at version 7,
and told chat B to use
if_for any further write.version 7
Chat B read the last message at 23:02 and noted that the form was handed back.
What happened: the operator talked to both chats about one form, and neither lost or overwrote the other's answer or status.
Warning: two chats were on the form for 13 minutes. The messages kept them apart; nothing stopped them from colliding.
How did three chats publish one page without overwriting it?
The dashboard page tracker.html is one published file, and every publish replaces the whole thing. Three chats changed
it within 31 minutes, and each publish was built on the one before. Dashed arrows are messages; each names the version the next edit
must start from.
- 23:30: chat A publishes v8.
- 23:41: chat A publishes v9 and tells chat B to build its detail page on it.
- 23:44: chat A publishes v10 and tells chat B to merge onto v10, not v9.
- 23:46: chat B publishes v11 on top of v10 and says it is live.
- 00:01: chat C publishes v12 on top of live v11.
| Version | Chat | Message that kept it straight |
|---|---|---|
| v8, 23:30 | A | |
| v9, 23:41 | A | to B: build your detail page on v9, "not an older copy" |
| v10, 23:44 | A | to B: "Merge onto v10, not v9." |
| v11, 23:46 | B | to A: says what changed, and flags a bug in A's code instead of fixing it there |
| v12, 00:01 | C | built on live v11 |
Before its first edit, chat B also told chat A exactly which functions it would touch, and offered to wait if A was in them.
What happened: 5 versions in 31 minutes, none lost. Without the messages, every second publish would have replaced the one before it.
Warning: this only works while each chat reads its inbox before it publishes. Chat C asked chat B at 23:50 whether another publish was coming; the question reached B at 00:01, the minute C published v12.
How did a plan and a UI chat split one file?
Chat A was writing a mow plan (a feature split into lanes that subagents build later) that needed tracker.html. Chat B was
building a detail page in the same file.
- 23:39, B to A: a three-part split. A owns the list columns, the scoring fields and the calibration view. B owns a new
postingViewand its brief section. Whoever publishes second merges. - 23:50, A to B: "your split is accepted as written." The agreement went into the plan's lane brief, so the subagent that builds that lane later follows it without having seen the conversation.
- 23:50, A to chat C: don't build the star-rating table separately; it belongs to lane A.
- 00:01, C to A: the operator approved building it anyway. C published v12 covering two of the lane's requirements, and
asked A to trim the brief to start from v12. A's earlier message is marked
superseded, so the inbox shows the override was on purpose.
What happened: a plan written while other chats changed the same file, whose brief says what is already built and what to leave alone.
Warning: a message can't overrule the operator, and it shouldn't. CAM recorded the conflict, but the brief still had to be trimmed by hand.
Where did it fall short?
- Messages wait. Delivery happens on the receiver's next prompt. In these cases messages waited 26, 12 and 11 minutes.
- The inbox belongs to one repo.
cam tellwrites to the inbox of the repo it runs in. A chat in another repo reached these chats at 00:05 only by running it from this repo's folder. There is no cross-repo address. - Some context only lives in notes. One chat emptied a shared answers file by mistake, restored it, and left a note
with status
errornaming the peer lines it put back, still uncommitted for their owner. Without the note, a peer's lost line would have looked like the peer's own mistake. Notes like this help only the chats that read the journal in time. - It coordinates; it doesn't lock. CAM tells chats what changed. It can't stop two of them from writing at once. For the one place we needed a hard stop, pushing to git, see One push at a time.
Summary
- Parallel chats stay out of each other's way when each one says what it is about to touch, names the version others must build on, and records why it acted.
- CAM gives them a journal for the why and an inbox for the handover.
- In these cases it kept a form, a record and a five-version page intact without the operator relaying anything.
- It does not lock files, and a message waits until its reader's next prompt.
- Start with a journal every chat reads on each prompt; it costs nothing and removes most relaying.
- Put a version check on any shared record, so a stale write fails instead of landing.
- For anything that must never happen twice at once, use a lock, as in One push at a time.