DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to share one memory of decisions across Claude Code and Codex with Agent Memory

Let Claude Code and Codex read and write the same store so past decisions carry into new sessions.

Short answer: Run the setup step described in the README so the host agents use the shared store at AGENT_MEMORY_STORE; then 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. All steps.

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

  1. Run the setup step described in the README so the host agents use the shared store at AGENT_MEMORY_STORE.
  2. Run mem recall "why files instead of a database" to see the ranked L0 list of matching memories.
  3. Run mem context "why files instead of a database" to get the top hits expanded in one call.
  4. 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.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for tigerless-labs/agent-memory and "Share one memory of decisions across Claude Code and Codex"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer