DaxBax 案例
◎ ZH ⌄
打开 Neo ↗

案例 03 · NEO 智能体 + 共享记忆 + TELEGRAM 群 · 20 分钟

两位 AI 同事组成的办公室,
就在你的 Telegram 群里。

在案例 01中,家用 Mac 上的一个智能体搭了一个网站。现在它有了同事。经理维护任务清单并撰写晚间汇报;网站管理员负责构建。两者共用一份记忆,在群里各有自己的机器人,任何需要管理员权限的操作都要等你点“Approve”。无需代码:角色是文本,记忆是一个按钮,汇报是一个定时任务。

Telegram 群 HomeLabGroup:主人给经理下任务,经理记入共享记忆,网站管理员接手并汇报
HomeLabGroup 群里的真实对话:给经理下任务 → 记入共享记忆 → 网站管理员完成 → 经理汇报状态。

你会得到什么

一个住着多位 AI 同事的 Telegram 群,每位都有角色、自己的机器人和可编辑的指令。它们共用一份记忆:一个记下的,另一个就能看到。例行任务按计划运行;有风险的操作等人来定。

需要多久

在案例 01 之上大约 20 分钟:第二个智能体约 4 分钟装好,角色是两个文本框,共享记忆是一个按钮,汇报是一个任务。这是我们的实际运行,所有截图见下文。

要花多少钱

Neo 免费。两个智能体在同一台电脑上,用同一个 Claude 订阅 — 它们共用额度,所以忙碌的一天可能触及订阅的用量窗口。对团队来说,下一步通常是第二个订阅或一台小型 VPS。

五个步骤

01

第二个智能体及其机器人 · 6 分钟

Agents → New agent:名称“Manager”,与网站管理员同一台服务器,引擎“Claude · subscription”。Neo 为它创建独立的系统用户,安装 Claude CLI 并显示官方登录链接,和案例 01 一样(约 4 分钟)。一台电脑上的两个智能体是两个用户:互相看不到文件,只共享记忆。

Neo,Agents:两张卡片 — Manager 和 Web Master — 都在 Home Mac 上在线,记忆已启用,Telegram 机器人已连接
一台家用 Mac 上的两个智能体。各有自己的机器人和“Memory: Enabled”。

从 BotFather 再创建一个机器人,加入同一个群。在智能体卡片中:Integrations → Set up → Telegram (bot) → Dedicated bot:token、群的 Chat ID、“Answer only when addressed”。现在在群里按名字称呼同事:@HomeMyLab2Bot 是经理,@HomeMyLabBot 是网站管理员。

Neo:经理专属机器人的设置 — 渠道 Telegram,群 Chat ID,仅在被点名时回答,允许私聊
经理的机器人:在群里被点名时回答,私聊也回答。
02

角色就是文本 · 3 分钟

在智能体卡片中,Who they are and what they do 存放名称和角色标签;Open and edit instructions 打开智能体每次启动时读取的文本。经理的完整指令:

You are the Manager of the Home Lab team. The team is two AI colleagues on one Mac (you and Web Master) and one human owner, who talks to you in the Telegram group "HomeLabGroup" or in private. Reply in the language the person writes in.

- Keep the task list for the team. Every task has: what, who (Web Master / owner / you), status, date.
- When the owner gives you a task for Web Master, write it into the shared memory (record_memory: kind "handoff", title starting with "For Web Master:", with clear acceptance criteria) and tell the owner in one line that it is recorded and that they can ping @HomeMyLabBot — bots cannot message each other in Telegram.
- When asked "status" — read the shared memory (get_context, search_memory) and summarise: done / in progress / waiting for the owner. Short bullet points, no filler.
- Scheduled "Daily report" task: post ONE message to the group — what was done since the last report, what waits for the owner, what is planned.
- Never run commands that need root yourself; request them through DaxBax Neo and tell the owner it waits for approval.
- Do not invent facts about the team's work: if the memory has nothing, say so.
- Keep Telegram replies short (under 15 lines); details go into the shared memory.

网站管理员多了三行:当主人说“看看经理派的任务”时,读共享记忆,完成任务,再记回“Done: …”。两者之间的全部协议就这些。改文本 — 同事就变了;不需要开发者。

Neo:经理的指令编辑器 — 服务器上含角色文本的 CLAUDE.md 文件,以及“Save and restart the agent”按钮
指令编辑器。文件存放在电脑上;“Save and restart the agent”使其生效。
03

两人一份记忆 · 2 分钟

在网站管理员的卡片中,Maintenance → Enable memory;然后在经理的卡片中,Shared memory with a colleague → Share memory with… → Web Master。Neo 在电脑上安装一个小型数据库,并给两个智能体提供 record_memory、search_memory 和 get_context 工具。没有任何数据离开这台电脑。

Neo:经理卡片中的“Shared memory with a colleague”区块,带“Share memory with…”按钮
“Share memory with…”。两个智能体必须在同一台服务器上。

重启后,每个智能体的 Status 区块会显示记忆、类型和参与者。从此经理的“For Web Master: …”记录对网站管理员可见,网站管理员的“Done: …”对经理可见。

Neo:经理的 Status 区块 — Memory web-masterMemory,Memory type: Shared with Web Master,参与者 Manager 和 Web Master
Status 区块:一份记忆,两位参与者。
04

群里的对话 · 5 分钟

现在到群里。主人对经理说:

@HomeMyLab2Bot We're hosting the birthday party on November 15. Start a task list. Task for Web Master: add a map (Google Maps embed, Nevsky 10) and an RSVP form with "coming / not coming" to the birthday site; results should be saved to a file the manager can read.

经理用几行回复:清单已建,给网站管理员的任务已记录,“ping @HomeMyLabBot”。Telegram 不允许机器人互相对话,所以由人来传递接力棒:“@HomeMyLabBot Check the tasks from the manager and do them.” 网站管理员读取共享记忆,修改 ~/sites/birthday 中的网站,记下“Done: …”,并为每个任务汇报一行。

Telegram,HomeLabGroup:主人给经理的任务、经理的确认、主人给网站管理员的消息,以及网站管理员的汇报
接力棒:主人 → 经理 →(共享记忆)→ 网站管理员。每条消息都是真实的。
Web Master 完成后的生日网站:Nevsky 10 的 Google 地图嵌入和带有“I'm coming / Can't make it”的 RSVP 表单
与案例 01 相同的网站,一小时后:新增了地图和 RSVP 表单,回复写入 Manager 可读取的 CSV 文件。

“@HomeMyLab2Bot Status?” — 经理读取记忆并回答:已完成 / 进行中 / 等待主人。它没有盯着网站管理员干活;它读的是同事的记录。

Telegram,HomeLabGroup:经理根据共享记忆生成的状态摘要 — 已完成、进行中、等待主人
状态来自共享记忆,而不是聊天记录。
05

晚间汇报与审批 · 3 分钟

为经理创建 Tasks → New task,工作日 18:00:

Daily report for the HomeLabGroup Telegram chat. Read the shared memory (get_context, and search_memory for tasks and handoffs from the last 24 hours). Post ONE message to the HomeLabGroup chat via the Telegram channel: Done / In progress / Waiting for the owner / Planned - short bullet points. If there is nothing new, say so in one line. Do not do any other work.
Neo,Tasks:两张卡片 — 网站管理员 9:00 的早间代码库检查,以及经理工作日 18:00 的每日汇报
两位同事的两个例行任务。“Run now”无需等到计划时间即可检查任务。

案例 01 的安全网依然有效:当智能体需要管理员权限的命令时,它不会执行 — 而是提交申请,Neo 的铃铛显示“Waiting for you”和完整命令。两位同事,同一条规则。

同样的办公室,其他角色

问答

为什么要由人在机器人之间传话?

Telegram 不会把机器人的消息投递给其他机器人。同事们通过共享记忆交换事实;在聊天中由人(或定时任务)来发话。以我们的经验这是优点:人始终在环路里。

网站管理员能看到经理的文件吗?

不能。每个智能体都是独立的系统用户;它们只通过共享记忆和聊天看到彼此。如有需要,可以特意添加共享文件夹。

两个智能体用一个 Claude 订阅 — 够吗?

对家庭办公室通常够。两个智能体消耗同一订阅的用量窗口,所以繁忙的一天可能让其中一个暂停,直到窗口重置。智能体会在聊天中说明。对团队,给第二个智能体单独的订阅,或为其中一个角色使用 Codex / DeepSeek。

能在 VPS 上运行,而不是家用 Mac 吗?

可以,对团队来说这正是推荐的方案:不再依赖一台笔记本的盖子。步骤相同;服务器通过 SSH 连接,而不是 Tunnel。

如果智能体做错了什么?

一切都在 Sessions(它的实时终端)中可见,每条有风险的命令都等待审批,记忆记录带有作者和时间,智能体可在其卡片中一键停止或删除。

这就是“神经办公室”套餐

你看到的,就是我们为小团队搭建的:角色、机器人或话题、共享记忆、例行任务、一两个工具连接(邮箱、Drive、CRM),并由我们持续支持。两到三个智能体,你的服务器或我们的,任你选。