My Bots Don't Just Back Up Their Memory Anymore. They Use It.

路 5 min read 路 original on X

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:

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:

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:

Not proven yet:

If you run more than one agent

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.

> newsletter

get new articles by email

Practical AI and accessibility, no spam, unsubscribe anytime.

Opens Substack in a new tab to confirm. Prefer to read there? Open the newsletter on Substack.