Who it is forA developer or team lead whose repository is edited by several AI coding agents and who wants every agent to see the same project lessons.
The problemEach agent starts each session without the lessons the team learned the hard way, so the same mistakes get repeated across tools.
The outcomeThe repository holds a .ownmem/ directory of Markdown memories, and each named host gets a recall hook or instructions that read from it.
What you need first
- Node.js 20.6 or newer
- A Git repository that should own the project memory
- At least one supported AI coding agent: Claude Code, Codex, Cursor, Gemini CLI, or Grok CLI
Steps
- Run
npm install --save-dev ownmeminside the repository. - Run
npx ownmem init --hook --hosts claude,codexand read the one-time steps it prints. - Reopen each agent, and complete the trust steps that Codex or Grok need if you use them.
- Commit the new .ownmem/ directory and the host adapter files with the code.
Prompt for your agent
In the repository grpcer/ownmem, install OwnMem into <target-repo> with the commands in its Quick start, using --hosts for the agents the team uses. Expected output: a .ownmem/ directory and host adapters created, with any one-time host steps listed. Verify that `npx ownmem recall -- "<a known project topic>"` returns a result or an abstention.
Caveat. Codex hooks need three one-time trust steps that OwnMem prints, and Cursor and Gemini CLI need a manual step to register the MCP server.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for grpcer/ownmem and "Share one project memory across coding agents"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer