by riponcm
Open-source coding agents memory. Records issues, attempts, fixes and decisions, then warns your agent before it repeats an approach that already failed. Native MCP server for Claude Code, Cursor, Antigravity and Codex. 100% local, no cloud, no telemetry. MIT.
# Add to your Claude Code skills
git clone https://github.com/riponcm/projectmemLast scanned: 11/29/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-11-29T13:33:40.259Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}projectmem is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by riponcm. Open-source coding agents memory. Records issues, attempts, fixes and decisions, then warns your agent before it repeats an approach that already failed. Native MCP server for Claude Code, Cursor, Antigravity and Codex. 100% local, no cloud, no telemetry. MIT. It has 885 GitHub stars.
Yes. projectmem passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/riponcm/projectmem" and add it to your Claude Code skills directory (see the Installation section above).
projectmem is primarily written in Python. It is open-source under riponcm on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh projectmem against similar tools.
No comments yet. Be the first to share your thoughts!
projectmem is a local-first memory and judgment layer for AI coding agents. It records a project's issues, fix attempts (failed, partial and worked), fixes and decisions as plain files inside the repository. At the start of each session it gives Claude Code, Codex, Cursor, Antigravity or Claude Desktop a short summary of what the project already learned. Before the agent edits or commits a file, it warns when an approach on that file has already failed.
.projectmem/ in your repo. No cloud, no
account, no API key, no telemetry.pjm init --agent <client>.https://github.com/user-attachments/assets/e055988e-7253-4ba9-92fc-95d3d4bcd763
Every new session starts from zero. The agent forgets yesterday's decisions, retries debugging approaches that already failed, and spends thousands of tokens re-reading source files to rebuild context it had the day before.
Telling the agent to check its notes first is not enough. On one real project,
agents looked up a file's history before only 11% of 8,355 edits, even though
their instructions asked for it every time
(measurements in #37). So
projectmem brings the lessons to the agent: right before an edit, and again at
git commit.
Git records what changed. projectmem records why: what was tried, what failed, and what was decided.
pipx install projectmem # or: pip install projectmem
cd your-project
pjm init --agent claude-code # or: codex, cursor, antigravity, claude-desktop
pjm init creates .projectmem/ and installs three git hooks. --agent adds
the projectmem MCP server to that client's config, once for every project, and
for Claude Code and Codex also the edit hook that shows a file's lessons before
each edit. Your other MCP servers and settings are left as they are.
Start a new session, or fully quit and reopen a desktop app: MCP servers only
load on start. Your agent then loads the project's memory itself. In each new
repository after that, pjm init is all it takes.
Rather let your AI do it? Paste this into Claude Code, Codex or Cursor:
Set up projectmem for this project: install it with `pipx install projectmem`
(or `pip install projectmem`), then run `pjm init --agent <client>` here with
the client you are running in: claude-code, codex, cursor, antigravity or
claude-desktop. Show me the output, then tell me to start a new session.
This works from any earlier version. Your existing MCP setup keeps working: since 0.3.0 one MCP server serves every project.
pip install -U projectmem # or: pipx upgrade projectmem
pjm doctor --fix
pjm init # run once in each project; your memory is kept
This refreshes the project's agent instructions and hooks.
pjm init --agent cursor # or: claude-code, codex, antigravity, claude-desktop
The clients you already set up are not touched. On Claude Code and Codex this also installs the edit hook that shows a file's lessons before every edit, so run it once there if you set projectmem up before 0.3.6. A client that is already connected stays as it is, unless its entry points to an old install, which is updated.
pjm doctorpjm doctor looks where code usually lives (~/Developer, ~/code,
~/projects, cloud folders, and every drive on Windows) and reports:
pjm doctor --fix registers them; pjm project register <path>
adds one it missed.--root, cwd or
PROJECTMEM_ROOT, the most common reason a new project is invisible to your
agent. A pin may be deliberate, so remove it by hand.pjm doctor --online also checks PyPI for a newer release;
projectmem makes no network calls otherwise.pjm init
without --agent; it prints the config with your Python path filled in. See
Connect a client by hand.pjm import <export.json> --from agentmemory (or --from mem0) brings your
decisions, lessons and past failures over. See
Import from another memory tool.**Right before it edits a f