Who it is forA developer who runs both Claude Code and Codex on the same project and keeps re-explaining past choices to each one.
The problemEach agent session starts empty, so the same decisions get explained again in every tool.
The outcomeBoth agents answer from one store of decision memories, and each answer points to the file it came from.
What you need first
- Python environment able to install the agent-memory package, as described in the README
- Claude Code or Codex CLI installed on the machine
- A store directory set as AGENT_MEMORY_STORE
- Shell access to run the mem commands
Steps
- Run the setup step described in the README so the host agents use the shared store at AGENT_MEMORY_STORE.
- Run
mem recall "why files instead of a database"to see the ranked L0 list of matching memories. - Run
mem context "why files instead of a database"to get the top hits expanded in one call. - Open the same question in Codex and check that it returns the same memory paths.
Prompt for your agent
Use the agent-memory repo at <store path> to recall memories about <topic> with `mem recall` and `mem context`. Return the file paths and one-line abstracts that matched. Verify that the same paths come back when the query is run from Claude Code and from Codex.
Caveat. The README does not give a full setup command in the excerpt, so the first run depends on following the setup section of the README closely.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page