My Bots Don't Just Back Up Their Memory Anymore. They Use It.
A few weeks ago I posted a thread about giving my AI agents one long-term memory, self-hosted in my lab. Eleven days in, it held 381 facts across 43 documents.
That thread covered how it’s wired. It was only half the story.
That first version ran one direction. My bots wrote to the memory at night. During the day they only looked things up if I asked, and nothing crossed over to a second agent. Basically a backup with a nice filing system.
This is the update. What changed, what’s actually running as of Dec 2, and what I still haven’t proven.
Quick recap
If you missed the thread:
- The memory is Hindsight, an open-source agent memory from Vectorize. It runs on my lab server.
- Six agents use it: five Grok Bot agents (chief of staff, IT, business, Etsy, data) and one Hermes agent.
- Each bot gets its own bank. Team-wide facts go in one shared bank.
- Only new facts go in, and the memory gets backed up to my NAS.
- No secrets and no contact info, ever.
Why a nightly dump wasn’t enough
A nightly dump tells you whether the memory got saved. It can’t tell you whether the bot knows something right now.
Anything I decided in the afternoon wasn’t in the memory until the next night. And moving a job between Grok Bot and Hermes meant I was the messenger again. Same problem I fixed in the shared desk article, just with memory this time.
What I changed
1. The nightly sync got a gatekeeper
The sync now runs at 4 AM. A cheap check goes first: has anyone chatted with that bot since the last sync? If not, it skips and costs almost nothing.
The five-bot night test on Nov 25 ran clean, and the old 3 AM syncs are gone. To save usage, the chief of staff and IT bots sync daily. The other three sync Monday and Thursday.
The Dec 2 run saved 32 new facts from the chief of staff bot, stamped Dec 1 and 2, into four topic documents.
2. The bots can read it mid-task
Each Grok Bot has a connector to its own bank. When it needs history, it searches.
I had my chief of staff bot search its own memory while I was writing this. I asked about its handoff note and got back ranked, dated facts, including one written at 4:30 AM on Dec 2.
To be straight about it, that search is a tool call the bot chooses to make. It does not read the memory on every message. That would burn through usage fast.
3. One handoff note
The chief of staff bot keeps one document in its bank called “where we are.” The 4 AM run rewrites it, and my rule is that when I say “hand off to Hermes,” the bot rewrites it right then.
It’s short: what’s open, what was decided, what’s next. So whoever picks up next doesn’t start cold.
4. Hermes can read it and write back
I built a Hermes copy of my chief of staff bot as a pilot. It reads that bot’s bank on every turn, and my IT bot confirmed that in the logs.
In the test it wrote exactly one fact back, a made-up marker phrase, tagged so I can see it came from Hermes. The Grok Bot side can find it. The pilot passed all 24 of my IT bot’s checks.
One test fact. That’s the whole round trip so far, and I’m not calling it production.
The rules that keep it from getting poisoned
Agents read web pages and email. If junk lands in memory, it sticks. So:
- Nothing copies in automatically. Auto-saving whole chats is off, and so is Hermes’s own memory store for the copies.
- Facts go into the shared bank only when I promote them on purpose.
- Only Hermes writes to Hermes’s own bank. That rule hasn’t changed.
- One side works on a task at a time. A marker file in a shared folder says who has it, and the other side acknowledges a short handback summary.
- Still no secrets and no contact info.
Two real gotchas
1. A quiet outage. On Nov 24, every bot lost its connection to the memory from 3:40 AM until about noon. A lab-wide network link dropped for a moment. When it came back, memory requests arrived from a different network address than the relay allowed, so every call got rejected. The bots just saw a vague “error posting to endpoint.”
My IT bot traced it by about 8 AM. The fix waited on me, and I approved it at 12:13 PM. Whoops. 馃槄
2. An upgrade that failed. The Nov 27 Hindsight upgrade failed its acceptance check. It rolled back from a cold copy, and all eight banks came back with identical counts. The retry went through after the package fix.
That’s a rollback, not a restore test. Don’t confuse the two. I almost did.
Where it stands
Working:
- The gated 4 AM sync and the NAS backups
- Grok Bot searching its own memory mid-task
- The “where we are” note, rewritten at 4 AM
- A Hermes copy that reads the same bank and wrote one test fact back
Not proven yet:
- A real restore test of the NAS backup
- The Hermes copies as something I use every day
- The “hand off to Hermes” rewrite in a real switchover
If you run more than one agent
- Write on a schedule, and only what’s new.
- Give the agent a way to search the memory mid-task, and watch what it costs.
- Keep one short “where we are” note for handoffs.
- Let nothing write in automatically until you’ve watched it for a while.
- Test the restore, not just the backup.
Does your agent only save its memory at night, or can it read it mid-task? And what are you willing to let write back on its own?
Originally posted on X.