Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.198 Home All releases olderv2.1.197 v2.1.199newer

Memory Stores Env Var

Feature flag
tengu_moth_copse Off in both readings

The flag server returned off for the account this site reads and for the anonymous baseline. A reading of off cannot rule out a rollout these two readings sit outside of.

This account: off · anonymous baseline: off · compiled default in v2.1.198: on

These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.

Read once, for one account on one subscription tier, against v2.1.198. It isn't a statement about your account. What a flag value here can and cannot tell you

What

A new CLAUDE_MEMORY_STORES environment variable activates expanded memory storage, alongside the tengu_moth_copse feature flag.

Usage
export CLAUDE_MEMORY_STORES="..."
Details
  • Feature-flagged via tengu_moth_copse; setting that flag OR providing a non-empty CLAUDE_MEMORY_STORES value enables the multi-store subsystem (qat() returns true in either case)
  • The env var accepts a JSON array; each element is either a bare path string or an object with fields: path (absolute, required), mode ("rw" | "ro", default "rw"), scope ("user" | "team", default "team"), mount (optional alphanumeric name auto-derived from the last path segment if omitted), promptIndex (optional relative path), promptIndexMaxBytes (optional integer)
  • Validation is strict: the JSON must parse cleanly, all paths must be absolute and must not override the host, mount names must match /^[A-Za-z0-9_-]+$/, duplicate mount names throw, and only one scope:"user" entry is permitted
  • At startup, successfully parsed stores are logged at debug level: "memory-stores: parsed N store(s): mount(mode), ..."
  • When active, the multi-store router (uL()) supersedes the default single-directory memory path, routing reads and writes to the configured stores based on scope
Evidence

qat() function (search for "CLAUDE_MEMORY_STORES" and tengu_moth_copse flag); eue() parser and zqd schema (search for "CLAUDE_MEMORY_STORES is not valid JSON" and "CLAUDE_MEMORY_STORES has duplicate mount")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.198 →