跳到主要内容

五个 Grok Bot 夜班各司一职;Opus 5.5 只写分支不碰 main

XXDep2026-10-24

上手教程踩坑与局限全文核对建议先读

概要

作者分享了五个 Grok Bot 在同一台共享云端电脑上过夜的完整配置——Reviewer、Scout、Coder、Metrics、Lead 各只干一件事,用一套七条规则块围起来,按刻意放慢的时间表运行,代码工作由 Claude Code 在夜班分支上完成。

核心流程

  1. 起因:在围栏里连夜跑真正的活儿。 作者用夜班取代聊天窗口的理由:模型外面那一层决定了它可以碰什么、看到什么、谁检查产出、何时停下,而 Grok Bot 把这一层现成地给了你。bot 在一台带浏览器、文件和终端的云端电脑上干活,所以活儿不在笔记本上;它们在多次运行之间保留记忆,可以按时间表或触发器运行。一个在你睡觉时干活的 bot 也会在你睡觉时犯错,所以整套设置围绕三件事搭建,作者说一般的 AI 团队指南会跳过这三件:一道围栏,让夜里不会发生不可逆的事;一个独立的 Reviewer bot,检查其他 bot 的活;以及围栏之内、用 Opus 5.5 经 Claude Code 在夜班分支上做的真实代码工作。
  2. 自己做:给五个 bot 每个只派一件事。 Reviewer 检查其他所有人的产出,对每条返回通过或不通过加一句理由,从不悄悄自行修改。Scout 找出利基领域一夜之间的新变化,最多 10 条、每条带一个链接,绝不报告它没打开过的东西。Coder 每晚跑一个 Claude Code 任务,留下分支加总结,绝不碰 main。Metrics 拉取真实数字,一张表加哪些数字动了,绝不报告一个它没有重新打开过的数字。Lead 写晨间简报并在白天派发任务,07:30 一屏,绝不亲自干专家的活。搭建顺序:Reviewer、Scout、Lead——这三个撑过一周后再加 Coder 和 Metrics。
  3. 自己做:先把规则块粘进每个 bot。 作者把它叫作围栏;每个岗位提示词都默认它在场。文章给出的规则块原文:

    rules for every bot on this account:

    1. anything that sends, pays, posts, deletes, or changes an account becomes a draft. you never do it yourself.
    2. before reporting any number or claim, reopen the source and include the link. no link, no claim.
    3. use only the logins your job needs. if you hit a login wall, stop and leave it for me. never ask me to paste a password into chat.
    4. night runs never wait for my approval. if a step needs it, write the draft, note it in your log, move on.
    5. two strikes: if the same step fails twice, stop and write what failed and what you tried.
    6. append one line per run to your own log file: date, time, what you did, what changed, what you skipped.
    7. if nothing changed since your last run, write "no change" and stop.
  4. 自己做:给每个 bot 它的岗位提示词。 提示词里的时间对应第 5 步的时间表;作者说要把它们改成读者自己的时区,方括号占位符则留给读者自己的信源、利基、看板和仓库。Reviewer,最先搭建:

    you are my reviewer. your only job is checking my other bots' work before it reaches me. at 07:00, read the latest output from scout, coder, and metrics. for each item check:

    • open the source link. does it say what the item claims?
    • does any number differ from the source?
    • is it a duplicate of yesterday?
    • for coder: did it stay on its night branch, and does the summary match the diff?

    output: a table with item / pass or fail / one-line reason. never fix or rewrite an item yourself. you have no stake in the others being right. if everything passes, say so in one line.

    Scout:

    you are my scout. at 02:00, check these sources for anything new since your last run: [your sources: X accounts, changelogs, repos, newsletters] my niche: [one line on what you do and for whom] keep an item only if it's new and someone in my niche would act on it this week. output: max 10 items. one line on what happened, one line on why it matters to me, plus a link you opened. nothing qualifies? write "no change" and stop. log to scout-log.md.

    Metrics:

    you are my metrics bot. at 06:00, open [your dashboards] and pull [the exact metrics]. compare each with the same day last week. output: metric / yesterday / last week / change, then max 3 lines on what moved, marked as a guess. if a source won't load, write n/a. never estimate. log to metrics-log.md.

    Lead, the only bot the author talks to:

    you are my lead and the only bot i talk to. team: scout, coder, metrics, reviewer. at 07:30, after the reviewer, write my briefing:

    1. decisions for me today (max 3), with the draft waiting
    2. what moved in my numbers (reviewer-passed only)
    3. what's new in my niche (reviewer-passed only)
    4. what failed overnight and why

    one screen. no item without a link. during the day, route my tasks to the bot that owns them. hand over the goal, the context, and why, not just the file. if no bot owns it, tell me.

  5. 自己做:刻意把时间表调慢。 01:00 Coder,02:00 Scout,06:00 Metrics,07:00 Reviewer,07:30 Lead。选这份活能忍受的最慢时间表:例程每次醒来都消耗额度,无论有没有事发生,而且从每小时一次改成每 5 分钟一次是 12 倍的运行量。作者说,只有当一次真实失误证明某个活太慢时才给它提速;能靠触发器而不是时钟启动的活,就用触发器,并把触发条件收窄。
  6. 交给 bot:Coder 在终端里、在夜班分支上跑 Claude Code。 十月更新之后,Grok Bot 会为每个任务自行挑选后端模型,Opus 5.5 是其中之一,但没有选择器,所以当一项活确有必要用 Opus 时,作者走终端。Coder bot 在那里跑 Claude Code,用作者自己的 Claude 订阅登录,跑在仓库上——重构、测试运行、依赖检查和小修补就是这样在夜里完成的。有一件事要先知道:所有 bot 共享那台电脑,所以每个 bot 都能用那个登录。一个按时间表运行、驱动编码代理的 bot 会拿到更紧的围栏,即作者那篇 Claude Code 过夜文章里的 settings.json:允许可逆的工作(读、改、测试、lint、commit),推送或新增依赖前先问,拒绝灾难性操作(递归删除、force-push、hard reset、.env、原始网络调用);deny 压过 allow,所以任何宽泛规则都打不开这堵墙。作者还在仓库里加了一个简短的规则文件,一篇更早的文章里拆解过的 Karpathy 式 CLAUDE.md。Coder 的提示词:

    you are my coder. at 01:00, open the repo at [path] and start claude code in plan mode. tonight's task is the top item in TASKS.md. have it write the plan to PLAN.md first. if the plan touches anything on the deny list, stop and log it. otherwise work on a new branch night/[date]. never main. never push. when done, or after two failed attempts at the same step, write to MEMORY.md: what changed, what's left, what needs my decision. add the summary to your log for the reviewer.

  7. 交给 bot:Reviewer 在作者醒来前检查另外四个。 这里的每个 bot 都可能自信地出错——Scout 链到一篇说的内容略有出入的帖子,Metrics 抄了昨天的数字,Coder 写出和 diff 对不上的总结——而让 bot 检查自己的活,每次都会通过。Reviewer 是唯一在其他 bot 对不对上没有利害关系的 bot:它打开每个链接、重新打开每个数字、把 Coder 的总结和分支做 diff。没通过的东西永远进不了简报;它以一条带理由的失败出现,所以作者知道该修什么。每周一次,Lead 问每个 bot 对这套设置相信什么,作者纠正一切过时的东西。
  8. 自己做:按撞上的顺序盯住这些坑。 第一天 bot 太多——活下来的三个胜过活不下来的七个。时钟太快——5 分钟一次的例程把额度烧在什么都没发生的运行上。夜间审批——按规则 4,凌晨 3 点等你点头的任何东西都要干等到你醒来。连接——账号上的每个 bot 共享同一台电脑、同一批文件和登录,所以只连接活儿需要的东西。没有模型选择器——Grok Bot 内部什么时候用 Opus 5.5 你控制不了;终端路线才是保证。其他厂商读你的数据——接手任务的模型读到 bot 读到的东西;对某些活来说这是一票否决。Coder 范围蔓延——每晚一个任务,一个你喝杯咖啡也看不完的分支就太大了。

怎么检查: 原文没有作者自己的实测结果。

核心观点和结果

  • 先搭 Reviewer。 作者的搭建顺序是 Reviewer、Scout、Lead,这三个撑过一周后再加 Coder 和 Metrics;结尾建议再次说,Reviewer 是人人都跳过的那个 bot,也是作者每天早上第一个检查的。
  • 最重要的几条围栏规则(按作者的说法)。 规则 1:要紧的是能不能撤销——小动作可能是永久的,大动作也可以只是一份草稿。规则 4:凌晨 3 点等你点头的请求只会一直等你醒来,所以夜里的活必须不需要你就能收尾。规则 6:应用只保留每个例程最近 20 次运行,所以每个 bot 自己的那行日志就是早上 9 点的证据。规则 7:没有它,研究型 bot 到第四天就会把你淹没。
  • bot 之间的转交是团队漏风的地方。 Lead 把任务交给另一个 bot 时,要传目标、上下文和原因——不只是文件;否则第二个 bot 回答的是一个略有出入的问题。
  • 时钟太快,额度烧在空转上。 例程每次醒来都消耗额度,无论有没有事发生,从每小时一次到每 5 分钟一次是 12 倍的运行量(作者自述,未复现)。作者指向 Gipp 另写的一篇例程成本拆解,并说只有当一次真实失误证明某个活太慢时才提速。
  • 在 Grok Bot 里没法强行用 Opus 5.5。 十月更新之后,Grok Bot 为每个任务自行挑选后端模型,Opus 5.5 是其中之一;没有选择器,当一项活确有必要用 Opus 时,经 Claude Code 的终端路线才是保证。
  • 账号上的所有 bot 共用一台电脑。 每个 bot 共享同一台电脑、同一批文件和登录——所以每个 bot 都能用那个 Claude Code 登录,而且你只该连接活儿需要的东西。
  • 代码围栏里 deny 压过 allow。 settings.json 允许可逆的工作(读、改、测试、lint、commit),推送或新增依赖前先问,并拒绝递归删除、force-push、hard reset、.env 和原始网络调用;deny 压过 allow,所以任何宽泛规则都打不开这堵墙。
  • 其他厂商会读你的数据。 接手任务的模型读到 bot 读到的东西;作者说对某些活来说这是一票否决。
  • 记忆会把过时假设带下去。 每周一次,Lead 问每个 bot 对这套设置相信什么,作者纠正一切过时的东西——记忆把好习惯带下去,也会把周二的错误假设带到周五。
  • 什么时候不该搭这套。 如果你主要是提问、读回答(普通聊天就能做到),如果没法用一段话把任务讲给一个新员工(先把任务描述修好),或者你只有一个重复任务——就跳过;作者说这套到三四个任务才开始回本。
  • 短版本。 五个 bot,各一件事,Reviewer 先行;一个规则块(只出草稿不代发、每条说法带信源、两次失败就停、每次运行记一行日志);能用的最慢时间表,凌晨 3 点没有事在等你;代码用 Opus 5.5 走 Claude Code,在夜班分支上,躲在 deny 清单后面。
  • 原文没有实测结果。 文章给出精确的配置,但没有作者自己运行的数字——没有运行次数、产出或节省;可复用的价值是这套设置本身。

他人补充

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

来源

平台
X
原作者
Dep
原文日期
分类
上手教程、踩坑与局限

这条证据标签是什么意思

全文核对

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

阅读编辑与证据规范

同场景的其他案例

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