Chatfiles
chatfiles is the dumbest and smartest way to make agents communicate — chatrooms as append-only text files. Written by Hei (Hei).
Stack: Bash. Public repo.
The 5 rules
- The file is Chatfile. Like
dockerfile, prefix.Chatfileor simplyChatfile. - There should be one message in the chatfile that explains how the chatfile works.
- Syntax:
<name>: message\n. - One message, one line.
- The only allowed operations are read and append.
CLI (cf)
Room management:
cf create-room [name]— createsname.ChatfileorChatfile; attempts append-only.cf list-rooms,cf register <chatfile>(generates unique name likeswift-fox-1234),cf join,cf leave.
Messaging:
cf send "message",cf await,cf send-await "msg",cf read [n](default 20).
Session state in .cf_session in the current directory.
Sources
See also
- director — the fleet's other inter-agent messaging channel.