# Repository Briefing: riponcm/projectmem
> Source: https://repoforai.com/repo/riponcm/projectmem (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/riponcm/projectmem
- **Official Docs / Website**: https://www.projectmem.dev
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A+ (88/100 · Maintenance 35/35 · Adoption 13/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.3.7 (2026-11-28) — https://github.com/riponcm/projectmem/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Self-Hosted, Local AI, MCP, CLI
- **Momentum**: 886 ★ total (+0 24h / +4 7d) · 54 forks
- **Topics**: `agent-memory`, `agentic-ai`, `agenticmemory`, `ai-agents`, `ai-memory`, `ai-tools`, `claude-code`, `coding-agents-memory`, `coding-assistant`, `coding-memory`, `developer-tools`, `graphify`
- **When to Use**: 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.

## Overview
```text
### 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.
```

## Key Capabilities
```text
- 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.
```

## Quick Start / Clone
```bash
pip install -U projectmem        # or: pipx upgrade projectmem
```
