riponcm/projectmem
Local MCP memory that warns coding agents before they repeat failed fixes
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
projectmem is a Python 3.10+ CLI and local MCP server packaged with Hatchling (>=1.18,<1.27 for builds). One server configuration per client serves registered repositories. The MCP tools, pjm CLI, and Git hooks feed typed issue, hypothesis, attempt, fix, decision, and note events into an append-only .projectmem/events.jsonl file. The system redacts secrets before writing records.
Each write rebuilds summary.md and the issue files. Agents work from the distilled files, including PROJECT_MAP.md, rather than loading the raw log. start_session() returns the instructions, summary, and current plan; get_issue(issue_id) and precheck_file(file_path) support narrower follow-up reads. The editable plan.md stores intent separately from what actually happened and does not become an event.
Key Capabilities & Differentiators
The distinctive capability is to bring past outcomes into the next edit. Attempts distinguish failed, partial, and worked outcomes. Claude Code and Codex hooks surface a file's open issues, earlier attempts, and decisions just before editing; other clients can call precheck_file(file_path). The pre-commit hook can also warn about high churn and memories that may be stale relative to Git history. --supersedes retires an old decision without deleting it.
On v0.3.5, nine projects containing 9–238 events used roughly 3,700–7,600 session-start tokens for either MCP or Markdown access, measured with cl100k_base. About 3,300 tokens came from AI_INSTRUCTIONS.md alone; the no-projectmem baseline and pjm wrap figures were estimates, not measured speedups. pjm visualize provides a local project dashboard, while pjm dashboard aggregates projects at read time.
Trade-offs & Limitations
The file-scoped event model is narrower than conversation capture in claude-mem or general-purpose memory retrieval in agentmemory and mem0. That narrower scope makes warnings specific and auditable, but their value depends on agents or developers recording meaningful outcomes and linking them to the right files. A stale-memory flag is a prompt to review, not proof that a decision is wrong. Only Claude Code and Codex get automatic edit-time reminders; other MCP clients must call precheck, and Markdown export provides context without an edit hook.
By default, teammates inherit the distilled files through Git, while the raw log is ignored. That makes sharing straightforward but puts recorded decisions and issue details into repository history if committed. Review those files before sharing; local storage and write-time redaction do not replace that review. The MIT license permits commercial adoption. There is no separate memory database or model runtime to size, but derived-file rebuilds, Git checks, and agent context still carry costs.
Hardware & Deployment Guide
Use Python 3.10+ on macOS, Linux, or Windows. Install with pipx install projectmem or pip install projectmem, then run pjm init --agent <client> in a Git repository. Supported client identifiers are claude-code, codex, cursor, antigravity, and claude-desktop. Initialization creates .projectmem/ and installs three Git hooks. Start a new client session, or fully restart a desktop client, to load the locally launched MCP process. No account or LLM API key is required; pjm doctor --online opts into a PyPI update check.
v0.3.5 improved path matching for prechecks and kept summaries smaller when entries were long. v0.3.6 added edit hooks for Claude Code and Codex and separated issue tracking across parallel sessions. v0.3.7 added client setup via pjm init --agent and imports from agentmemory and mem0. On upgrades, pjm init refreshes project instructions and hooks without discarding memory. Use pjm doctor to inspect repository registration or a client configuration pinned to one project.
.projectmem/events.jsonl is append-only; writes rebuild the summary and issue files.~/.projectmem/global/.pjm import previews supported agentmemory or mem0 records; applying an import preserves dates and deduplicates repeat imports.Developers and teams working across repeated coding-agent sessions in Git repos, where recording file-linked outcomes can prevent repeat debugging work. Claude Code and Codex get the most direct benefit from edit hooks.
You primarily need full conversation capture, centralized memory independent of Git, or automatic edit-time warnings in a client without the supported hook.
Quick Start & Installation
pip install -U projectmem # or: pipx upgrade projectmem
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| projectmem ★ | 886 | +4 | Python | MIT | Local MCP memory that warns coding agents before they repeat failed fixes |
| graphify | 156.8k | +2.4k | Python | Apache-2.0 | Local AST graphs for dependency tracing, with CLI and MCP access. |
| i-have-adhd | 64.1k | +1.3k | Python | MIT | A coding-agent skill that puts the next action first |
| agents | 43.2k | +212 | Python | MIT | One Markdown plugin catalog adapted to seven AI coding tools |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/riponcm/projectmem.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about projectmem
How does one MCP server serve multiple repositories?
pjm init --agent <client> in the first repository and restart the client. That registers the MCP server once for the client; run plain pjm init in each additional repository. If a repository is invisible, use pjm doctor to check registration and look for a client config pinned by --root, cwd, or PROJECTMEM_ROOT. A pin may be intentional, so review it before removing it.Does it need a GPU, and where does the runtime overhead come from?
Can a commercial team self-host it, and what should it review before rollout?
.projectmem/ files your team commits.When is projectmem a better fit than claude-mem, agentmemory, or mem0?
pjm import previews migration from agentmemory or mem0 before --apply writes anything. It is not a full-fidelity migration: mem0 facts become notes, and raw activity is dropped.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy