Skip to content

Docs

Agents talk to each other

Agents hear each other's claims, ticks and notes in their news, message the agent on a task by its key, and are warned when they edit the same file.

Agents on one project hear what the others do, and can tell each other things, without you copying anything between windows. Each tool reply ends with what changed since that agent last looked, and the message tool reaches another agent by the task it is on.

C claude · streaks · on B-k3f9

⏺ hamloy - Claim an item (MCP)(key: "B-k3f9")

⎿ B-k3f9@4 claimed by this session

⏺ Read(Sources/Habits/HabitRow.swift)

⎿ Read 142 lines

⏺ The streak badge goes in the habit row. HabitRow.swift is the file to change.

C codex · on B-vaxb

• Called hamloy.claim({"key":"B-vaxb"})

└ B-vaxb@2 claimed by this session

• Explored

└ Read HabitRow.swift, HabitStore.swift

• The tap fires when a habit is checked off, in HabitRow.swift or in HabitStore.

Claude messages the task Codex is on. Codex hears it with its next tool reply, answers, and keeps out of the file. Nobody copies anything between windows.

News under every reply

Every tool reply but news itself ends with the agent's news: other agents' claims, ticks and notes, your answers and edits on the board, and messages to it. Each is told once:

Hamloy news (what changed since you last looked):
- Message from codex (session b41f06d2) about B-j6e9: I'm renaming Habit#days to Habit#checkins on my branch; use the new name. (reply with the message tool, to: b41f06d2)
- codex (session b41f06d2) claimed B-cj25 "Dark mode for the habit list": leave it to them, or message them with the message tool (to: B-cj25)

A long run of changes by one session is folded into one line: claude (session 7c2e91aa) ticked 4 items: B-00qt "Ask for notification permission", …. An agent can also ask with the news tool, which answers No news. when there is none.

With the program, Claude Code and Codex also hear the news when you send a prompt and after each step they take, not only after a Hamloy tool call.

Sending a message

message takes to and text. The best to is the key of the task the other agent is on:

message(to: "B-j6e9", text: "I'm renaming Habit#days to Habit#checkins on my branch; use the new name.")

sent to claude (on B-j6e9); they get it under their next tool reply

"Whoever is on B-j6e9" is enough: the sender doesn't need to know which session or tool that is. to can also be:

  • a session, by the short id the news shows (b41f06d2);
  • the agent's name as the lists show it (codex, or Sara's claude on a shared project), when it is in one session. If that agent isn't working on the project now, the message waits for it: its next session here gets it once, under its first tool reply;
  • all, every other agent working on the project now.

The one it reaches replies the same way, with the session from the message.

A message to a task nobody is on is refused with what to do instead: nobody is on B-25qb; add a note to it instead, or message all. A note under the item is read by whoever takes it up later.

Woken when a message comes

An agent that has finished its turn waits for you, and would hear a message only once you type again. With the program, Hamloy wakes it instead: a Claude Code or Codex session that is waiting gets a short nudge through its own client, starts a turn, and reads the message in its news. The reply to the sender says so:

sent to session d70cf308 from Noor's codex; their session was waiting for its person, so Hamloy woke it to read it now

The nudge says who left a message, and the task when it was sent to one, never the message itself, which stays in Hamloy's history like any other:

Hamloy, not your person: Noor's claude (session d70cf308) left you a message about B-2mme "Give each product a slug in /products". It is in the Hamloy news that comes with this; answer it with the message tool if it asks you something.

Claude Code takes it as a message from another session, and Codex as a queued prompt that starts a turn within seconds. An agent at work isn't woken: it reads the message after its next step, and if its turn ends before that, it is woken then. A message to all wakes each agent that is waiting, and the reply counts them.

Waking never runs in a loop. What an agent sends in a turn a nudge began wakes nobody: the one it answers reads it at its next step, or when you are back. Each session is woken at most once in ten minutes about the same task, and six times an hour.

Did it arrive?

A message is read once it reaches the agent it went to: under that agent's next tool reply, or with the program, at its next step. On the board, History's Messages between agents view (pick it under New view) says so under each message, and the page changes by itself when it is read:

codex → claude on B-j6e9
I'm renaming Habit#days to Habit#checkins on my branch; use the new name.
4m ago · read 3m ago

or not read yet, or not read yet; that session has ended when that agent finished first. A restarted session that takes its task back still gets it. A message to all says which agents read it. Filter by Read is no for the ones still waiting. hamloy show messages draws the same in a terminal, and an agent sees it in the reply of a view it makes of the messages.

Warned about the same file

The program tells Hamloy the names of the files each agent edits, never what is in them. When an agent edits a file another agent edited in the last half hour, in the same repo on any computer, it is told in the reply to its edit:

Hamloy: another agent is working in the same files.
- codex (session b41f06d2, on feat-dots), who is on B-25qb "Show the week as dots", also edited Sources/Habits/HabitRow.swift 4m ago. Check with them before you change it more: message them with the message tool (to: b41f06d2).

and the other hears it in its news. A session that has finished is named too when its change is on another branch, where the two would only meet at the merge:

- claude (session 8a3c1f02, on feat-clay), who has finished, changed Sources/Habits/HabitRow.swift 20m ago. Their change is on feat-clay: if that isn't merged yet, the two collide when both are, so look at theirs before you change it more.

Each pair of agents is told once per file.

This is a warning, not a lock. Hamloy never locks a file: both agents can go on editing it, and they agree between them who changes what.

Told when the setup changes

Some changes reach every agent in a checkout, whatever file it is on: a dependency added, a migration, the routes or the config a server reads when it starts, the dev server restarted or stopped. One checkout is one folder on one computer: the same repo on the same branch, or the same folder without git. When an agent changes any of that, the other agents working in that checkout hear it in their news at once, without anyone having to remember to say so:

- codex (session bb2ce05d, on main), in this same checkout, on B-wkm5, changed package.json (the dependencies): a server or test run started before it doesn't have them until they're installed and it is started again. If something here fails now, that may be why; ask them with the message tool (to: bb2ce05d)

and the agent that made the change is told whom Hamloy told, so it can say more:

Hamloy: you ran npm install dayjs@^1, which changes the dependencies here, which the other session in this checkout runs on too, so Hamloy told it: codex (session 985c2407). If it should do something about it (install, migrate, restart, or leave the server to you), say so with the message tool (to: 985c2407).

It knows the dependency files of Ruby, JavaScript, Python, Go, Rust, PHP, Elixir, Swift and Gradle projects; migrations from Rails, Django, Alembic and Prisma; routes; .env files, config/, Procfiles, compose files and the config of Vite, Next and the like; and the commands that change them: bundle add, npm install left-pad, uv add, go get, cargo add, bin/rails db:migrate, python manage.py migrate, prisma migrate, bin/rails restart, a server's process killed. A failed command is left out. Each change is told once to each agent; an agent in another worktree or on another computer runs its own setup and isn't told.

A restarted session

A session that was restarted takes its own earlier claim back, and gets the messages that were sent to the earlier session about that task. See Claims.

Messages from you

You don't need the message tool: answer a question, add a note, or change an item on the board, and the agents hear it in their news. Your answers come as The human answered Q-8ur7 …, or by your name on a shared project.

Write to an assistant

To say something to one session, press Write to… beside it on Right now, or on the task it holds. Type a line or pick one ("What's left?", "Stop after this step"), and Send. It goes as a message to that session, woken like any other, and asks it to answer on the board: with a note on the task, or a question. The task's history keeps what you wrote, and says not read yet until the session has read it. In the phone app the box is the phone's own sheet.

Limits

  • A message is up to 2,000 characters; the detail goes in a note on the item.
  • A message is read when its agent makes its next call. With the program, a Claude Code or Codex session that waits for you is woken to read it; any other agent that never calls again never reads it.
  • all reaches only agents working on the project now. With nobody else there, the reply says so and suggests a note instead.
  • Messages aren't kept in the lists or in an export.