SuperAPIAI Directory

projectmem

github.com · AI agents

Local-first memory for coding agents: records issues, failed attempts, fixes and decisions, re-injects them and warns at git commit before a repeated mistake.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

projectmem is an open-source memory tool for coding agents, positioned as a "local-first memory + judgment layer" for AI programming agents. The core problem it solves is this: every new AI session starts from scratch, the model forgets yesterday's decisions, repeats failed debugging attempts, and consumes a large number of tokens rebuilding context from source code. projectmem does not try to make AI smarter, but to make it more experienced.

Main Capabilities

  • Record typed events: Record issues, attempts, fixes, decisions, and notes, stored in the .projectmem/ directory within the repository.
  • MCP server: The native MCP server exposes 17 tools to Claude Code, Claude Desktop, Cursor, Antigravity, and Codex, allowing agents to read memory and record work on their own.
  • Pre-commit warnings: Before a git commit, if it detects that an approach that has already failed in the project is about to be repeated, it issues a warning.
  • Git hooks: pjm init installs three git hooks (pre-commit warning, post-commit classification, post-merge tracking), and automatically starts a real-time file watcher.
  • Dashboard: pjm visualize and pjm dashboard can generate visual pages showing every case the project has solved, failed paths, and tokens saved.
  • Global view: Since 0.2.0, a cross-project global dashboard is supported, aggregating .projectmem/ data from each repository, but the data does not leave its respective folder.
  • Structure mapping: pjm map --build traverses the codebase, parses import relationships for Python, generates a dependency graph, and overlays failure heat onto the real import graph.
  • plan.md: An editable intent file that records ideas and plans, distinguished from events.jsonl, which records events that have already occurred.

How to Use

  1. Install or update projectmem.
  2. Run pjm init to initialize in the project, creating the .projectmem/ directory, installing git hooks, and starting the file watcher.
  3. Configure the MCP clientto point to the projectmem server. Since 0.3.0, one MCP server can serve all registered projects, without needing --root or cwd.
  4. Use pjm doctor to check the configuration, and use pjm visualize or pjm dashboard to view memory.
  5. The canonical command is projectmem, and the pjm alias is also installed.

Applicable Scenarios

  • Developers using Claude Code, Cursor, Antigravity, or Codex for long-term project development.
  • Teams or individuals who want to reduce repeated debugging, lower token consumption, and maintain context between AI sessions.
  • Privacy-sensitive scenarios that require local storage, no cloud dependency, and no telemetry.

Limitations

  • Memory is stored in the local .projectmem/ directory, with no cloud synchronization provided.
  • Import parsing in structure mapping currently explicitly supports only Python.
  • pjm init must be run manually to initialize each project.
  • Some features (such as update checks) are disabled by default and must be actively enabled by the user.
  • Specific pricing, costs, and platform support details are not yet provided.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools