Engram: Persistent Memory System for AI Coding Agents in Go

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Engram: Persistent Memory System for AI Coding Agents in Go

Summary

Engram is an agent-agnostic, persistent memory system designed for AI coding agents. Built as a single Go binary, it leverages SQLite with FTS5 for efficient storage and retrieval of agent memories. It offers various interfaces including a CLI, HTTP API, MCP server, and a TUI, ensuring broad compatibility and ease of use for any agent supporting the Memory Protocol.

Repository Information

Analyzed by OSRepos on June 2, 2026

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

Engram, developed by Gentleman-Programming, provides a crucial missing piece for AI coding agents: persistent memory. Often, AI agents lose all context and learned information at the end of a session. Engram solves this by giving agents a "brain" where they can store, retrieve, and manage their observations and decisions across sessions.

This system is implemented as a lightweight, single Go binary with zero external dependencies, making it highly portable and easy to deploy. It uses SQLite with FTS5 for robust full-text search capabilities, allowing agents to quickly find relevant past memories. Engram is agent-agnostic, designed to work with any AI coding agent that supports the Memory Protocol (MCP), such as Claude Code, OpenCode, Gemini CLI, and others.

Installation

Getting started with Engram is straightforward. For macOS users, you can install it via Homebrew:

brew install gentleman-programming/tap/engram

Detailed installation instructions for Windows, Linux, and other platforms are available in the official documentation: Installation Guide.

Examples

Engram integrates seamlessly with various AI agents. Here are a few quick setup examples:

  • Claude Code: claude plugin marketplace add Gentleman-Programming/engram && claude plugin install engram
  • Pi: engram setup pi
  • OpenCode: engram setup opencode
  • VS Code (Copilot): code --add-mcp '{"name":"engram","command":"engram","args":["mcp"]}'

Once set up, agents can save memories using tools like mem_save and retrieve context with mem_search. For instance, an agent might save a memory after completing a significant task:

1. Agent completes significant work (bugfix, architecture decision, etc.)
2. Agent calls mem_save ? title, type, What/Why/Where/Learned
3. Engram persists to SQLite with FTS5 indexing
4. Next session: agent searches memory, gets relevant context

Engram also features a powerful Terminal User Interface (TUI) for human interaction, allowing you to browse, search, and manage memories directly from your terminal:

engram tui

For sharing memories across machines, Engram offers Git Sync, which uses compressed chunks to avoid merge conflicts and manage file sizes:

engram sync                    # Export new memories as compressed chunk
git add .engram/ && git commit -m "sync engram memories"
engram sync --import           # On another machine: import new chunks

Why Use Engram

Engram stands out as a robust solution for AI agent memory due to several key advantages:

  • Agent-Agnostic: Works with any agent supporting the Memory Protocol (MCP), providing a universal memory layer.
  • Single Binary, Zero Dependencies: Extremely easy to install and run, eliminating complex setup or dependency management.
  • Persistent & Searchable: Utilizes SQLite with FTS5 for reliable storage and fast, full-text search capabilities, ensuring agents can always access relevant past information.
  • Comprehensive Toolset: Offers a rich set of MCP tools for saving, updating, searching, and managing memories, along with session lifecycle management and conflict surfacing.
  • Flexible Interfaces: Provides a CLI for scripting, an HTTP API for programmatic access, an MCP server for agent communication, and an interactive TUI for human oversight.
  • Cloud Integration (Opt-In): Supports optional cloud replication for sharing memories across teams and machines, with local SQLite remaining the source of truth.
  • Memory Conflict Surfacing: Beta features allow agents to detect and semantically judge conflicting memories, enhancing the quality of stored knowledge.

Links

Related repositories

Similar repositories that may be relevant next.

GoBooks: A Curated List of Essential Golang Books for All Skill Levels

GoBooks: A Curated List of Essential Golang Books for All Skill Levels

July 20, 2026

GoBooks is a highly popular GitHub repository offering a meticulously curated collection of Golang books, catering to developers from beginners to advanced practitioners. It serves as a comprehensive resource for finding the right learning materials on topics like concurrency, performance, and system design, making it easier to navigate the vast Go ecosystem.

GoGolangBooks
Zero: The AI Coding Agent for Your Local Terminal

Zero: The AI Coding Agent for Your Local Terminal

July 6, 2026

Zero is an innovative AI coding agent designed for your local terminal, offering powerful capabilities to inspect repositories, edit files, run commands, and utilize browser/terminal helpers. It provides durable local sessions while giving users full control over the AI model and permission levels. This tool empowers developers with a customizable and secure AI assistant directly within their development environment.

aiai-agentcli
no-mistakes: AI-Driven Git Proxy for Flawless Pull Requests

no-mistakes: AI-Driven Git Proxy for Flawless Pull Requests

June 30, 2026

no-mistakes is an innovative Git proxy that streamlines the pull request workflow by ensuring code quality before it reaches your remote. It uses an AI-driven validation pipeline in a disposable worktree, automatically applying safe fixes and escalating complex issues for human review. This tool helps developers maintain clean, high-quality codebases and open perfect PRs effortlessly.

GitAIDeveloper Tools
Gogcli: Google Workspace Management from Your Terminal

Gogcli: Google Workspace Management from Your Terminal

June 24, 2026

Gogcli is a powerful command-line interface for Google Workspace, allowing users to manage Gmail, Calendar, Drive, Docs, Sheets, and many other services directly from their terminal. It is designed for both interactive use and robust automation, providing predictable output, agent safety features, and support for multiple accounts.

gcalgcontactsgdrive

Source repository

Open the original repository on GitHub.

20 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️