A message bus for AI agents in one text file Agency Kit Studio published a roughly 35-line, dependency-free Node.js message bus that lets multiple AI agents on one machine communicate by appending JSON lines to a shared NDJSON file, with each agent tracking its read position in a cursor file. The send and watch scripts, which were run before publication, support direct and broadcast messages and resume from where they stopped after a restart. The studio also sells a $19 Agency Kit that adds roles, handoff notes and an approval gate for teams of Claude Code chats. Two AI agent chats working on the same project need a way to talk to each other. Most setups reach for a server, a queue or a database. For a handful of agents on one machine, a text file is enough. This post builds one in about 35 lines of Node, with no packages. The code below was run before it was posted. Every message is one line of JSON appended to a file, bus.ndjson . Each agent remembers how many lines it has already read. That is the whole design. Save this as send.mjs : js import { appendFileSync } from 'node:fs'; const from, to, ...words = process.argv.slice 2 ; if from || to || words.length { console.error 'usage: node send.mjs