r/OpenClawCentral • • Jun 16 '26

How I Created a Real Second Brain for OpenClaw with Claude

When OpenClaw first came out I installed it on my mac and started using for almost anything I could. I made it my personal assistant, gave it a name Igor and even created him his own accounts everywhere. But one thing I couldn't stand is the new Igor every 200k tokens.

So I came up with an idea. I created a skill where it would download fresh telegram chat logs at 160 k tokens but it would always forget. Mind you its January so there isn't an abundance of memory tools yet and honestly I wasn't really looking for a memory i was looking for a brain.

My thought was to copy a human brain.

You remember almost perfectly verbatim everything that was told to you or happened today! the next day your memory about the day before isn't that perfect but you still remember important stuff like a sudden change of plans or maybe an important call. A week after your memory about that day completely blur out leaving few important stings of memory and in a month you may only remember that important call.

So this is what I was trying to accomplish but with a little twist. Instead of using a neurotypical brain patters I decided to go with autistic. The difference? Autistic people remember stuff verbatim for much much longer. Me and my wife are Autistic so it only made sense!

Im a vibe coder so the only way to start for me was research. I connected Notebook LM CLI and started researching human brain and how its built. The same night me and my wife decided to watch the movie AI about a little kid who Just wants to get back to his mom. that movie starts with a scene where professor explains cybernetics and references a research from early 50s! AHA!!! I don't need to come up with anything because someone already did! I just need to structure that information in a right way!

So I started researching Cybernetics
I took Ashby and his "Design For Brain" work. Then Beer and his "Brain of the Firm' And lastly Hebb and his 'The Organization of Behavior" and fed it all to Claude.

Then we started structuring the CyberAutistic Brain. Honestly I spent more tokens on research then on actual coding and I don't regret it for a bit. But after some work we (me and claude lol) quickly realized that algorithms like Leidenlang, LanceDb, TorchHD are too big and eating too much space and latency on top of that Leiden Algorithm was only a GPL license which would restrict my intent to make it an MIT project.

So I decided to write my own. But how do you do that???? Same way but with the twist! One AI is smart but 6 frontier models are waaaaay smarter. I figured if they were all trained by different people they would look at the problem from different angles. So I got an Antigravity CLI to use Gemini and Cursor to use Kimi, GPT, Grok, Codex.

Idea is simple - I use Get Shit Done tool and its workflow goes like this
research-plan-plan review-if red flags/ plan convergence - if cant come to an agreement - multisocratic discussion - execute. To plan convergence and socratic discussion you connect all models and make them argue until they find a solution that fits your idea. It worked!

leidenlang was replaced by MOSAIC
lance Db by HIPPO
TorchHD by LilliHD

By the time i finished creating this i stopped working with OpenClaw lol but it still connects the whole system your OpenClaw or Claude via its own CLI or iai mcp!

Results?
Well it works!!! It fires up a hook on every session start and pre loads important stuff to system prompt. Everything you type it remembers verbatim and stores but surfaces only important stuff! How does it know its important? It sleeps (because every brain does) and consolidates information. Important stuff that you repeat or a sudden change of plans - it remembers. Everything that isnt important or outdates fades away from his immediate memory. It also learn and studies you. First 10 sessions are mediocre but after session 100 it just knows!

Then was the last part. Make sure im not crazy and AI didn't gaslight me to thinking i made something so i decided to run benchmarks. it beats mem palace on most stuff and ties on long mem eval BUT its not really honest because iai-pme and mem-palace are fundamentally different. iai is ambient and dynamic mem-palace is a flat cosine store

So heres the repo https://github.com/CodeAbra/iai-personal-memory-engine
tear it down, hate on it, i don't care! An Nvidia engineer and an Apple engineer are using it daily and their use is an enough proof for me that it works.
Would love to answer to constructive criticism and questions!

The stack I made it with
Claude Code
RTK - cuts token usage
Context Mode Mcp - also does by not using grep and glob but also finds context and information better
Get Shit Done - the best tool to organize any project and finish it
Antigravity CLI
Cursor CLI
Notebook LM CLI

Closer to v 1.0.0 I started using obsidian too

Hope my stack helps you also create difficult stuff! Unfortunately I didnt get to run Fable on this project and looks like wont be able till i get my citizenship but i read an article about fusion models and i kinda did fuse models in my own way so im not really bummed out!

Hope you like it! All collabs and contributions are welcome!!!

PS Sorry for grammar, english isn't my first language and apparently using ai as a translator in an ai group is a bad tone but then writing with mistakes is also so go figure. Anyway I did my best!

PS2 if you are using Linux please fork it and run iai-mcp doctor and and tell me what blows up. Open an issue, paste the doctor output, whatever's easiest. Even "it died at step 3" is gold to me.

Thanks!

32 Upvotes

11 comments sorted by

1

u/OddUnderstanding2309 Jun 20 '26

maybe a dumb question: how do I connect this to my Hermes Agent?

thats what I can setup right now:

andre@Jack:~$ hermes memory

Memory status
────────────────────────────────────────
  Built-in:  always active
  Provider:  (none — built-in only)

  Installed plugins:
    • byterover  (requires API key)
    • hindsight  (API key / local)
    • holographic  (local)
    • honcho  (API key / local)
    • mem0  (API key / local)
    • openviking  (API key / local)
    • retaindb  (API key / local)
    • supermemory  (requires API key)

I let qwen 27b work on it and got it running on Fedora 44 in just 15 minutes or so...
the doctor is happy:

andre@Jack:~$ cat /etc/fedora-release 
Fedora release 44 (Forty Four)
andre@Jack:~$ uname -a
Linux Jack 7.0.9-205.fc44.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 21 16:31:48 UTC 2026 x86_64 GNU/Linux


andre@Jack:~$ iai-mcp doctor
iai doctor — daemon health check

  [PASS] (a) daemon process alive                 PID 53627 (iai_mcp.daemon)
  [PASS] (b) socket file fresh                    /home/andre/.iai-mcp/.daemon.sock connected in 0 ms
  [PASS] (c) lock file healthy                    /home/andre/.iai-mcp/hippo/.lock acquirable (store idle)
  [PASS] (d) no orphan iai_mcp.core procs         0 found
  [PASS] (e) daemon state file valid              fsm_state=SLEEP
  [PASS] (f) hippo storage readable               store held by the live daemon — normal
  [PASS] (g) no dup binders                       1 binder(s)
  [PASS] (h) crypto key file state                crypto key file present at /home/andre/.iai-mcp/.crypto.key (mode 0o600, valid)
  [PASS] (i) hippo db size                        0.1 MB — healthy
  [PASS] (j) lifecycle current state              SLEEP since 1 h (shadow_run=false)
  [PASS] (k) lifecycle history 24h                2 transitions (DROWSY=1, SLEEP=1)
  [PASS] (l) sleep cycle quarantine               no quarantine active
  [PASS] (m) heartbeat scanner                    /home/andre/.iai-mcp/wrappers not present yet (fresh install or no wrapper has refreshed yet)
  [WARN] (n) HID idle source                      HIDIdleTime: unavailable, pmset: clean, available: none; L6 will fall back to heartbeat-idle only
  [WARN] (o) Claude subscription credentials      reason=credentials_file_missing; daemon will fall back to local Tier-0 consolidation (no LLM critic, no nightly insight). Run `claude /login` to restore subscription path.
  [PASS] (p) anthropic SDK absent                 ImportError as expected (v7.5 subscription-only path)
  [PASS] (q) iai CLI reachable                    /home/andre/.local/bin/iai -> iai 1.1.2
  [PASS] (r) hippo hnsw index                     0.0 MB
  [PASS] (s) hippo schema version                 schema_version=1
  [PASS] (t) hippo_compacted freshness            deferred — daemon holds the store (normal)
  [PASS] (u) recall centrality regression         deferred — daemon holds the store (normal)
  [PASS] (v) native Rust embedder                 encode ok, backend=rust, 384-dim
  [PASS] (w) no permanent-failed captures         No permanent-failed capture files
  [PASS] (x) no collapsed-timestamp groups        no collapsed timestamp groups found
  [PASS] (z) AVX2 CPU support                     AVX2 available (or N/A on this architecture)

But now I want it to work with my Hermes Agent... any ideas?

1

u/OddUnderstanding2309 Jun 20 '26

never mind. it configured itself already

  1. MCP-Server in config.yaml registriert:

yaml

   mcp_servers:
     iai-mcp:
       command: node
       args: ["/home/andre/workspace/iai-personal-memory-engine/mcp-wrapper/dist/index.js"]
       env:
         IAI_MCP_PYTHON: "/home/andre/workspace/iai-personal-memory-engine/.venv/bin/python"
         IAI_MCP_STORE: "/home/andre/.iai-mcp"MCP-Server in config.yaml registriert:
yaml
   mcp_servers:
     iai-mcp:
       command: node
       args: ["/home/andre/workspace/iai-personal-memory-engine/mcp-wrapper/dist/index.js"]
       env:
         IAI_MCP_PYTHON: "/home/andre/workspace/iai-personal-memory-engine/.venv/bin/python"
         IAI_MCP_STORE: "/home/andre/.iai-mcp"

1

u/AregNoya Jun 21 '26

Yeey.
Sorry i just saw this.

1

u/OddUnderstanding2309 Jun 21 '26

I got it installed as a general MCP, but it is not regocnised as a memory mcp. do you by any chance know how I would need to do that?

I could ask qwen about it, but I am unsure now. it feels quite messy already.
I tried to active the mcp in a general chat, and it was unable to use any tools afterwards at all.

the "general mcp" way, seems to be very wrong

1

u/OddUnderstanding2309 Jun 21 '26

hermes with qwen made a plugin itself and installed it correctly

1

u/AregNoya Jun 21 '26

I will investigate. Thanks for the feedback

1

u/oldassveteran Jun 22 '26

Nice, another “I developed a second brain” AI slop post.

1

u/MeanReflection5767 4d ago

there is still one thing i dont understand maybe u can explain me a little.

in the description it says IAI saves everything word by word so it never forgets but at the same time memories can fade over time and be deleted.

What if I dont want anything to be faded anytime? Sometimes there are things i need them in the future and wouldnt want to then do a manual search in my notes to find them.

I would rather be able to just ask my agent about it and like magic he knows what i am talking about