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.

llm-d Router: Intelligent Orchestration for Multi-Phase LLM Inference

llm-d Router: Intelligent Orchestration for Multi-Phase LLM Inference

September 25, 2026

The `llm-d-router` is a sophisticated Go service designed as an intelligent entry point for large language model (LLM) inference requests. It orchestrates complex, multi-phase LLM inference pipelines across specialized worker pools, routing requests through an Inference Gateway to disaggregated vLLM workers. By exposing OpenAI-compatible APIs, it simplifies integration and leverages Kubernetes for scalable, efficient deployments.

aigateway-apiinference
Inference Gateway: Unifying LLM Providers with a High-Performance API

Inference Gateway: Unifying LLM Providers with a High-Performance API

September 25, 2026

Inference Gateway is an open-source, cloud-native, high-performance proxy server designed to unify access to various language model APIs. It provides a single OpenAI-compatible endpoint, simplifying interactions with multiple LLM providers, from local solutions like Ollama to major cloud platforms. This gateway enables seamless integration and management of diverse AI models, enhancing portability and data privacy.

LLM GatewayOpenAI API ProxyCloud-Native AI
Agent Orchestrator: Supervise Teams of Coding Agents from Planning to Merge

Agent Orchestrator: Supervise Teams of Coding Agents from Planning to Merge

September 23, 2026

Agent Orchestrator is a powerful tool designed to run and supervise teams of coding agents throughout the entire development lifecycle, from initial planning to code merge. It supports a wide array of agent harnesses, including Claude Code and Codex, and operates across desktop, web, mobile, and cloud environments. This platform offers a unified workspace to manage and coordinate multiple agents, ensuring efficient and organized agent-driven development.

agent-orchestrationmulti-agentAI
uta: A CLI Agent Orchestrator for Parallel AI Task Management

uta: A CLI Agent Orchestrator for Parallel AI Task Management

September 19, 2026

uta is a command-line interface (CLI) agent orchestrator designed to decompose complex goals into parallel subtasks. It can dispatch these tasks to various agent CLIs like Claude Code or Gemini CLI, record every step of the process, and synthesize the final results. This tool enhances agent capabilities by enabling parallelism and cross-provider task execution.

GoAIAgents

Source repository

Open the original repository on GitHub.

32 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 ❤️