Memory that lives inside one harness is gone the moment you switch tools.
HarnessRouter puts the store in a swappable engine (Mem0, Graphiti, Hindsight, or ReMe). Any harness reads and writes it through one protocol. Grants live on the memory, not on the harness, so an agent only touches the records of the user it's working for.
Copy the session loop: prime standing records at start, use memory tools during the turn, write the finished turn back as episodes. Recalled content is treated as untrusted data, fenced from instructions, with written_by attached.
If you ship more than one coding agent, check whether memory is a grant the user keeps, or a file trapped in one CLI.
@_avichawlaAgent Memory 2.0 is here!
Every agent harness implements its own memory today, so whatever Claude Code learns about you is gone once you switch to Codex.
Devs just open-sourced Harness Memory in HarnessRouter, where the entire memory actually belongs to the user, not to the harness.
Any harness can read and write it through one standard protocol, and the engine underneath is swappable: Mem0, Graphiti, Hindsight, ReMe, or your own.
In the video below, I gave a Claude Code agent some trip preferences. A fresh Codex session then recalled them and planned dinner around them, with no handoff code in between.
Memory loads at session start, gets searched on every turn, and is saved when the turn ends. Each user's memory stays isolated, and recalled memory reaches the agent as data, not instructions.
Here's the repo: https://github.com/HarnessRouter/harnessrouter
(don't forget to star it ⭐)
This works because HarnessRouter already runs every harness behind one interface.
Sessions, streaming, files, and failures look the same whether the task goes to Claude Code, Codex, or Hermes, so memory could become one more shared layer instead of something each harness reinvents.
Akshay wrote a detailed article on how that interface works and why routing a harness is very different from routing a model.
You can read it below.