Compatibility

shmem is pre-1.0 and moves quickly, but people run it in their shells, pin it in CI, and point hosted clients at it. This page says which surfaces we keep working, which we explicitly do not, and what happens when we have to break one.

It is deliberately written in terms of surfaces, not inventories. A list of every tool and variable would go stale faster than the promise it documents — the current list lives in reference, which is maintained alongside the code.

Stable

We treat a change here as a break, and a break follows the procedure below.

Surface Notes
MCP tool names and parameters — core memory, projects, and groups Adding a tool or an optional parameter is free. Renaming or removing one needs a deprecation window.
Bearer auth scheme — Authorization: Bearer <token> The scheme is the contract. Individual tokens are not.
Documented environment variables — those listed in reference They live in shell profiles, .env files, and CI configs.
CLI --json output This is an API that happens to be spelled as a flag. New fields are additive; changing what an existing field means is a break.
Files you edit by hand — ~/.shmem/.env, .shmemignore, and your database path People keep these in dotfile repos.

Three tools carry more weight than the rest: add_memory, list_facts_since, and delete_memory. Hosted sync is built on the MCP tool surface rather than a separate wire protocol, so those three are how replication works. They are the strictest case on this page.

Experimental

The sharing surface is new and still changing. It may change without a deprecation window. It is off by default.

This covers two things:

  • Sharing — the shmem share and shmem unshare verbs, the sharing tools (share_facts, unshare_facts, share_status, share_log, share_show, scan_shares, discard_nomination, forget_nomination, distill_facts, set_sharing, get_share_rules, set_share_rules, share_updates, and the internal import_share_history), the server's background scans, and the sharing views in the dashboard.
  • The membership tools — add_membership, remove_membership, list_memberships_since, and get_facts. These are part of the same model but are not gated by an account's sharing setting, so they are reachable even with sharing off.

If you are automating against these, pin a version.

Unstable by design

Saying so plainly is the point — it is what keeps the stable set small enough to honour.

Surface Instead
CLI human-readable output Parse --json. Scraping the pretty output will break, and we will not treat that as a regression.
The SQLite schema Use the CLI or the MCP tools. We migrate the database as needed.
Internal state in ~/.shmem/ — pending/, .sync, .last_heartbeat, .update-check.json, remotes.json Deleting any of these should cost you at worst a re-sync.
Go packages under internal/ The compiler already enforces this; it is listed because publishing the repo invites vendoring.
SHMEM_TEST_* environment variables These gate benchmarks and point tests at fixture trees. They are named so you can tell at a glance that they are not configuration. Nothing outside the test suite should set one.

How we break something

When a stable surface has to change:

  1. Add the new thing alongside the old. Both work.
  2. Warn on the old path — on stderr for the CLI, in the tool description for MCP — naming the replacement and the version that removes it.
  3. Wait two minor releases.
  4. Remove it, with a changelog entry scannable by someone who skipped four versions.

A security fix that cannot wait gets whatever window it has to, and the changelog says why. Naming the exception is how we stop it becoming the rule.

If your client is too old

You should get a clear error naming what changed and what to use instead — never a silent empty result. An empty answer where memory should be is the worst possible symptom for a compatibility problem, because it reads as data loss. If you ever see that, it is a bug worth reporting.