EngrAIm
Self-improving, temporal workspace memory for Claude Code. A marketplace plugin that
turns any project directory into a workspace with persistent memory: it captures your Claude
Code sessions, distills them into a [[wikilinked]] knowledge base plus a bitemporal fact
store, recalls them later, learns how you want it to behave, and lets the workspace grow its
own skills — so you stop re-explaining your environment every session.
Name: EngrAIm = engram (a memory trace) + AI; also "ingrain" — knowledge worked in
deeply over time. Identifiers use lowercase engraim.
Design principles
- Markdown is canonical, SQLite is a derived index. Knowledge lives in plain markdown
(
.engraim/wiki/, frame files) — diffable, git-friendly, openable in any editor (or
Obsidian; not required). The SQLite DB is a rebuildable index.
- Prescribed vs generated, strictly separated. This plugin ships only the mechanism —
skills, hooks, the memory server, schema. It contains no domain knowledge. Everything
about your project (facts, wiki pages, calibration, project-specific skills) is
generated into that project's own
.engraim/ and .claude/skills/. Plugin updates
replace the mechanism and never touch your workspace data.
- Pure Node, zero required dependencies. Storage uses built-in
node:sqlite (FTS5); the
MCP server speaks JSON-RPC over stdio by hand (no SDK). Nothing to pip/npm install. No
daemon, no cloud. Semantic recall is an optional add-on (see below).
Requirements
- Node ≥ 24 (for built-in
node:sqlite with FTS5 compiled in). node --version. Nothing else required.
Install
/plugin marketplace add redth/engrAIm
/plugin install engraim@engraim
That's the whole install. Installing does not activate memory anywhere — EngrAIm is
opt-in per project. In a project you want memory in, run /engraim:init (or
/engraim:onboard to also scan + seed the frame); that creates .engraim/ and turns it on.
Every other project stays completely untouched — no .engraim/, no injected context, no
nudges — until you opt it in too.
How it works
- Capture. A Stop hook stages each session's transcript;
/engraim:curate (or
/engraim:backfill for history) distills it into facts + wiki pages — never raw dumps.
- Recall.
recall searches the wiki + facts (keyword by default; hybrid keyword+vector
if semantic is enabled). The SessionStart hook injects a frame snapshot + active rules.
- Stay true over time. Re-stating a known fact corroborates it (confidence rises);
changes go through
supersede (history is kept); whats_true(entity, as_of) time-travels.
- Self-improve. Corrections become calibration overrides (
/engraim:calibrate) that
expire unless reaffirmed and can graduate to permanent rules in frame/SOUL.md; a guarded
retrospective (/engraim:retro) consolidates and prunes.
- Proactive upkeep — you never have to remember the verbs. Three hooks watch for the
right moment and ask: a UserPromptSubmit hook spots durable, project-wide feedback
("from now on…", "always remember…") and nudges toward
/engraim:calibrate, plus a
throttled in-session reminder of pending upkeep; a PostToolUse hook chains the natural
next step after a milestone action (calibrate → curate/promote, draft-skill →
promote-skill, onboard → backfill); and SessionStart surfaces a /engraim:retro pass
once its inputs (expiring overrides, promotion candidates, staged sessions) accumulate.
- Grow skills. Recurring procedures become workspace skills via a gated ladder
(
/engraim:draft-skill → review → /engraim:promote-skill into .claude/skills/).
- Notice gaps.
/engraim:lint scans the wiki for dangling links / stubs / orphans and
writes a research agenda.
Components
.claude-plugin/marketplace.json ← the marketplace catalog
plugins/engraim/
.claude-plugin/plugin.json ← plugin manifest
.mcp.json ← registers the engraim-memory MCP server (node)
hooks/ session_start · user_prompt · tool_followup (PostToolUse) ·
session_capture (Stop) · pre_compact
commands/ init · status · onboard · curate · backfill · calibrate · retro ·
skills · draft-skill · promote-skill · lint · enable-semantic
skills/ engraim-memory · -research · -curate · -calibrate · -retro ·
-skillsmith · -onboard
server/ store.mjs · cli.mjs · engraim_server.mjs · semantic.mjs
schema/ VERSION + migrations
templates/workspace/ the .engraim/ skeleton copied into each project
scripts/selftest.mjs ← `node scripts/selftest.mjs` verifies a fresh clone