explaingit

patdolitse/engram

Analysis updated 2026-06-24

52PythonAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

Local MCP server that stores developer identity, preferences, and lessons in plain JSON and Markdown so AI coding tools can read shared personal context across sessions.

Mindmap

mindmap
  root((engram))
    Inputs
      Identity facts
      Lessons learned
      Session summaries
    Outputs
      MCP responses
      Identity card markdown
      Knowledge health score
    Use Cases
      Cross tool memory
      Code review standards
      Project context priming
    Tech Stack
      Python
      MCP
      JSON
      Markdown
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Keep one set of personal coding standards that Claude Code, Cursor, and Codex all read

USE CASE 2

Mine lessons and decisions from a pasted session summary into structured notes

USE CASE 3

Generate an identity card to paste into AI tools that do not support MCP

USE CASE 4

Audit stale knowledge entries and merge duplicate notes across projects

What is it built with?

PythonMCPJSONMarkdown

How does it compare?

patdolitse/engramvincelele/ai-fomo-skillskizuna-intelligence/irodori-tts-lite
Stars525253
LanguagePythonPythonPython
Setup difficultyeasyeasyhard
Complexity2/52/54/5
Audiencedeveloperpm founderresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Each MCP client needs its own config snippet pasted in and a restart before engram is active.

Apache 2.0 license, free to use and modify commercially with a patent grant and attribution.

In plain English

Engram is a small local program that stores facts about you, the developer, and serves them to AI coding tools through the Model Context Protocol, or MCP. MCP is an open standard that AI assistants like Claude Code, Codex, and Cursor use to read data from external sources. The pitch is that every time you start a new chat with an AI coding assistant, it forgets your communication preferences, your code review standards, your past mistakes, and the reasoning behind decisions you made months ago. Engram keeps that information in plain files on your machine so any MCP-compatible tool can read the same context. The data lives in a folder called ~/.engram/ as JSON and Markdown files that you can open, edit, back up, or migrate by hand. The categories the project tracks are identity, quality standards, preferences, trust boundaries, project snapshots, lessons learned, key decisions, and domain knowledge. The README is careful to distinguish this from agent memory tools like Mem0, Zep, or Letta, which store task-level session history. Engram is positioned as a layer above that: it stores who you are as a person, rather than what a particular agent did in a particular task. Beyond storage, the project exposes a handful of active functions over MCP. get_knowledge_inheritance pulls a starter pack of relevant lessons when you describe a new project. extract_session_insights takes a pasted session summary and mines lessons and decisions out of it automatically. get_identity_card emits a Markdown summary you can paste into AI tools that do not speak MCP, such as ChatGPT or Gemini. get_knowledge_overview surfaces stale entries and gives a health score, and find_similar_knowledge and link_knowledge help you merge duplicates and build links between related notes. Installation is a Python package called piia-engram, installable with pip, followed by a setup script and a small JSON snippet that you paste into your AI tool's MCP configuration. After restarting the client, a new session will automatically call get_user_context. There is an engram doctor command that can check Claude Code, Cursor, and Claude Desktop for stale MCP configs and auto-repair them. The license is Apache 2.0.

Copy-paste prompts

Prompt 1
Install engram and wire it into my Claude Code MCP config so a new session auto-loads my preferences
Prompt 2
Show me the JSON schema engram uses under ~/.engram and how to bulk import notes from an existing markdown folder
Prompt 3
Add a new MCP function to engram that returns only the lessons tagged with a specific language
Prompt 4
Run engram doctor and walk me through what it changed in my Cursor and Claude Desktop configs
Prompt 5
Compare engram to Mem0 and explain how I would use them together without overlap

Frequently asked questions

What is engram?

Local MCP server that stores developer identity, preferences, and lessons in plain JSON and Markdown so AI coding tools can read shared personal context across sessions.

What language is engram written in?

Mainly Python. The stack also includes Python, MCP, JSON.

What license does engram use?

Apache 2.0 license, free to use and modify commercially with a patent grant and attribution.

How hard is engram to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is engram for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.