Grok Bot软件写代码交付AI 评分 · 74/100AI 辅助编辑·未发现明显提示词注入风险X

手机远程运营 AI SEO 机构:Grok Bot + Tailscale 双机架构

用手机通过 Grok Bot 指挥双机 SEO 机构:Tailscale 私网、SSH 无密登录、驱动无关 runbook、运行锁与审批钩

经验丰富步骤流程提示词贴士
给谁
需要用手机远程管理多机工作流的技术运营者
你会得到
Grok Bot 作为前门,通过 Tailscale SSH 调度 mac(业务)与 x1(客户工作),双驱动共享 runbook 与锁
你需要
Grok Bot

硬约束

前置条件:Grok Bot 账号、Tailscale 账号、两台可 SSH 的机器(mac + Linux/ThinkPad)、手机可访问 Grok Bot。费用:Tailscale 个人版免费,Grok Bot 按 xAI 定价。来源展示了完整网络架构与脚本,但未提供 ops-dispatch 等全部脚本实现;读者需自行补全。未实测。

他们做了什么

作者 brendenvonhouse 搭建了一套从手机通过 Grok Bot 远程运营 SEO 机构的系统:Grok Bot 云电脑作为前门,经 Tailscale 私网 SSH 连接 mac(商务/密钥)和 x1(客户执行)。主 bot 负责路由,specialist bot 负责各 lane,HANDOFF 模板规范任务交接。双机使用相同路径的脚本和驱动无关 runbook,ops-lock 防止重复运行,pre-tool hook 拦截敏感操作直至人工批准。

效果如何

作者报告:晨报以单条消息送达,语音转文字直接入 log,发布和部署经 Hermes/Telegram 由 hook 拦截等待确认,其余工作在手机上无需打开实体机器即可完成。(author_report,未经验证)

值得知道

1. ops-dispatch 脚本仅描述功能,完整实现未提供,需读者自行开发。2. 作者正在并行测试 Droid(FactoryAI)和 Prime Agent 作为长时任务 harness,结果未出。3. Grok Bot 官方文档明确同一账号下各 bot 共享文件、浏览器会话和命令行凭证,屏幕间非独立安全边界。4. 来源推荐参考 Anthropic 2026-09 威胁情报报告对待 agent 凭证的严肃性。5. 若按来源复制,建议先用单驱动跑通一周再加入第二驱动。

步骤

  1. 用 Tailscale 建立私网并配置 SSH

    在 Grok Bot 的云电脑上安装 Tailscale,将其加入你的 tailnet;在 mac 和 x1 上同样安装。为 bot 生成独立的 SSH 密钥对,将公钥写入 mac 和 x1 的 ~/.ssh/authorized_keys。在 bot 电脑上创建 ~/.ssh/config,给 mac 和 x1 起短名(mac / shed)。测试 ssh mac 和 ssh shed 应无需密码直接登录。如新建 tailnet,建议用 tag 限制 bot 仅可 SSH 访问你的机器。

    运行提示词 · 来源原文。Grok Bot 云电脑的终端;执行后 tailscale status 应列出 bot、mac、x1

    # on grok bot's cloud computer
    curl -fsSL https://tailscale.com/install.sh | sh
    
    # no /dev/net/tun on the box? run the daemon in userspace mode
    # sudo tailscaled --tun=userspace-networking &
    
    # join the tailnet. it prints a login url. approve it from your phone.
    sudo tailscale up --hostname=<bot-box>
    
    tailscale status    # your mac and x1 should be listed by name

    运行提示词 · 来源原文。mac 和 x1 的终端;将 bot 公钥加入 authorized_keys

    # on the mac and on the x1
    # the bot's public key only. one line per key, easy to revoke.
    echo 'ssh-ed25519 AAAA<bot-public-key> grokbot' >> ~/.ssh/authorized_keys

    运行提示词 · 来源原文。Grok Bot 云电脑的 ~/.ssh/config 文件

    # ~/.ssh/config on grok bot's computer
    Host mac
        HostName <mac-name>.<your-tailnet>.ts.net
        User <user>
    
    Host shed
        HostName <x1-name>.<your-tailnet>.ts.net
        User <user>
        Port <ssh-port>

    搭建指导 · 来源原文。Tailscale ACL 控制台(可选,作者建议新建 tailnet 时使用)

    {
      "tagOwners": {
        "tag:agent": ["autogroup:admin"],
        "tag:home":  ["autogroup:admin"]
      },
      "grants": [
        { "src": ["tag:agent"], "dst": ["tag:home"], "ip": ["tcp:<ssh-port>"] }
      ]
    }
  2. 划分双机职责:mac 业务驱动 + x1 客户工作区

    mac 负责 GTM、财务、提案等商务侧,同时运行 Hermes(如有)和 Prime Agent 业务聊天;所有密钥和账单凭证留在 mac。x1(AI shed)负责全部客户执行工作,每个客户一个独立 Prime Agent 聊天和文件夹,每份工作以书面 receipt 结束。规则:不在你正操作的机器上跑 agent 任务,mac 编排、x1 执行。

  3. 配置主路由、HANDOFF 模板与 SSH 派工

    主 bot 为路由器,所有手机指令先到这里,再判断归属并转交。 specialist bot 各负责一条 lane,HANDOFF 消息使用固定格式,接收 bot 仅凭此即可启动。对机器上的工作,路由器通过 SSH 将 brief 发给负责该工作的聊天,然后等待 receipt。dispatch 脚本需实现:拒绝聊天忙碌或已持有任务时的二次 brief,每个聊天同时只处理一份工作。

    运行提示词 · 来源原文。Grok Bot 主路由 → specialist bot 的 HANDOFF 消息格式

    HANDOFF  <id>
    from:    main
    to:      <specialist>
    task:    list this week's inbox threads that need a decision from me
    context: /workspace/<project>/rules.md and /workspace/<project>/clients.md
    done =   one line per thread with the link and the decision needed, saved to
             /workspace/<project>/decisions/<date>.md
    limits:  read only. no replies, no labels, no archiving.
    return:  one line to main: verified | needs yes | blocked: <cause>

    运行提示词 · 来源原文。Grok Bot 云电脑终端;通过 SSH 向 shed 上的 Prime Agent 发送 brief 并读取 receipt

    # from grok bot's computer: brief the client chat on the shed
    ssh shed 'prime-agent send <session-id> "$(cat ~/<workspace>/Runtime/briefs/<occ-id>.md)"'
    
    # later: read the receipt the chat wrote when it finished
    ssh shed 'cat ~/<workspace>/Runtime/receipts/<occ-id>.md'
  4. 建立驱动无关 runbook、运行锁与例行任务

    将脚本放在两台机器的相同路径,使任何驱动(Hermes/Grok Bot)调用同一套 ops-* 命令。runbook 用 markdown 编写,所有出现人名的地方写 'the driver'。每个例行任务开始前用 ops-lock 创建日级锁文件,已存在则 SKIP 防止重复运行。例行任务(如晨报)为带调度的 saved prompt,严格限定返回格式;cron 在 mac 上触发时同样先取锁。

    运行提示词 · 来源原文。Grok Bot 例行任务保存的 prompt;或 cron 触发前读取的 runbook 条目

    ROUTINE  morning brief
    when:    every day 06:45 local
    first:   take the lock. ops-lock R1. if it prints SKIP, stop.
    read:    the evidence pack in Runtime/, today's calendar, inbox labels
    write:   one message, 250 words max. drop empty sections.
             money. client deadlines. approvals waiting. today's calendar.
             inbox items that need me.
    rule:    every money or client line carries its source path.
    never:   send, publish or change anything.

    运行提示词 · 来源原文。mac 和 x1 的 ops-lock 脚本;放在 ~/workspace/ops/bin/ 或相同路径

    #!/usr/bin/env bash
    # ops-lock <routine> [slot]: one run per routine per day (or per slot)
    set -euo pipefail
    routine="$1"; slot="${2:-}"
    day="$(date +%F)"
    lock="$HOME/<workspace>/Runtime/locks/${routine}-${day}${slot:+-$slot}.lock"
    mkdir -p "$(dirname "$lock")"
    
    # noclobber makes the create atomic: the first driver wins
    if ( set -o noclobber
         printf '{"routine":"%s","driver":"%s","host":"%s","started":"%s"}\n' \
           "$routine" "${OPS_DRIVER:-unknown}" "$(hostname)" "$(date -Iseconds)" > "$lock"
       ) 2>/dev/null; then
      echo "LOCKED $lock"
    else
      echo "SKIP: $routine already run or running ($(cat "$lock"))"
      exit 0
    fi

    运行提示词 · 来源原文。runbook markdown 中的 R2 条目;描述调度逻辑

    ## R2 due-work router
    when:     08:30 and 13:30
    driver:   the scheduled driver (see 3a). anyone may run it on demand.
    steps:
      1. ops-lock R2 <HHMM>. SKIP means another driver has it. stop.
      2. read Runtime/due.md. pick items whose owner chat is idle.
      3. ops-dispatch <chat> <occ-id> <brief-file>
      4. log the occurrence id in the work log.
    done:     every due item is dispatched, or listed as blocked with one cause.
    gate:     none. dispatch is internal. sends and releases need a yes.
    
    ## 3a who holds the clock
    scheduled driver: <hermes | grokbot>
    on-demand:        either, same scripts, same locks.

    运行提示词 · 来源原文。mac 的 crontab 示例(Hermes 驱动时)

    # illustrative crontab line on the mac
    45 6 * * *  OPS_DRIVER=hermes ~/<workspace>/ops/bin/ops-r1.sh >> ~/<workspace>/logs/r1.log 2>&1
  5. 设置审批钩与安全边界

    安全边界建立在网络、密钥和审批钩三层:密钥留在使用它的机器,敏感数据不上云电脑;bot 仅通过独立 SSH 密钥和私网访问;mac 上的 pre-tool hook 拦截 send/publish/deploy/delete,直到你在对应聊天中明确回复 yes。Grok Bot 的云电脑与 bot 屏幕间非独立安全边界(官方文档说明),因此所有写操作限制为 inbox 文件夹和 append-only dump log,其余只读。

    运行提示词 · 来源原文。mac 上的 pre_tool_call hook 实现(需接入你的 agent 框架)

    # pre_tool_call hook (illustrative)
    GATED = ("send", "publish", "deploy", "delete")
    
    def pre_tool_call(tool: str, args: dict, ctx) -> dict:
        if any(word in tool for word in GATED):
            # only my own message in this chat counts as a yes
            if not ctx.approved_by_owner(tool, args, channel=ctx.channel):
                return {"allow": False, "reason": f"needs a yes: {tool}"}
        return {"allow": True}

可复制提示词

参考提示词 · 本站建议版本。使用前确认粘贴位置、输入变量及输出格式。

这一段是提示词,页面不会在这里插入广告。

无提示词,按步骤操作即可。

本模板无单一主提示词;核心为架构配置与脚本部署。按步骤执行 Tailscale 组网、SSH 配置、runbook 编写和锁脚本即可。

来源

手机驾驭 SEO 机构:Grok Bot 前门 + Tailscale/SSH + runbook/锁 + 审批钩 · brendenvonhouse · X · 2026-10-10T23:57:05.000Z

留言与反馈

试过这个方法吗?分享效果、遇到的问题或改进建议。留言审核后公开,请勿填写敏感信息。

正在加载…

    相关用例