engram-memory

engram-memory is a skill for Claude Code, Codex from jnMetaCode/skillet. It costs 45 tokens per session (721 once invoked), scanned A, original, MIT.

A local memory layer for an agent that recalls earlier decisions, preferences, and facts and saves new durable information between sessions.

In plain words
What is it for?
Use it when continuing a project after a break, checking why a choice was made, remembering user preferences, or saving facts and decisions that should last beyond the current conversation.
Why use it?
It reduces the need to repeat important context and helps keep later work consistent with earlier decisions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when continuing a project after a break, checking why a…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jnmetacode/skillet/engram-memory
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 jnMetaCode/skillet --skill engram-memory
Clone the repo
git clone --depth 1 https://github.com/jnMetaCode/skillet

Made for: Claude Code, Codex.

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/jnmetacode/skillet/engram-memory.svg)](https://agentmods.dev/skills/jnmetacode/skillet/engram-memory)
Your own site
<a href="https://agentmods.dev/skills/jnmetacode/skillet/engram-memory"><img src="https://agentmods.dev/badge/skills/jnmetacode/skillet/engram-memory.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 721 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.
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.00045 $0.00721
Opus 5 $0.00023 $0.00360
Sonnet 5 $0.00009 $0.00144
Haiku 4.5 $0.00005 $0.00072

Measured 6d ago against content hash 401b4f1a9003, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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.

skills/engram-memory/SKILL.md · 79 lines

How it starts

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

engram-memory

You have access to a local, private memory layer (engram). Treat it as your long-term memory: read it before you answer, write to it when something durable happens. Everything stays on the user's machine.

Setup (once)

If the engram_recall / engram_remember MCP tools are available, use those. Otherwise use the CLI (zero install):

npx @jnmetacode/engram serve &          # HTTP API on :7077, or
npx @jnmetacode/engram mcp              # as an MCP server

When to RECALL

Before answering anything that may depend on prior context, search memory first:

  • "What did we decide about X?" / "Why did we choose Y?"
  • Resuming work after a gap ("where were we?")
  • Anything referencing a person, project, deadline, or preference you don't see in the current conversation.
npx @jnmetacode/engram recall "pricing decision" --since month

Quote the recalled passage with its citation (file/date) rather than paraphrasing from your own context — the citation is the point.

When to REMEMBER

Persist a memory when the conversation produces something with a shelf life:

  • A decision and its why ("we picked Postgres over SQLite because …")
  • A user preference ("always use pnpm", "no AI attribution in commits")
  • A fact that took effort to establish (a root cause, a benchmark number)
npx @jnmetacode/engram remember "2026-06-10: chose scoped npm names (@org/pkg) because unscoped were taken"

Rules for good memories:

  1. One fact per memory. Atomic entries rank and recall better.
  2. Date it. Lead with an absolute date — engram's ranking is time-aware.
  3. Include the why, not just the what; the why is what future-you needs.
  4. Don't store what the repo already records (code, git history, docs).

REINFORCE what proved right (self-improving recall)

When a recalled memory turned out to be the correct answer — the fix worked, the user confirmed — say so, and similar future queries will rank that source higher:

Read the full file on GitHub · 79 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. 6d ago First seen · 79 lines · 45 tokens per session scan A 401b4f1a9003

Subscribe to this mod's changes

engram-memory is a skill published in the GitHub repository jnMetaCode/skillet (1 stars, last pushed 2mo ago), licensed MIT. It adds 45 tokens to every session and 721 once invoked, about $0.0002 per session on Opus 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-31.