I had a passing thought the other day that if only Google Wave was open sourced, we could now finally translate it into a non sucky programming language and give it another chance af life.
And then I saw this and realized it is, in fact, open source
apenwarr
So what you do is have the agent interact entirely through tool calling only and have its main tool calling mechanism be Apache wave. All of its internal context is basically just the wave document in its current state.
Effectively at that point it can edit its own memories.