SuperAPIAI Directory

zipmem-mcp

github.com · AI agents

Local long-term memory for terminal coding agents: blueprints, code anchors and distilled lessons in one JSON file, restoring project context across sessions.

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

About this tool

Purpose: Provides long-term semantic memory across sessions for terminal AI agents such as Claude Code, allowing the agent to continue the entire project history while keeping a smaller context window.

Main capabilities: Uses the Anchored Compacting mechanism, strips semantic noise, replaces large blocks of code with file coordinate anchors, and preserves architectural blueprints, schemas, and lessons learned as-is. Memory is stored in a single readable JSON file, .zipmem/state.json, containing blueprints, anchors, lessons, session_log, and meta. Merging is deterministic, and writes are atomic. Exceeding 100 KB triggers a prompt, and exceeding 500 KB automatically prunes low-value data.

Usage: Requires Node.js >= 18. Run zipmem init to create .zipmem/state.json, inject the Constitutional Directive into CLAUDE.md, add .zipmem/ to .gitignore, and record the checkpoint mode (default balanced, changeable with --checkpoint=conservative|aggressive). After that, the agent automatically loads memory at the start of a session and automatically compacts at the end or when approaching the context limit. The MCP server can also be configured manually. For multiple projects, run init in each project and register the server with user or project scope.

Applicable scenarios: Suitable for long-term, multi-session programming work, reloading compacted memory across sessions instead of re-deriving the project.

Limitations: Only one session can run at a time for the same project; concurrency overwrites session.json; within a single chat, zipmem is overhead rather than a savings; recovery depends on checkpoint discipline; SIGKILL or power loss cannot be intercepted, and no semantic compaction is performed on death; raw code or git diff is not written.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools