Dev & Engineering

Engram Persistent Memory Protocol

Persistent memory for AI coding agents—auto-save decisions and discoveries across sessions and compactions.

68/ 100
Recommended

Generally reliable with disclosed limitations; trial as directed and keep a rollback path.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 7.1k
Last updated
4d ago
License
MIT
persistent-memorysqlitefts5mcp-server
+3go-binarycodexcli

What does this skill do, and when should you use it?

This protocol is mandatory and always active, requiring the agent to proactively save architecture decisions, bug fixes, user preferences, and discoveries into Engram's SQLite store. It leverages an MCP server for tools like mem_save and a session-close summary protocol to ensure continuity. Installation involves running `engram setup codex` and restarting Codex; tools auto-load via the UserPromptSubmit hook.

  • Calls mem_save immediately after relevant events (decisions, completed work, discoveries, user confirmations/rejections) with structured fields (title, type, What/Why/Where/Learned).
  • Provides mem_context and mem_search for retrieval of past memories.
  • mem_session_summary logs a summary at session end.
  • After compaction, it persists a summary via mem_session_summary and recovers context with mem_context.
  • All actions go through the MCP server.
Good fit
  • A developer fixes a stubborn bug and wants the root cause remembered next session.
  • A team establishes a coding convention and expects the agent to enforce it consistently.
  • A user expresses a preference for a tool or framework, and future work should follow it.
  • After context compaction, quickly restore the session's state.
  • At the start of a new session, the user asks about prior work; the agent auto-searches memory.
Not a fit
  • Environments without the engram binary or where MCP setup fails — tools will be unavailable
  • Scenarios requiring memory access over HTTP or Docker networks — MCP-only, not reachable remotely
  • Mission-critical production use needing stability guarantees — no test suite and relies on agent adherence to the protocol

How do you install this skill?

Before you use it
  • The skill is designed to be always active and mandates memory saving and session-end protocols; administrators should ensure users are aware of this behavior and configure permissions as needed.
  • Default HTTP server is unauthed; consider setting ENGRAM_HTTP_TOKEN to protect local data if exposed.
  • The skill does not explicitly prohibit saving sensitive information; ensure user data is not stored in memory unless explicitly consented.
  • The skill relies heavily on the external engram binary and MCP server; ensure these components remain updated and available to avoid disruption.
  • The beta features should be used with isolated test environments to avoid impacting production.
Before you start
Your agent needs
  • Shell / CLI
  • Local filesystem
  • MCP Server
Install first
  • engram binary (Go, no runtime deps)

Codex

brew install gentleman-programming/tap/engram
engram setup codex

Restart Codex after setup. Ensure MCP tools are available; if missing, rerun engram setup codex and restart. Other platforms per docs.

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • What did we decide earlier? Recall what we did last session
  • How did we solve this bug last time?
  • Save this architecture decision to Engram
  • Continue where we left off last session

No manual activation is needed—the protocol auto-runs. The agent triggers mem_save on relevant events and mem_session_summary at session end. Users can prompt with phrases like 'remember how we solved this last time?' to trigger search.

What are this skill's strengths and limitations?

Pros
  • Proactive saving reduces forgetting
  • Preserves context across sessions and compactions
  • Structured memory with topic keys and upsert
  • Automatic tool loading—no manual search
  • Supports project and personal scopes
Limitations
  • Depends on external engram binary and MCP config; setup failures break tools
  • Relies on agent adherence; otherwise memory may be incomplete
  • MCP-only, not reachable over HTTP or Docker networks
  • No test suite or evidence of stability

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
Engram Persistent Memory Protocol this page 68 · Recommended ★ 7.1k 4d ago MIT
Engram Memory Skill 54 · Use with care ★ 7.1k 4d ago MIT
Engram Architecture Guardrails 50 · Use with care ★ 7.1k 4d ago MIT
Engram Business-Rules Guardrails 54 · Use with care ★ 7.1k 4d ago MIT
agentMemory — Hybrid Memory System for AI Coding Agents 42 · Not recommended ★ 33 8mo ago MIT

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Recommended
68/ 100 5-point scale 3.4 / 5
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
1Trust18 / 25 · 3.6/5

The skill requires the agent to proactively save memories and enforces a session-end protocol without requiring explicit user confirmation, and lacks explicit guidance on handling sensitive data in memory storage. The skill exhibits least privilege in terms of permissions; the MCP tools and HTTP server data flow are visible, but the HTTP server defaults to being open if token is not set, which could expose data. Installation and setup info provided, attribution clear. Deductions: lacks user confirmation or sensitive-data transparency.

2Reliability11 / 20 · 2.8/5

The skill provides a clear protocol with mandatory actions and fallback (rerun setup), but no explicit error handling or failure-feedback details for abnormal inputs. README mentions tests and CI workflow, offering some evidence, but static review prevents full verification. Deductions: lack of error messages or test coverage evidence.

3Adaptability13 / 15 · 4.3/5

Targets AI coding agents with persistent memory needs; scenario and boundaries are clear, triggers defined, non-fit cases evident. It works with Chinese and English languages and runs locally, so no internet dependency. Deductions: limited evidence beyond default scenarios.

4Convention14 / 15 · 4.7/5

Documentation is well-layered: README, DOCS, INSTALLATION, etc. License is MIT. But no version or changelog information provided. Deductions: missing changelog or versioning.

5Effectiveness7 / 15 · 2.3/5

Goals and benefits are clear; the skill provides detailed instructions and tool usage. It likely completes the core task of persisting memory, but direct usability or output verification is not proven without execution. Deductions: no execution evidence.

6Verifiability5 / 10 · 2.5/5

CI workflow with go test ./... and e2e tests provides some verifiability, but static review limits score. No independent reproduction performed. Deductions: no independent execution evidence.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Aug 07, 2026 Reviewed revision 509e6762fdd9 Review evidence[1][2][3][4][5][6][7]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

Does Engram cost money?
It's open-source under MIT and free to use.
Where is memory stored?
In a local SQLite file (default ~/.engram/engram.db), with optional cloud replication.
What if MCP tools are missing?
Re-run `engram setup codex` and restart Codex to repair the configuration.

More skills from this repository

All from Gentleman-Programming/engram

Related skills