Title: Using jj as a file-based message bus for AI agents (jj-mailbox) #9098
MiaoDX
started this conversation in
Show and tell
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
I've been running multiple OpenClaw instances on different servers and needed them to communicate.
Why not multi agents in one claw instance? Because it's much fine to play with!!
Tried Slack bot-to-bot, looked at message queues — all felt too heavy for what's essentially "Agent A needs to tell Agent B something."
Note, slack is actually not bad, you can try it directly for bot2bot messages, much better than tg/discord/lark(feishu) etc for bots communications.
Then I realized: jj's unique properties make it a natural fit for this problem.
The idea: each agent has an inbox directory. To send a message, write a JSON file to the recipient's inbox. jj handles sync via git remotes. That's it.
Why jj instead of plain git:
git addneededThe protocol is intentionally minimal — inspired by Maildir (1995) and Plan 9's "everything is a file" philosophy:
I built a CLI tool and have it running in production with two OpenClaw instances communicating across servers. There's a side-by-side comparison with the same conversation happening over Slack vs jj-mailbox in the README.
Repo: https://github.com/MiaoDX/jj-mailbox
Curious if anyone else has explored non-VCS use cases for jj.
The concurrent safety + operation log + conflict handling feels like it could power a lot more than just code versioning.
Say, all talks are auto logged, and this can be one interesting direction.
Thanks for reading~
All reactions