engram

engram is a skill for Claude Code, Codex from techtheist/engram. It costs 78 tokens per session (2,948 once invoked), scanned A, a copy of engram, MIT.

A project memory system that stores durable decisions, reasons, cautions, problems, and insights in a local graph. It supplements normal project files and keeps only high-value knowledge that should remain useful later.

In plain words
What is it for?
Recalling relevant project context before substantial work, recording important decisions and lessons, tracking why things are configured a certain way, and closing knowledge gaps.
Why use it?
It prevents teams and agents from repeatedly rediscovering settled decisions or known pitfalls. Careful capture keeps the shared memory trustworthy and avoids copying ordinary code details.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions subagents; positional $N argument.

Good fit Recalling relevant project context before substantial work, recording important decisions and lessons, tracking why things are configured a certain way, and closing knowledge gaps.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/techtheist/engram/relaxed/github.svg)](https://agentmods.dev/skills/techtheist/engram/relaxed)
Your own site
<a href="https://agentmods.dev/skills/techtheist/engram/relaxed"><img src="https://agentmods.dev/badge/skills/techtheist/engram/relaxed/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/techtheist/engram/relaxed"><img src="https://agentmods.dev/badge/skills/techtheist/engram/relaxed.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,948 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 100% copy Near-identical to another mod 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.00078 $0.02948
Opus 5.5 $0.00031 $0.01179
Sonnet 5.5 $0.00016 $0.00590
Haiku 4.5 $0.00008 $0.00295

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

Security

Grade A, and why

engram 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 29d 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.

Origin

This is a copy

100% identical to engram — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/engram/relaxed/SKILL.md · 95 lines

How it starts

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

Engram — project memory (Relaxed)

Engram is a local, user-owned graph of why this project is the way it is: decisions and their reasons, gotchas, problems and their fixes, conventions. Not code structure — the code holds that. The user sees every node in the pane, so quality and honest edges matter more than volume: a noisy graph stops being trusted, and an untrusted graph stops being read.

Relaxed: capture only durable, high-value, non-obvious knowledge. When in doubt, fewer and better nodes. Don't mirror Claude Code's own memory (CLAUDE.md, auto-memory): Engram holds project reasoning, not user preferences, workflow or code structure.

Recall

  • Session start: read the brief. If the session opened with an injected "# Engram brief", that IS it; otherwise call brief once. Its first line names the graph — if that is not this workspace, call brief(project: "<workspace absolute path>").
  • Before any non-trivial decision, search. Read the confidence verdict (strong act / weak verify first / none say the graph is silent) and each hit's standing (contested and tombstone are said out loud; superseded → read the replacement). If a Decision or Caution covers what you're about to do, follow it or raise the contradiction with the user before acting.
  • On weak/none, reformulate before concluding absence: name the thing (entity-first), use the words a note would use, or scope in time (after: "last week", during_version). Pass time expressions as written; the daemon resolves them.
  • Start detail: "compact" when scanning; full only for hits you'll act on. get_node / traverse pull the reasoning around a hit; timeline walks a supersession chain; audit shows who changed what; list_open is the worklist; list_nodes is the lossless read for reviews and exports.
  • "Why is it like this?" → search, follow because/answers edges and timeline, retell as a short dated narrative.
  • Session history (if the user turned recording on): a weak verdict may carry a history section — leads, not knowledge. expand_history(session, turn) before relying on one; capture what matters as a proper note. list_sessions answers "what was I doing last Tuesday".

Read the full file on GitHub · 95 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. 29d ago Changed · +1 lines e1b4b3a8fb5e
  2. 1mo ago Changed · +13 lines b66561430aec
  3. 1mo ago Changed · -122 lines 8036c4599b62
  4. 2mo ago Changed e529ca219f80
  5. 2mo ago Changed · +1 lines 2dab174f8778
  6. 2mo ago Changed · +4 lines fcd29d947eba
  7. 2mo ago Changed · +1 lines eed337f7da12
  8. 3mo ago First seen · 197 lines · 78 tokens per session scan A e711f0d529fa

Subscribe to this mod's changes

engram is a skill published in the GitHub repository techtheist/engram (37 stars, last pushed 13d ago), licensed MIT. It adds 78 tokens to every session and 2,948 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to engram, differing in 0 lines, and is treated as a copy.

Related

engram compared with skills from other repositories

engram next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
engramtechtheist/engramSkill3713d agoMITA78Claude Code, Codex
memory-protocolvbcherepanov/total-agent-memorySkill782d agoMITA120Claude Code
memoryvbcherepanov/total-agent-memorySkill782d agoMITA65Claude Code, Codex
session-recapsxhmilyoyo/sundayhao-pluginsSkill87d agoApache-2.0A39Claude Code
garden-tendinglinxule/memex-pluginSkill76d agoMITA131Claude Code
knowledge-bank-lookupsxhmilyoyo/sundayhao-pluginsSkill87d agoApache-2.0A94Claude Code
curator-practicelinxule/memex-pluginSkill76d agoMITA153Claude Code