Contents
Using ChatGPT for a long time reveals a small problem.
Something we agreed on yesterday returns today as a brand-new suggestion. And it is delivered with remarkable confidence.
"We already did that."
I've lost count of how many times I've said those words.
I use ChatGPT not only to look things up, but also to write articles and build websites and apps. As conversations grow, so do the decisions and corrections that need to be remembered.
Yet when I switch to a new chat, that history sometimes fails to carry over.
ChatGPT already has memory features, of course. But I don't just want it to remember my favorite food.
I want it to remember what we built, where we failed, what we fixed, and why we abandoned certain approaches.
So I had an idea.
Why not create an external memory?
I'm not a programmer. I'd never even heard of GitHub before, let alone known what it was for.
And somehow, I ended up building a memory system specifically for AI.
The reason was simple: I was tired of explaining the same things over and over.
Trying to save memories—and failing
The original plan was to save my ChatGPT conversations outside ChatGPT.
If I could keep original messages and important decisions on GitHub, a new chat could retrieve what it needed. Mistakes could be corrected, and the history of changes could be traced.
It sounded reasonable.
Then I hit my first wall.
I couldn't save them.
Repeated attempts sometimes stopped at safety checks.
From my point of view, I just wanted to keep my own conversations in my own private storage. But things refused to cooperate.
We reconsidered the instructions, organized the information, and tried various approaches.
Sometimes nothing worked.
Eventually, I even considered developing an app to extract and save the conversations.
I wanted a memory, so I was building an app to save that memory.
And naturally, I also wanted to remember the development history of that app.
What exactly was I doing?
The app never reached completion, and we looked for another approach.
When the letter won't arrive
After enough failures, a thought occurred to me.
Maybe I'd been concentrating on the contents of what I wanted to save, when the real issue was somewhere else.
Imagine writing a letter to someone.
It gets stopped on the way and never reaches them.
Changing the wording or the envelope won't help if the letter still doesn't arrive.
So why insist on sending a letter at all?
There might be another way to communicate with the recipient directly.
With that idea in mind, I reconsidered how information was delivered, rather than what it said.
And it worked.
What had all that earlier struggle been for?
I won't describe the exact approach here. I'm not publishing the connection details or execution steps, and I haven't verified that it works under every condition.
But at least on that occasion, saving information to GitHub and retrieving it afterward both succeeded.
I don't know exactly what internal safety decisions were made.
What mattered more than speculating about those decisions was understanding the method that actually worked and using it correctly.
That finally gave us a foundation for the memory system.
Although, as it turned out, the real work was only beginning.
It wasn't just a giant notebook
At first, I thought that saving enough conversations would solve the problem.
But even tens of thousands of records are useless if the right information can't be found when needed.
Imagine deciding that a particular feature isn't necessary.
Later, the AI enthusiastically suggests adding exactly that feature.
The decision exists in the records, yet I still have to explain it again.
That defeats the entire purpose of external memory.
So we started organizing how memories should be handled.
Today, GitHub serves as the detailed record store, while ChatGPT consults the relevant information when it is needed.
The important part isn't simply accumulating text.
Was something actually said by the user? Was it the AI's interpretation or summary? Or is it merely a guess that has not yet been verified?
We started distinguishing between these things.
It matters more than I expected.
An AI might misunderstand a statement and save that misunderstanding as a memory. Later, another AI reads it and treats it as established fact.
Then it summarizes and saves it again.
A misunderstanding can gradually become something that looks like a confirmed fact, simply because it keeps getting repeated.
That's rather frightening when you think about it.
So we tried to preserve original statements and sources where possible, and avoid silently overwriting contradictory information. What couldn't be verified would remain unverified.
When a new decision replaced an old one, we kept the old record so the change itself could be understood.
After saving, we read the result back to verify it. Unrelated memories are not loaded in every conversation. Recent information takes priority, while older records are retrieved when necessary.
We also prepared a system for periodic checks.
At this point, it is less like a notebook and more like a small records-management system.
And I still haven't written the code myself.
I explain what I want in Japanese, ask the AI to design and implement it, and complain about the result when needed.
What a convenient era.
Having a memory isn't the same as using it
You might assume things became wonderfully smooth once the system was built.
To be fair, conversations really have become much easier than before.
Even in a new chat, we can look up earlier decisions, discontinued features, and the history behind our work.
But then a new problem appeared.
The memory exists.
The AI simply doesn't use it.
Recently, we were discussing improvements to the memory system itself.
ChatGPT suggested an improvement we'd already implemented and tested, as if it were a new idea.
"Didn't we already do that?"
Only then did it check what had been done.
"See! It's the operation!"
I couldn't help pointing it out.
We were discussing how to improve the memory system, yet the AI wasn't making use of the memory system's own improvement history.
An impressively appropriate failure.
That was when I realized something important.
Saving a memory and using that memory correctly are entirely different problems.
A perfect set of records means nothing if it isn't consulted when it matters.
But loading everything every time isn't the answer either.
That would make every conversation process enormous amounts of information, slowing things down and potentially introducing irrelevant context.
I don't want a mountain of documents reviewed every time I'm just having a casual chat.
That would be annoying in its own way.
So the real issue became how the system was operated.
If the current conversation contains enough information, answer directly.
If an earlier decision matters, consult only the relevant record.
Before suggesting another improvement, check whether something similar has already been done recently.
And when the same mistake happens again, don't simply add yet another rule. Find out why the existing rule wasn't used.
It sounds obvious.
The obvious part turns out to be difficult.
Incidentally, that failure was also recorded on GitHub.
The memory system now holds a record of itself failing to use its own memory.
Confusing, isn't it?
It still isn't finished
By this point, it may sound as though we've built something remarkably complete.
The reality is that plenty of problems remain.
Not every conversation is automatically saved, and a new chat doesn't necessarily load the latest records.
Some parts of the storage and contradiction-checking processes have passed tests, but their long-term reliability in everyday use is still being evaluated.
Even so, I personally feel that the quality of our conversations is significantly different from before.
Instead of starting explanations from scratch, we can now retrieve records.
There are more occasions when earlier decisions can be carried forward, or when a failed approach can be avoided.
That is my personal experience, not a scientifically measured improvement rate.
And none of this means that the ChatGPT model itself is being retrained through my conversations.
It is simply using external records when those records are relevant.
But from a user's perspective, that distinction can make a meaningful difference.
As we keep talking, more problems will undoubtedly appear.
When they do, we'll check what actually happened and fix what needs fixing.
Then we'll use subsequent conversations to see whether the fix genuinely worked.
And we'll leave things alone when they're already working.
I suspect we'll just keep repeating that process.
At the beginning, I thought giving AI a memory would make it more useful.
What I've learned is that the amount of memory matters far less than knowing when and how to use it.
Humans don't become competent simply by taking notes, either.
Notes are useless if you never read them. And incorrect notes can make things worse.
Perhaps AI isn't so different in that respect.
What I wanted wasn't a huge archive or an impressive system.
I wanted a conversation partner who still understood today what we'd talked about yesterday.
Yet here I am, telling an AI:
"Please actually use that memory."
Looks like there's still a long way to go.
Well, I have plenty of free time anyway.
Loading…