engram-memory

engram-memory is a skill for Claude Code from Gentleman-Programming/engram. It costs 31 tokens per session (1,286 once invoked), scanned A, original, MIT.

Instructions for a persistent memory system that saves important decisions, conventions, bugs, and discoveries between coding sessions.

In plain words
What is it for?
For saving and retrieving development context, starting or ending memory sessions, and recording decisions or issues for later work.
Why use it?
It prevents useful project context from being lost when a session ends or the conversation is shortened.

Skill for Claude Code

Written for Claude Code: SessionEnd hook event. Also seen: mentions subagents; mentions Claude Code.

Part of the engram plugin — 1 skill, 6 hooks shipped together

Good fit For saving and retrieving development context, starting or ending memory sessions, and recording decisions or issues for later work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gentleman-programming/engram/memory
About the project

Engram is a local or cloud-backed memory system for AI coding agents, provided as a single Go binary with SQLite full-text search and interfaces including a command line, HTTP API, MCP server, and terminal UI. It helps compatible coding agents retain project decisions, bugs, conventions, and other useful context across sessions. The catalogue add-ons configure and operate Engram’s memory workflows.

Gentleman-Programming/engram · 7,815 stars · on GitHub · engram.gentlemanprogramming.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Gentleman-Programming/engram --skill memory
Clone the repo
git clone --depth 1 https://github.com/Gentleman-Programming/engram

Made for: Claude Code.

Or install engram, the plugin that ships this one along with the rest of its 1 skill, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for engram-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/gentleman-programming/engram/memory/github.svg)](https://agentmods.dev/skills/gentleman-programming/engram/memory)
Your own site
<a href="https://agentmods.dev/skills/gentleman-programming/engram/memory"><img src="https://agentmods.dev/badge/skills/gentleman-programming/engram/memory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for engram-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/gentleman-programming/engram/memory"><img src="https://agentmods.dev/badge/skills/gentleman-programming/engram/memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,286 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.01286
Opus 5.5 $0.00012 $0.00514
Sonnet 5.5 $0.00006 $0.00257
Haiku 4.5 $0.00003 $0.00129

Measured 12d ago against content hash 3a778297c5ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

engram-memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/claude-code/skills/memory/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Engram Persistent Memory — Protocol

You have access to Engram, a persistent memory system that survives across sessions and compactions. The agent MUST follow this protocol without waiting for activation.

AVAILABLE TOOLS

Use the Engram tools actually exposed by Claude Code, with their registered MCP names. The names below are logical names; availability and discovery follow Claude's host interface, not a universal bootstrap or deferred-tool split.

  • mem_save, mem_search, mem_context, mem_session_summary

  • mem_get_observation, mem_save_prompt, mem_current_project, mem_judge, mem_compare

  • mem_update, mem_review, mem_pin, mem_unpin, mem_suggest_topic_key

  • mem_session_start, mem_session_end, mem_doctor, mem_capture_passive

SELECTIVE MEMORY

Persist verified knowledge that is durable and costly to reconstruct: decisions with rationale, non-obvious root causes, real constraints, and resumption-relevant pending work. Group related conclusions deliberately, not every task, response, or event. Exclude secrets, private data, speculation, raw dumps, and routine progress.

Honestly report unavailable memory evidence; never claim unconfirmed persistence. Do not blindly repeat writes. Complete unrelated work even if bookkeeping fails. Do not add per-event learning sections or ceremonial delivery blocks.

Format for mem_save:

  • title: Verb + what — short, searchable (e.g. "Fixed N+1 query in UserList", "Chose Zustand over Redux")
  • type: bugfix | decision | architecture | discovery | pattern | config | preference
  • scope: project (default) | personal | global
  • topic_key (optional but recommended for evolving topics): stable key like architecture/auth-model
  • content: What: One sentence — what was done Why: What motivated it (user request, bug, performance, etc.) Where: Files or paths affected Learned: Gotchas, edge cases, things that surprised you (omit if none)

Topic update rules (REQUIRED)

Read the full file on GitHub · 107 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · -48 lines · -6 tokens per session 3a778297c5ac
  2. 25d ago Changed · +21 lines 4ee3c2385384
  3. 1mo ago Changed · +4 lines e18bd65be4de
  4. 2mo ago Changed · +4 lines b01f37af82b2
  5. 2mo ago Changed · +1 lines 3251cd230f2d
  6. 2mo ago Changed 14e806622743
  7. 2mo ago First seen · 125 lines · 37 tokens per session scan A f36ae097a957

Subscribe to this mod's changes

engram-memory is a skill published in the GitHub repository Gentleman-Programming/engram (7,815 stars, last pushed yesterday), licensed MIT. It adds 31 tokens to every session and 1,286 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

engram-memory compared with skills from other repositories

engram-memory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
engram-memoryGentleman-Programming/engramSkill7.8kyesterdayMITA31Claude Code
knowledge-ingestopenclaw/openclawSkill394kyesterdayMITA80Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill71k2d agoCC0-1.0A74Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill20kyesterdayMITA184Claude Code
memoryopensquilla/opensquillaSkill7.1k6d agoApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex