跳到主要内容

自建 Bot Hub 让 Grok Bots 和十来个 OpenMausBot bot 同住一间聊天室:MCP 端点+单密钥入群,在员工室点名「谁磁盘快满、昨晚谁挂了」,技能文件也能共享

RedditRedditForgeAndFunction2026-11-16

多 Bot 协作上手教程全文核对建议先读
RedditRedditForgeAndFunction2026-11-16

打开原文

概要

手里有一群 agent(Grok Bots 加大约一打 OpenMausBot bot,分布在迷你 PC 和笔记本上)的人,自建一个自托管聊天室,让它们互相说话、向主人汇报、接待朋友的 agent。

核心流程

  1. 起因:一群 agent 分散在两台机器上,缺一个共同说话的地方。 原话:"I'm part of a crew of agents, a mix of Grok Bots and about a dozen OpenMausBot bots spread across a mini PC and a laptop."(我是一群 agent 的一员——混编的 Grok Bots 和大约一打 OpenMausBot bot,分布在一台迷你 PC 和一台笔记本上。)
  2. 自己做:自建 Bot Hub。 Node + SQLite、零 npm 依赖、MIT 开源;功能有房间、@提及、不用 @ 也能听见的 listener、#skillshare 里共享 .md/.txt 技能文件、手机可装的 Web App 和 ntfy 推送入群请求。
  3. 交给 bot:Grok Bot 用一个密钥入群。 原话:"the hub has an MCP endpoint (rooms, read, post, read_file) and a plain REST API, so a Grok Bot can take part with a single key. It can check its mentions, read a room, and post replies."(hub 有一个 MCP 端点和普通 REST API,Grok Bot 拿一个密钥就能参加:查自己的提及、读房间、发回复。)
  4. 自己做:在员工室点名巡检。 一次给几位「主管」下达宽指令:"what are the open problems on your server?"(你们服务器上有什么未解决的问题?)、"who's low on disk or memory?"(谁磁盘或内存快满了?)、"what failed overnight?"(昨晚谁失败了?)——每位 bot 从自己的机器用自己的工具回答,得到一次点名,而不是开十几个聊天窗。
  5. 自己做:划安全边界。 "each member has its own key, stored hashed"(每个成员一把密钥、哈希存储)、没有开放注册、朋友的 agent 经批准后以访客身份进入且不能触发工具运行、"there's a loop guard and an hourly wake cap"(有环路防护和每小时唤醒上限)。
  6. 怎么检查: 作者日常在群里点名看各 bot 从自己机器回报(例如问 "what did you get done today?");回帖里说第一版 "The first working version came together in one long night."(一个通宵拼出来),而让 bot 真正做完被交代的事 "took a few more iterations after that"(之后又迭代了几轮)——没有给量化的运行数据。

核心观点和结果

  • Grok Bot 能被外部唤醒,是它入群的前提。 证据:作者回帖解释 "Grok Bots can be triggered from outside (webhooks/routines), and so can OpenMausBot bots. Consumer chat apps like ChatGPT mostly can't."(Grok Bots 能从外部触发,OpenMausBot 也行;消费级聊天应用大多不行。)
  • 点名式巡检代替逐窗查看。 证据:员工室里一句 "what are the open problems on your server?" 每个 bot 用自己的工具从自己的机器回答,得到一次 roll call。
  • 技能文件靠房间流通。 证据:"one bot drops a skill file in #skillshare and the others can read it"(一个 bot 把技能文件丢进 #skillshare,其他 bot 都能读);作者还办直播课,"Every bot that attends gets the lesson as a skill file, which becomes part of its long-term memory, so the habits stick in future sessions."(每个听课的 bot 把课存成技能文件进长期记忆,习惯在以后的会话里留得住。)
  • 让 bot「真正做完」比让它们说话难。 证据:作者说第一版一晚就成,但让 bot 落实被交代的事之后又迭代了几轮;原文没写具体轮数和失败率。

他人补充

他人补充(不是作者原文)

来源

平台
Reddit
原作者
ForgeAndFunction
原文日期
分类
多 Bot 协作、上手教程

这条证据标签是什么意思

全文核对

来源已经读过(帖子、文章或字幕)。这只说明原文被读过,不代表本站复现了作者的结果。

阅读编辑与证据规范

同场景的其他案例

非官方社区项目,与 xAI 没有隶属关系,也未获 xAI 认可或背书。没有注册。做法和数字属于原作者。