← Back to Leaderboard
Priponcm

riponcm/projectmem

Local MCP memory that warns coding agents before they repeat failed fixes

Engineering Health (Methodology)
A+ · 88/100
Maintenance Activity
● Updated 6d ago
Latest Release
v0.3.7
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption13/25
Release Cadence20/20
License Clarity20/20
Self-HostedLocal AIMCPCLI
Total Stars
★ 886
24h Growth
+0
7d Growth
+4
Forks
54

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

riponcm/projectmem Star History (2026-05-16 - 2026-12-03) ALL-TIME STAR HISTORY (2026-05 – 2026-12) +885 in 201d · avg +4/day 936 468 0 2026-05-16: ★ 12026-05-30: ★ 32026-06-13: ★ 112026-06-27: ★ 862026-07-11: ★ 1402026-07-25: ★ 1812026-08-08: ★ 4692026-08-22: ★ 6992026-09-05: ★ 7602026-09-19: ★ 7992026-10-03: ★ 8282026-10-17: ★ 8452026-10-31: ★ 8562026-11-13: ★ 8672026-11-26: ★ 8822026-12-03: ★ 886 ★ 886 2026-05 2026-08 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Event model: .projectmem/events.jsonl is append-only; writes rebuild the summary and issue files.
MCP integration: 19 tools cover logging, session startup, issue lookup, and file-level prechecks.
Edit-time delivery: Claude Code and Codex hooks surface lessons once per file per session; files without lessons stay quiet.
Git checks: Pre-commit surfaces past failures, high churn, and potentially stale memories; superseding a decision preserves its history.
Sharing boundary: Git shares distilled files by default, not the raw log; stack-scoped lessons live under ~/.projectmem/global/.
Migration: pjm import previews supported agentmemory or mem0 records; applying an import preserves dates and deduplicates repeat imports.
Best For

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.

Skip If

You primarily need full conversation capture, centralized memory independent of Git, or automatic edit-time warnings in a client without the supported hook.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedLocal AIMCPCLI
pip install -U projectmem        # or: pipx upgrade projectmem

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
projectmem ★886+4PythonMITLocal MCP memory that warns coding agents before they repeat failed fixes
graphify156.8k+2.4kPythonApache-2.0Local AST graphs for dependency tracing, with CLI and MCP access.
i-have-adhd64.1k+1.3kPythonMITA coding-agent skill that puts the next action first
agents43.2k+212PythonMITOne 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.

Raw .md ↗
curl -sL https://repoforai.com/repo/riponcm/projectmem.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

riponcm/projectmem Star History on RepoForAI

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?

Run 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?

projectmem itself requires Python 3.10+, not a model runtime, GPU, or LLM API key. Budget local disk and CPU for the event log, rebuilding derived files, and git checks; exact resource measurements are not available. The coding agent is a separate runtime, and loading project memory still consumes its context window.

Can a commercial team self-host it, and what should it review before rollout?

Yes. The MIT license permits commercial use and modification; retain the copyright and license notices when redistributing copies or substantial portions. The MCP process runs locally, but that does not make the coding client local. Check both what your client sends to its model provider and which .projectmem/ files your team commits.

When is projectmem a better fit than claude-mem, agentmemory, or mem0?

Choose projectmem when you need structured outcomes and warnings tied to files. Choose claude-mem when session capture matters more, or agentmemory or mem0 when you need broader memory retrieval. 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.

Maintaining riponcm/projectmem? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature riponcm/projectmem on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare