memory-purge

memory-purge is a skill for Claude Code from Magnifico4625/locus. It costs 20 tokens per session (145 once invoked), scanned A, original, MIT.

A destructive command that removes all Locus memory saved for the current project.

In plain words
What is it for?
Use it to inspect what will be deleted and, after explicit confirmation, erase the project's files, memories, episodes, and related stored data.
Why use it?
It clears the project's stored context when you no longer want Locus to retain it. The deletion cannot be undone.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the locus plugin — 9 skills, 3 hooks shipped together

Good fit Use it to inspect what will be deleted and, after explicit confirmation, erase the project's files, memories, episodes, and related stored data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/magnifico4625/locus/memory-purge
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Magnifico4625/locus --skill memory-purge
Clone the repo
git clone --depth 1 https://github.com/Magnifico4625/locus

Made for: Claude Code.

Or install locus, the plugin that ships this one along with the rest of its 9 skills, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for memory-purge

README.md
[![agentmods](https://agentmods.dev/badge/skills/magnifico4625/locus/memory-purge/github.svg)](https://agentmods.dev/skills/magnifico4625/locus/memory-purge)
Your own site
<a href="https://agentmods.dev/skills/magnifico4625/locus/memory-purge"><img src="https://agentmods.dev/badge/skills/magnifico4625/locus/memory-purge/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for memory-purge

Your own site · 80×15
<a href="https://agentmods.dev/skills/magnifico4625/locus/memory-purge"><img src="https://agentmods.dev/badge/skills/magnifico4625/locus/memory-purge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 145 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.00145
Opus 5 $0.00010 $0.00072
Sonnet 5 $0.00004 $0.00029
Haiku 4.5 $0.00002 $0.00015

Measured 10d ago against content hash 2c86db4bf7b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

memory-purge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/memory-purge/SKILL.md · 17 lines

What it actually says

Purge all Locus project memory using the memory_purge MCP tool.

WARNING: This is destructive and irreversible. Only the user should invoke this.

What to do

  1. Call memory_purge without a confirmToken — this returns stats and a token
  2. Show the user exactly what will be deleted (files, memories, episodes, DB size)
  3. Ask the user to confirm explicitly
  4. Only if confirmed, call memory_purge again with the confirmToken
  5. Report the result
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 17 lines · 20 tokens per session scan A 2c86db4bf7b2

Subscribe to this mod's changes

memory-purge is a skill published in the GitHub repository Magnifico4625/locus (14 stars, last pushed 3mo ago), licensed MIT. It adds 20 tokens to every session and 145 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

graph-retrieval

Exposes graph-based retrieval as a tool capability via querygraph. Reads normalized graph store files, builds a query-relevant subgraph, and returns LLM-friendly semantic triples with replayable evidence metadata.

study8677/repobrain · 46 tokens

memory-audit

An entry point for reviewing and maintaining an AI agent's stored memories. It describes how to remove repetition, preserve useful reasoning, and update memories when old conclusions no longer fit.

Dataojitori/nocturne_memory · 31 tokens

research

Performs deep research on a topic via deepresearch. Simulates a multi-step research process and returns a comprehensive research result as a string.

study8677/repobrain · 32 tokens

memory-audit-discoverability

A review guide for checking whether stored memories can be found at the right time. It focuses on where memories are attached, when they are triggered, whether aliases are missing, and whether a parent has too many children.

Dataojitori/nocturne_memory · 35 tokens

memory-audit-pattern-extraction

A method for investigating repeated mistakes by comparing related memories and checking whether an earlier reminder failed. It looks at where the reminder was stored, when it was created, and whether it was strong enough to prevent the mistake.

Dataojitori/nocturne_memory · 48 tokens

handover

Use when wrapping up or capturing the current state of a coding session — writes a short, dated entry to the repo's RepoHandover.md so a future agent or you can resume without grepping archived sessions. Triggers on "handover", "hand off", "write handover", "capture state", "checkpoint this session".

jazzyalex/agent-sessions · 71 tokens