GoodMemory is a memory layer for AI products and coding agents, positioned as a product memory layer between an application or installed agent host and the model runtime, rather than an LLM, agent framework, vector database, or general-purpose RAG system. It provides a persistent user/project memory loop: write selected facts, retrieve the right context, inject it into the next conversation turn, audit what happened, and delete when the memory is wrong.
Main capabilities
- Persistent memory API: remember, recall, buildContext, feedback, forget, exportMemory, importMemory, deleteAllMemory.
- Installed agent memory: managed hooks for Codex and Claude Code via goodmemory setup, installed Codex pre-operations, goodmemory status, read-only MCP, and optional writeback.
- Public write customization: configured via GoodMemoryConfig.remember, RememberProfile, rememberRules, RememberInput.annotations, and named extractor IDs.
- Package exports: goodmemory, goodmemory/ai-sdk, goodmemory/host, goodmemory/http, providing compiled dist artifacts and TypeScript declarations.
- Local-first storage: Bun uses persistent SQLite by default; explicit Postgres, injection adapters, and embedding providers can be added as needed.
- Evaluation and release evidence paths: deterministic tests, live evaluations, provider-backed evaluations, package smoke tests, and quality gates.
Usage GoodMemory has three main product entry points:
- Build memory into an agent, chat box, or Copilot: install goodmemory in a Node/Bun service, create a memory instance, and pass in a stable scope (such as userId, workspaceId, sessionId, and optionally agentId). The request flow is: before the model call, run recall() and buildContext() and pass the memory context to the model; after the response, write selected signals via memory.jobs.enqueueRemember() or remember(); use feedback(), reviseMemory(), forget(), exportMemory() for correction, deletion, and auditing; importMemory() can restore exports or import Markdown pages. If using the Vercel AI SDK, you can wrap generateText() or streamText() with goodmemory/ai-sdk.
- Add memory to Codex or Claude Code: install the global CLI and run goodmemory setup. At session startup, inject a session brief; when a user prompt is submitted, inject per-prompt context (relevance-gated on new installs). Claude Code's Stop hook captures each conversation turn from the session transcript as a controlled writeback candidate (bounded, redacted, non-raw transcript); Codex can process the latest session rollout via goodmemory codex writeback --from-rollout. Codex pre-tool use can deny or redirect risky Bash. MCP provides trace, context, stats, and artifact inspection; the goodmemory_remember write tool must be explicitly enabled via mcp.allowWrite or goodmemory enable <host> --mcp-allow-write. Writeback is off by default; interactive installation or goodmemory setup --recommended can enable selective persistent writes, which can be audited via writeback inspect and revoked via writeback forget --event-id.
- Deploy GoodMemory as a backend memory layer service: deploy the packaged goodmemory-http-bridge in a Node/Bun sidecar, and the backend calls endpoints such as /memory/recall-context, /memory/remember, /memory/feedback, /memory/export, /memory/forget, /memory/revise, /memory/import. The service is still responsible for authentication and product policy, UI and model orchestration.
Use cases
- Chat applications, Copilots, and agent hosts need persistent user/project memory.
- An installed Codex or Claude Code needs to remember project and user context without modifying the agent itself.
- Backends (especially Python/FastAPI) want to call GoodMemory as a service, keeping memory on the server side.
- Other MCP clients (Cursor, Windsurf, Cline, Claude Desktop, Gemini CLI, OpenCode, or custom clients) can connect through an independent MCP server.
Limitations and notes
- GoodMemory is not an LLM, agent framework, vector database, or general-purpose RAG system.
- Write-back is off by default and must be explicitly enabled; scripted installation does not enable write-back.
- The current source corresponds to the 0.8.3 stable release, and registry commands require goodmemory@0.8.3 to be published.
- The project clearly distinguishes current production claims, versioned historical evidence, and internal research. 0.8.3 has no current or versioned historical benchmark claims; the retained v0.7.3 LoCoMo projection is an internal diagnostic, not end-to-end runner evidence. The v0.6.0 LoCoMo, BEAM, MemoryAgentBench measurements, and ImplicitMemBench are also internal diagnostics. LongMemEval has been retracted pending a clean rerun.
- The submission demo showcases persistent cross-session memory, controlled write-back, recall evidence, and inspection/deletion infrastructure, but does not claim to have proven improved Codex coding outcomes; that paired hidden-test evaluation remains an active, fail-closed evidence track.
- No account or hosted service is required; default local SQLite storage.
- After installation, goodmemory status can be used to verify the installation.
- The repository provides llms.txt and .well-known/goodmemory.json as machine-readable entry points.
- The dataset is CC BY 4.0, obtained at evaluation time, never bundled.
- Specific fees, pricing, platform support, etc. are not provided in the materials.