Engram Memory Engine

A persistent brain for AI coding agents: one Go binary, local SQLite memory, any MCP client.

Stars
★ 6.7k
Last updated
2mo ago
FARS reviewed
Sep 16, 2026
License
MIT
Primary language
Go

At a glance

How it runs
CLIMCP serverAgent plugin / skill
Works with
Universal · cross-platformCodex · Claude Code
Cost
Free, no paid service needed
Setup effort
Low · running in minutes
You'll need
An MCP-compatible agent client (Claude Code, Codex, Cursor, Gemini CLI, etc.)Shell / CLILocal filesystemMCP Server
Typical use
Developers running Claude Code or Codex on the same repository for weeks who want a fresh session to recall past architecture decisions and bug fixes.
Not a fit if
  • Users who want a GUI-only memory manager and avoid terminals or TUIs
  • Teams expecting managed cloud sync out of the box; Engram Cloud must be self-deployed
Maintenance
Commits in the last 6 monthslast commit 2026-09-16
Source review
64/100 · Some gaps

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

Engram is a persistent memory system for AI coding agents, built to stop context from disappearing when a session ends. It ships as a single Go binary that writes memories into a local SQLite database (default ~/.engram/engram.db) and searches them with FTS5 full-text indexing. Four interfaces sit on top of that same store: a CLI, an HTTP API, an MCP stdio server, and an interactive terminal UI styled with the Catppuccin Mocha theme. It is not tied to any model or vendor, and MCP-compatible clients such as Claude Code, OpenCode, Gemini CLI, Codex, VS Code (Copilot), Antigravity, Cursor, Windsurf, Qwen Code, Kiro and Kilo Code are configured through engram setup <agent>. Memory stays local by default; sharing is opt-in via Git Sync compressed export chunks or an optionally self-deployed, project-scoped Engram Cloud. The project is MIT licensed, with documentation spread across the README, DOCS.md and the docs/ directory.

Engram runs as an MCP stdio server on the developer's machine and persists everything into a SQLite + FTS5 database. Agents read and write memory through a set of mem_* tools: mem_current_project confirms the resolved project, mem_context and mem_search recover prior work, mem_timeline shows surrounding session context, mem_get_observation returns a full observation, mem_save and mem_update write or refine durable knowledge, mem_suggest_topic_key proposes a stable key such as architecture/auth-model so an evolving topic updates one record instead of spawning rivals, mem_save_prompt preserves the user's request, mem_session_summary / mem_session_start / mem_session_end handle handoff and post-compaction recovery, mem_review, mem_judge and mem_compare inspect stale knowledge and memory relationships, and mem_doctor diagnoses project and store state. The CLI adds engram setup <agent> for writing client configuration, engram tui for the terminal interface, engram context with a positional project alias, and a dry-run-first cloud upgrade sequence (doctor, repair, bootstrap, status). Project-aware reads resolve an explicit project first, then ENGRAM_PROJECT, then cwd detection; the CLI supports --all and the HTTP API supports all_projects=true for intentional global reads, while GET /sync/status accepts only one resolved project.

  1. Developers running Claude Code or Codex on the same repository for weeks who want a fresh session to recall past architecture decisions and bug fixes.
  2. Teams that switch between agents (Claude Code, OpenCode, Gemini CLI, Cursor, and others) and want one shared project memory instead of scattered notes.
  3. Engineers who need to resume after a context compaction or crash and want a structured handoff summary covering goal, discoveries, next steps and relevant files.
  4. Small teams that want to carry memory to another machine or share it with teammates via Git Sync compressed chunks instead of the whole database.
  5. Terminal-first users who prefer browsing and searching memory with j/k navigation, / search and c to copy content.
  6. Platform engineers wiring memory into CI or in-house tooling through the HTTP API or CLI.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • brew install gentleman-programming/tap/engram
Install notes cover
Windows · macOS · Linux · Docker

How do you install or deploy this agent?

Install the latest stable release from GitHub Releases, or use Homebrew (currently pinned to the v1.20.0 stable line):

brew install gentleman-programming/tap/engram

Then write the MCP and integration configuration for your agent and restart it:

engram setup opencode

Claude Code installs through the plugin marketplace:

claude plugin marketplace add Gentleman-Programming/engram && claude plugin install engram

Other clients:

engram setup pi
engram setup gemini-cli
engram setup codex
engram setup antigravity-cli
engram setup windsurf
engram setup qwen
engram setup kiro
engram setup cursor
engram setup vscode-copilot
engram setup kilocode

No Node.js, Python or Docker is required, and the usual stdio-only setup does not ask you to start a server yourself. Windows, Linux and source builds are covered in docs/INSTALLATION.md.

How do you use this agent?

Have the agent orient itself before writing, and drive tools by intent:

mem_current_project, mem_context  → confirm project, recover recent work
mem_search                        → find prior knowledge before repeating work
mem_timeline, mem_get_observation → inspect a result in detail
mem_save, mem_update              → save or refine durable knowledge
mem_session_summary               → leave a handoff before ending

Save structured content under a stable topic_key:

**What**: Added retry-safe upload handling.
**Why**: Retries could create duplicate records.
**Where**: internal/upload/handler.go
**Learned**: Reuse the request id as the idempotency key.

Browse memory in the terminal:

engram tui

j/k to navigate, Enter to drill in, / to search, c to copy, Esc to go back.

To attach an existing local database to cloud replication, follow the guided upgrade sequence:

engram cloud upgrade doctor --project <project>
engram cloud upgrade repair --project <project> --dry-run
engram cloud upgrade repair --project <project> --apply # only when the dry run reports changes
engram cloud upgrade bootstrap --project <project>
engram cloud upgrade status --project <project>

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

What are this agent's strengths and limitations?

Pros
  • One Go binary and one SQLite file run the whole thing — no Node.js, Python or Docker footprint.
  • A single MCP server spans many clients: engram setup <agent> writes configuration for 13 documented agents including Claude Code, Codex, Cursor, Windsurf and Gemini CLI.
  • CLI, HTTP API, MCP stdio and a TUI all read the same local store, so scripting and manual browsing coexist.
  • Local SQLite is authoritative; Git Sync exports portable compressed chunks and Engram Cloud offers project-scoped replication, making sharing opt-in rather than mandatory.
  • A built-in operating contract — stable topic_key, session summaries, post-compaction recovery — reduces duplicate memories and lost context.
  • MIT licensed and fully auditable.
Limitations
  • It is only useful alongside an MCP-capable agent client; standalone value is limited.
  • Cloud replication means self-deployment plus a dry-run-first doctor/repair/bootstrap/status upgrade sequence — real operational overhead.
  • The Homebrew tap stays on the v1.20.0 stable line, so it drifts from the newest GitHub Releases and you must judge the upgrade path yourself.
  • The only interactive UI is the terminal TUI; there is no desktop or browser memory manager.
  • Behavioral rules live in large Markdown docs (DOCS.md, docs/), so the full contract is scattered and takes reading to absorb.
  • Contributions require an approved issue first rather than a direct pull request.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Engram Memory Engine This agent 64 · Some gaps CLIFree ★ 6.7k 2mo ago Go Codex · Claude Code
agent-memory 81 · Good — ★ 4k 18d ago Python Codex · Claude Code
showagent 72 · Some gaps CLIFree ★ 75 2d ago Go Codex · Claude Code
GrayMatter 66 · Some gaps CLIFree ★ 491 3d ago Go Codex · Claude Code · OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
64/ 100 5-point scale 3.2 / 5
Trust 14/29
Reliability 8/14
Adaptability 15/18
Convention 14/18
Effectiveness 9/13
Verifiability 4/8
Why each dimension lost points
Trust14 / 29 · 2.4/5

Evidence shows a local-first design, single SQLite file, and MCP stdio as the primary path, giving a small attack surface; SECURITY.md defines scope and response timelines (48h/5d/30d), CI pins action SHAs with persist-credentials:false, and the dependency list shows no known critical issues. Deductions are concrete: the README embeds a Star History sealed_token (encrypted, but still an outbound third-party request) with no stated scope or rotation policy; write tools (mem_save/mem_update) show no per-action user confirmation; encryption, retention, and purge policy for sensitive data (prompts, code snippets) stored in SQLite are not described in the visible files; Cloud replication and Git Sync data-egress boundaries are only linked, without verifiable default-off or least-privilege statements.

Reliability8 / 14 · 2.9/5

go.mod dependencies are all publicly obtainable, and CI covers lint, unit, e2e, Windows-specific, and performance-ratchet jobs, indicating good self-consistency. Deductions: no visible evidence of failure-message shape or error-code conventions, so failure_messages scores 1; dependency availability is good but go 1.25.10 and recent dependency versions raise the bar for older environments, with no vendor directory or checksum guidance shown.

Adaptability15 / 18 · 4.2/5

The README explicitly lists a dozen-plus agents (Claude Code, OpenCode, Gemini CLI, Codex, Cursor, Windsurf, etc.) with per-agent setup commands, covering audience and scenarios well; project resolution precedence (explicit project -> ENGRAM_PROJECT -> cwd) and the --all/all_projects mutual-exclusion rule are clearly stated, and environment fit is evidenced by Windows-specific tests and no Node/Python/Docker requirement. Deductions: capability_boundaries do not systematically state what the tool does not do (e.g., not a VCS replacement, no guarantee of cross-project isolation strength); trigger_precision relies on the agent voluntarily following the operating contract, with no enforced trigger or validation mechanism.

Convention14 / 18 · 3.9/5

Information architecture is clear, the documentation index is complete, installation paths (GitHub Releases, Homebrew, per-agent setup) are well described, the MIT license file is complete with a trademark notice, and the Release Policy explains stable/RC channels. Deductions: known_limitations is nearly absent from the visible files (only RC risk and Homebrew staying on v1.20.0), with no consolidated limitations list; naming_stability is weakened by many mem_* tools and CLI subcommands with no deprecation/rename policy; maintenance_responsibility points only to a GitHub profile, without named core maintainers or role division beyond the security SLA.

Effectiveness9 / 13 · 3.5/5

Output usability is good: the README provides a structured memory template and an intent-to-tool table directly usable by agents; marginal value is clear (cross-session persistent memory, FTS5 retrieval, multi-agent generality), and cost is low (single binary, zero dependencies, local SQLite). Deductions: no verifiable comparison data against alternatives (e.g., claude-mem) is shown, only a link to COMPARISON.md; memory quality depends on agent discipline, with no quantified benefit evidence.

Verifiability4 / 8 · 2.5/5

Most README claims trace to specific documentation links (Architecture, Release Policy, Agent Setup, etc.), CI workflows provide static, checkable evidence of testing and building, and cross-source corroboration is broadly consistent. Deductions: the Star History token explanation sits in tension with the 'zero dependencies / local-first' narrative in a way readers must infer, so fact-inference separation is not explicit; performance and reliability claims (e.g., self-testing) rest only on the existence of docs, with no reviewable benchmark data in the visible files.

Risks and how to mitigate them
  • The README embeds a Star History sealed_token that triggers an outbound third-party request; although encrypted, verify its scope, rotation, and revocation, and consider local rendering or removal.
  • Write-oriented MCP tools (mem_save/mem_update/mem_session_summary) show no per-action user confirmation, so an agent may persist sensitive prompts or code snippets automatically; define a confirmation policy and retention/purge rules before deployment.
  • Encryption, access control, backup, and deletion policy for the local SQLite database are not described in the visible files; assess data-exposure risk on shared machines or multi-user hosts.
  • Engram Cloud and Git Sync egress boundaries are only linked, not confirmed as default-off or least-privilege in the visible files; read the corresponding docs and validate in isolation before enabling.
  • Known limitations are not consolidated, and Homebrew stays on v1.20.0 while Releases may be newer; check the Release Policy and channel guidance before upgrading to avoid mixing versions.
  • Publisher identity is not verified by the FollowAgents curated enterprise registry, and maintenance responsibility/update path point only to a GitHub profile; remain cautious about supply-chain and long-term maintenance commitments.
Evidence confidence: Low Reviewed Sep 16, 2026 Reviewed revision 08af2597879a
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/engram.svg)](https://followagents.com/en/agents/engram)
<a href="https://followagents.com/en/agents/engram"><img src="https://followagents.com/badge/engram.svg" alt="FARS review"></a>
Was this page helpful?
View on GitHub ↗ Install ↓

Host ecosystems

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts