Open protocol

SGM — Shared Global Memory

An open protocol for persistent, interoperable memory and context sharing between AI agents and software tools.

ProtocolJSON SchemaMCPAGPL-3.0Spec 0.1.0

Every AI tool keeps its own private, session-scoped memory. Switch tools, start a new session, or hand work to another agent, and that context is lost — rebuilt by hand every time. SGM is the shared contract that fixes it: a small, transport-independent protocol any conforming implementation can use to exchange memory with any other.

SGM is a protocol first, an implementation second. The specification is authoritative; the reference implementation is executable documentation only. A third party can implement SGM from the public spec alone, without reading any implementation's source.

Explore

The protocol

Specification

14 spec documents

Overview, terminology, architecture, memory, retrieval, context, annotations, handoffs, provenance, scopes, capabilities, versioning, errors, and security.

Schemas

5 JSON Schemas

Machine-readable structures for memory records, contexts, annotations, handoffs, and capability discovery — draft 2020-12.

Conformance

44 behavioral tests

Core, retrieval, handoff, annotations, and security suites that answer "does my implementation actually implement SGM correctly?"

Reference

Executable docs

An in-memory reference store and CLI that demonstrate the contract and pass the conformance suite.

Core capabilities

  • Store · Retrieve · Read · Identity · Scope · Discovery — the mandatory core
  • Optional profiles: Collaboration, Code Intelligence, History, Transport
  • Transport-independent — MCP, HTTP, and CLI are bindings, never the protocol