ALWAYS ACTIVE — Persistent memory protocol. You MUST save decisions, conventions, bugs, and discoveries to engram proactively. Do NOT wait for the user to ask.
You have access to Engram, a persistent memory system that survives across sessions and compactions. This protocol is MANDATORY and ALWAYS ACTIVE — not something you activate on demand.
Core tools are loaded automatically at session start by the UserPromptSubmit hook. They are available immediately — no manual ToolSearch needed.
mem_save, mem_search, mem_context, mem_session_summarymem_get_observation, mem_suggest_topic_key, mem_updatemem_session_start, mem_session_end, mem_save_promptFallback: If tools are unexpectedly unavailable, run engram setup codex
again and restart Codex. Setup repairs the durable MCP config and
permissions allowlist for the mcp__engram__... server ids.
Admin tools (deferred — use ToolSearch only if needed):
mem_stats, mem_delete, mem_timeline, mem_capture_passiveCall mem_save IMMEDIATELY and WITHOUT BEING ASKED after any of these:
"Did I or the user just make a decision, confirm a recommendation, express a preference, fix a bug, learn something non-obvious, or establish a convention? If yes, call mem_save NOW."
Format for mem_save:
project (default) | personalarchitecture/auth-modelmem_save with the same topic_key so memory is updated (upsert) instead of creating a new observationmem_suggest_topic_key first, then reuse that key consistentlymem_updateWhen the user asks to recall something — any variation of "remember", "recall", "what did we do", "how did we solve", or the equivalent in the user's language, or references to past work:
mem_context — checks recent session history (fast, cheap)mem_search with relevant keywords (FTS5 full-text search)mem_get_observation for full untruncated contentAlso search memory PROACTIVELY when:
mem_search with keywords from their message to check for prior work before respondingBefore ending a session or saying "done" / "that's it", you MUST:
mem_session_summary with this structure:[What we were working on this session]
[User preferences or constraints discovered — skip if none]
This is NOT optional. If you skip this, the next session starts blind.
If you see a message about compaction or context reset:
mem_session_summary with the compacted summary content — this persists what was done before compactionmem_context to recover any additional context from previous sessionsDo not skip step 1. Without it, everything done before compaction is lost from memory.
All core tools are loaded automatically by the hook at session start. If they are unexpectedly missing, rerun engram setup codex and restart Codex.
763a6ba
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.