SuperAPI AI Directory

piia-engram

Cross-tool persistent memory MCP server. Stores preferences, standards, and lessons locally across Claude Code, Cursor, Codex, and any MCP client.

Open website

About this tool

Purpose

piia-engram is a local-first personal AI identity layer, designed to solve the problem of context resetting to zero when switching between different MCP-compatible coding tools or starting a new session. Its goal is not to save the task process, but to save "the person behind each task": your preferences, quality standards, lessons learned, key decisions, and project context. It is positioned as a user-owned layer above the tools, rather than an agent memory database.

Main Capabilities

  • Local storage: Identity and knowledge are stored in JSON/Markdown form under ~/.engram/, which users can open, edit, back up, and migrate themselves.
  • Cross-tool portability: Claude Code, Codex, Cursor, Windsurf, and other MCP-compatible tools can read the same approved identity and long-term knowledge.
  • Trust model: No cloud account; AI writes locally; high-risk entries (credentials, shell commands, MCP configuration, permission rules) await user review, while low/medium-risk writes are automatically absorbed but fully auditable and rollback-capable; setting ENGRAM_APPROVAL=strict can intercept every write. "Verified" means accepted by the user or by that policy, not rechecked against the current code.
  • Session continuity: Restore output can include earlier session records (checkpoints and snapshots), which are unreviewed and do not authorize any operation.
  • Stored content: Identity, quality standards, preferences, trust boundaries, project snapshots, lessons learned, key decisions, domain knowledge.
  • Proactive capabilities beyond storage: Cross-project knowledge inheritance (get_knowledge_inheritance), passive knowledge capture (extract_session_insights), export of a pasteable Markdown identity card for tools that do not support MCP (get_identity_card), automatic playbook extraction (generating a structured draft to the staging area at the end of a session), local tool registry (register_tool / find_tool), knowledge health and discovery (get_knowledge_overview, explore_knowledge, manage_relation), optional hybrid search (FTS5 full-text + semantic vector layer, for cross-language recall).

Usage

Installation: pip install piia-engram. The setup wizard detects the Python environment, selects Engram data folder (default ~/.engram), detects AI tools and lists the specific configuration files that will be changed, writes the MCP connection after one-click confirmation (backs up first; if declined, nothing is changed), guides you through filling in seed knowledge (role, tech stack, language), and optionally imports rules and memories from other AI tools (default no). A coding agent can be allowed to install it and review the plan before applying; use --clients cursor,codex to limit clients, and --lang zh|en to specify the output language (default en); without --apply it runs in plan mode and writes nothing. After applying, it configures the MCP connection by means of a backup, preserves existing tool modes, does not import memories, does not write identity/knowledge, and does not approve proposals. After configuration, the client must be restarted; exit code 1 means there are still manual steps.

Viewing the effect: Memory Lens (engram preview --html) can show what any AI caller will receive and what governance blocked; engram continuity outputs only metadata (number of saved sessions, contributing tools, recovery brief readiness, aggregated context load/wrap-up signals), and does not print memory bodies, raw telemetry events, session IDs, or local paths.

Use cases

Suitable for developers who switch between multiple AI coding tools, open a large number of AI sessions every week, or have lost preferences after a tool update; also suitable for investment analysts, system architects, backend developers, frontend and design personnel, and vibe coders who quickly build with AI, for preserving tacit knowledge such as reasoning chains, architecture decision records, API details, and design standards.

Limitations

Documented boundaries are in Trust model, Privacy, and Security. Hybrid search is off by default and requires pip install "piia-engram[vector]" and setting ENGRAM_SEARCH=hybrid. The local review window requires Python with Tk support and does not change MCP approval permissions. Replay experience mode requires setting "mode": "replay_experience" in the startup configuration; the root mode is immutable. The current materials do not provide specific fees, prices, or performance data.