/harness-memory:stateless [status|disable|purge] [--unattended]from harness-memory
Inspects, disables, or purges Claude Code's per-repo auto-memory (saved notes/memories). Supports status checks, disabling via settings or env var, and confirm-gated deletion.
Ships in harness-memory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Arguments. [status|disable|purge] [--unattended]. Default: status
bash "${CLAUDE_PLUGIN_ROOT}/skills/stateless/scripts/scope-report.sh" || echo "(snapshot unavailable — run the scope-report script manually)"
Inspect and disable Claude Code auto memory, the store Claude writes for itself. Where it
lives is read at
Storage location. Governs auto-memory
only. Not in scope: CLAUDE.md / CLAUDE.local.md / .claude/rules/ (use /harness-memory:audit), transcripts, history, or shell snapshots. For the
official full per-project wipe, use claude purge.
reference/official-guidance.md, "Out of scope for this skill",
records how this skill treats that command's scope; read the deletion plan and flags at
Clear local data.
reference/official-guidance.md holds the decisions this skill acts on, each with a pointer to its docs section and none of the docs' text; re-read the pointed-at section before acting on a load-bearing fact.
| Entity | Location | This skill |
|---|---|---|
| Auto-memory store | Per project; see Storage location above | Yes. Status / disable / purge |
autoMemoryEnabled setting | any settings scope | Yes. Reads and writes |
CLAUDE_CODE_DISABLE_AUTO_MEMORY | OS env or settings env block | Yes. Reads and writes |
CLAUDE.md / .claude/rules/ | repo + user | No. Use /harness-memory:audit |
| CLAUDE.local.md | repo only, no user-scope equivalent | No. Use /harness-memory:audit |
| Transcripts | ~/.claude/projects/<project>/ | No. How we treat its age sweep and claude purge: official-guidance.md, "Out of scope for this skill" |
| Prompt history | ~/.claude/history.jsonl | No. Same record |
| Session files | ~/.claude/sessions/ | No. Same record |
| Shell snapshots / backups | ~/.claude/shell-snapshots/, ~/.claude/backups/ | No. Same record |
| Claude Desktop / claude.ai memory | server-side account | Direction only. See context/desktop.md |
Take out --unattended first, wherever it appears: it is the caller declaring that nobody is present, which
governs the /memory offer under "Boundary". Match the rest against this table.
| Argument | Action |
|---|---|
(none) or status | Report the auto-memory posture: effective enabled/disabled state, where the store lives, what it holds. Read-only. |
status all | Machine-wide: the status report plus a table of every per-project memory store (scripts/enumerate-all-projects.sh). Read-only. |
disable | Turn auto memory off durably (autoMemoryEnabled: false + CLAUDE_CODE_DISABLE_AUTO_MEMORY). Edits settings. Confirm scope first. |
purge | Destructive. Delete the auto-memory files. Reads autoMemoryDirectory at every scope first, shows a manifest, offers an opt-in pre-delete backup, and deletes only after explicit confirmation. |
purge all | Destructive, machine-wide. Same flow with every per-project store as the candidate set, one combined manifest, and one combined gate stating the total count and every directory. |
This skill treats CLAUDE_CODE_DISABLE_AUTO_MEMORY as authoritative whenever it is set: 1
reports auto memory off, and 0 reports it on even against autoMemoryEnabled: false. Only
when the env var is unset does autoMemoryEnabled (by settings precedence) decide. status must
report the env var as authoritative whenever it is set. disable sets the env var to 1 and
autoMemoryEnabled: false together. The reference file's "Precedence: the env var overrides the
setting (VERIFIED)" holds the pointer.
For the Claude Desktop / claude.ai account store (server-side, not local files), load
context/desktop.md. Relevant to status and purge whenever the user
wants to be stateless everywhere, not just in this repo.
The context/ files write each bundled script as <skill-dir>/scripts/<name>.sh, where
<skill-dir> is this skill's directory: ${CLAUDE_SKILL_DIR}. Put that path in place of the
placeholder before running a command. We never put a ${…} token in those files: we do not rely
on one being substituted in a file read through the Read tool, or on the Bash tool's environment
carrying CLAUDE_PLUGIN_ROOT.
${…} reference resolves, see
Where each variable resolves./memory and /pause-memory commands"Turn off auto memory" and "what has Claude saved" can land on either.
/memory (built-in command): the person's own interactive command. This skill never runs
it.
/memory./pause-memory (built-in command, hidden and gated): the person's own command; pauses auto
memory for the current session only. This skill never runs it.Native suggestions are on unless the per-user value ${user_config.native_suggestions} is off (a literal unexpanded token means unset; any value but on or off is named and dropped); with none set they are on. When off, skip the offers below and write nothing in their place, not even a note that it was skipped or why.
Routing. When the person wants a quick interactive toggle or a look at the saved entries,
offer it to the person: If /memory is available in your session (gate basis: the records in
reference/native-memory.md) and native suggestions are on (native_suggestions, Configuration), you can run it instead of or alongside
this skill. Prefer this skill
when precedence across scopes matters, when the env var is set, or for a durable disable or a
purge. When the person wants auto memory off for this session only, offer it to the person: If /pause-memory is available in your session (gate basis: it registers hidden and gated; records in reference/native-pause-memory.md) and native suggestions are on (native_suggestions, Configuration), run it for a one-session pause instead of disable. When the caller passes --unattended, omit both offers, write Withheld suggestion (unattended): /memory and Withheld suggestion (unattended): /pause-memory in the output, and do not ask; without that flag it asks.
Mutation gate. /memory writes whatever the person changes in its dialog, and
/pause-memory pauses this session's auto memory; this skill runs neither on the person's behalf. A /memory toggle can be overridden by CLAUDE_CODE_DISABLE_AUTO_MEMORY,
which status reports.
Availability is never assumed. This section states what to do when the person can run
/memory or /pause-memory, never that either is present in their host. The four-part records
live in reference/native-memory.md and
reference/native-pause-memory.md.
CLAUDE_CODE_DISABLE_AUTO_MEMORY is authoritative in status, 0
included. (See above.)autoMemoryDirectory: we treat it as able to relocate the store from any scope
(official-guidance.md, "Storage location"). The snapshot prints the slug-derived default only.
purge and status must read the override at every scope or they act on the wrong directory.CLAUDE_CONFIG_DIR: we treat it as relocating the whole config root, the user
settings.json and the projects/<project>/memory/ tree included (official-guidance.md,
"CLAUDE_CONFIG_DIR relocates the whole config root"). All scope and memory-dir resolution honors
${CLAUDE_CONFIG_DIR:-~/.claude} (scripts + workflows); the snapshot reports the resolved root,
and purge's relocation check treats it as expected.scope-report.sh can't read. Report managed scope as unread, don't assume empty.
Settings scopes and precedence
points at where each location is documented.disable leaves this session's loaded memory in place. What auto memory loaded at startup
stays in the current context whether or not the setting reloads mid-session, so tell the user a
new session is the first one that starts without it.
settings.json: a live edit to a dotfile-manager-tracked settings file must be
backfilled to the source; never run an apply that could revert the edit.purge cannot delete it; give direction only.Discover the consumer's state at runtime. Never hardcode a machine's paths or current
posture. Settings scopes, the memory directory, and the env var are read fresh from the
snapshot above and the workflow scripts. The bundled scope-report.sh reuses the plugin's
single-source memory-dir resolver (skills/audit/scripts/resolve-memory-dir.sh) rather than
re-implementing slug derivation.
context/desktop.md (opens in a new tab)context/disable.md (opens in a new tab)context/purge.md (opens in a new tab)context/status.md (opens in a new tab)reference/native-memory.md (opens in a new tab)reference/native-pause-memory.md (opens in a new tab)reference/official-guidance.md (opens in a new tab)scripts/enumerate-all-projects.sh (opens in a new tab)scripts/enumerate-all-projects.test.sh (opens in a new tab)scripts/scope-report.sh (opens in a new tab)scripts/scope-report.test.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
bashThree short reads, in order
2 skills in this plugin
npx claudepluginhub melodic-software/claude-code-plugins --plugin harness-memoryOther plugins' skills for the same job