Shared files align one lead and ten worker bots on counts, handoffs and rule revisions
Overview
An X account uses one lead bot, one staging bot, ten lane bots and overnight Routines. The individual bots work, but the handoffs produce mismatched counts, stale rules and urgent flags in the wrong file.
Workflow
Trigger: Handoffs failed between otherwise working bots. In the author’s first multi-bot workflow, two bots reported different daily counts. Lead’s audit found the discrepancy, and its best guess was that one counted all replies and the other only outbound replies. An old rule remained in other notes and a relayed message. An urgent flag went into one file while the bot responsible read a different path. The author identifies all three as wiring failures. The inspiration was @DeepSeekHarness’s Article 「Exploring Super-agent Design: Towards a More Autonomous Agent System」, which the author says had 18K+ bookmarks. The author tackles continuous automation as a small builder running one X account, one lead bot, one staging bot, ten lane bots and Routines that wake overnight. Shared plain-text files coordinate them. The author checks and pastes every main post and Article, and bots only handle replies. The article offers five shared-file patterns with templates and an audit prompt to stop bots disagreeing about a rule or number. It applies to two or more bots, or one bot with several Routines, doing the same work. Two prerequisites come from official Grok Bot docs. Use shared storage, which is the persistent shared cloud computer’s /workspace, and manually run each Routine through before automating.
- Bot: Give each rule one Source of Truth. All bots read the same file and changes happen in one place. The author initially let every bot retain a copy. After changing the reply target from 6–10 to 40–45, Lead found the old 6–10 in six places: two note files, a relayed message and three bots. One stalled the pipeline for about an hour and a half. Use an SoT file, link it without restating it and keep auditing, since the author still finds gaps. The author has SoT files for voice, daily cadence and publishing. The description says only 「read X.md before acting」, without copying X.md. Put the author’s template at the top of an SoT file:
# <TOPIC> - Source of Truth Owner: <lead bot or you> Rev: r1 · <date> · <who asked for it>
Applies to: <list of bots / routines> Bots must read this file at the start of every run. Bots must NOT copy these rules into their own notes.
## Rules
- ...
- ...
## Changelog r1 <date>: first version
Check one rule by using grep on each bot’s notes. If it appears outside the SoT file, remove the copy and link instead.
- Bot: Use a Single Counter. The daily count should have one answer. Two Routines tracking similar actions independently likely caused drift. A scan said 7 to 10 replies and the log showed 7 sent and 4 received. Lead found the mismatch and the X API matched the log. On 2026-11-10 the daily log became the sole counter. All bots reference it. Use one date-named file a day. Read it at the start and append a Counts line at the end. Keep counts out of memory and personal notes. Daily caps are in the SoT file and the counter points there. The author’s example uses outbound 3/20. The simplified format follows. The author’s full format has RUN START, notes and Counts per run:
# counter/<YYYY-MM-DD>.md cap source: <path to SoT file>
| time | routine | action | target | total today | |------|---------|--------|--------|-------------| | 08:23 | worker-a | done | <id or link> | 1 | | 09:51 | worker-b | skip (spacing) | - | 1 |
Read this file before acting. Append one row after acting, even for a skip.
Record skips so the next run knows why no action was taken.
- Bot: Use a Handoff Flag. One bot hands work to another without contacting the author. Scout discovers and another Routine acts. Scout formerly messaged the author about every 30 minutes, making an author who needs sleep the message bus. Now Scout records a flag under Mega watch in the daily file and the worker keeps a five-line lock file. Read both each run. Its lines are status, target, counts, text (exact) and prev. Put deadlines in the rule file. Revision r21 gives urgent items two hours. If the worker misses it, it still sends on the next run and marks LATE in the counter. The author uses two files but offers one flag file as a simpler start:
# inflight.md (one open flag at a time)
status: PENDING | CLEAR target: <link> <post time + timezone> counts: <today's tally, quoted from the counter file> text (exact): <the text that went out, once it's sent> prev: <previous target> -> <result link>
worker: on PENDING, act, then set status to CLEAR - DONE <result link> worker: past the deadline in the rules file, still act, mark LATE in the counter scout: never overwrite a PENDING flag
Define accepted status words. The author allows only CLEAR and PENDING, so no run has to guess.
- Bot: Use One Voice. Ten small completion notices per day bury the important one. On 2026-11-10, workers began reporting only to Lead, which decides what reaches the author. Lead and staging communicate directly. Staging shows final posts for the author to check and paste. The morning signal brief and bookmark bots are temporary exceptions. Under the engage rule, the author can say 「pause」 to stop everything they run. Put this template in the comms SoT:
# comms-rule.md Rev: r1 · <date>
Talks to me directly: <lead bot>, <staging bot> Everyone else: report to <lead bot> only.
Report format (one message, not a stream):
- what ran
- what changed
- one blocker, if any, said once
Always obeyed from any bot: "stop" / "pause" from me. Never: repeat the same blocker every run.
Lead can also consolidate overnight reports by having each worker write a section and sending one digest.
- Bot: Keep a Revision Log that names which version each change supersedes. Bots need to know which rule applies. The daily cadence file went from r16 on Nov 10 through r18, r19, r20 and r21 to r22 at writing, all within five days. Without labels, bots remember last week’s count and argue with the file. Number each change and record the date and requester. Add a line when it replaces something. Put this template in the SoT changelog:
r<N> · <YYYY-MM-DD HH:MM tz> · asked by <who> change: <old value> -> <new value> supersedes: r<N-1> (<what it said>) applies from: <time>, not retroactive bots: update your notes, forget the old value
Ask any bot for the current revision of a rule. If it cannot give a number, it is reading memory instead of the file. Effective time costs one line. r18’s Nov 12 14:53 timestamp and note superseding the old 50-row cap told bots which runs had the new cap. The bonus wiring audit prompt goes into Lead. It reads the setup, identifies missing or broken patterns and changes nothing without permission:
Act as my Wiring Auditor. Do not edit any file yet.
Inputs I'm giving you:
- shared folder: <path>
- bots/routines in scope: <names>
- the job they share: <one line>
Check these five things and report each as OK / MISSING / BROKEN with the file path and one line of evidence:
- Source of Truth: is each rule in exactly one file? List any rule copied into a bot's notes.
- Single Counter: is there one dated counter file? Does any routine keep its own count?
- Handoff Flag: how does one routine hand work to another? Are state words defined?
- One Voice: which bots message me directly? Should they?
- Revision Log: does each SoT file have numbered revisions with "supersedes" and "applies from"?
Then give me the 3 smallest fixes in order, each with the exact text to add. Stop and wait for my yes before writing anything.
Check: Lead’s audit caught count drift and six stale rule copies. Step 1 searches each bot’s notes with grep, and step 5 asks for the current revision. The source does not say how the author checked the overall effects once all five were in place.
Key points and results
- Start with one counter. Lead’s audit first caught count drift, so the author gives it priority.
- The failures were between bots. Lead suspects one daily count included all replies and the other only outbound. Stale rules remained in notes and a relay message. The bot’s urgent flag path and the worker’s path differed.
- A person makes a poor message bus. Scout used to message about every 30 minutes. The flag file let the author sleep.
- Establish revision precedence. Without labels, bots remember last week’s number and argue with the file. Name the replaced revision and effective time. r18 replaces the 50-row cap at 14:53 on Nov 12.
- Ten completion notices bury the important one. Workers now report only to Lead, which decides what the author sees. Morning brief and bookmarks are temporary exceptions.
- The audit reads and waits for approval before editing. The author’s wiring audit changes nothing without approval.
- The author still finds copied rules. Audits continue to find rule copies that have not been replaced with references.
- Two official prerequisites for a small setup. Two or more bots, or one with several Routines, can share persistent /workspace files. Manually run each Routine once before automating.
- Key figures are from the author and were not reproduced. The scan showed 7–10 replies versus 7 outbound and 4 inbound in the log, which matched the X API. The 6–10 target remained in six places and one stalled the pipeline about 90 minutes. The cadence file went from r16 to r22 in five days.
Source
- Platform
- X
- Author
- rufo.ai 💻
- Published
- Categories
- Multi-bot teams, Getting started
What this evidence label means
Author's claim, unverified
The method and results come from the author's own account. This site has not reproduced them.