save

A guided command for saving information to m3-memory. It classifies the content, chooses where it belongs, and asks for confirmation before writing.

In plain words
What is it for?
Use it to save decisions, facts, preferences, notes, tasks, references, knowledge, observations, or summaries from the current conversation.
Why use it?
It removes the need to decide the memory type and storage scope yourself. It also helps prevent accidental writes by requiring a confirmation.

Command

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.

agentmods
npx agentmods add commands/skynetcmd/m3-memory/save
Clone the repo
git clone --depth 1 https://github.com/skynetcmd/m3-memory
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 343 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00017 $0.00343
Opus 5 $0.00009 $0.00171
Sonnet 5 $0.00003 $0.00069
Haiku 4.5 $0.00002 $0.00034

Measured 2d ago against content hash 6a538c2cc2a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

save 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 2d 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.

commands/save.md · 29 lines

What it actually says

Suggested save

You're about to write to m3-memory. Do not call memory_write yet. First propose a plan:

  1. Look at the content the user gave you ($ARGUMENTS) plus the last few turns of context.
  2. Pick the most appropriate type from this list:
    • decision — choices made with a why
    • fact — verifiable assertion about the world
    • preference — user's stated like / dislike / convention
    • note — informal observation, doesn't fit other types
    • task — actionable item with state
    • reference — pointer to external doc / URL / location
    • knowledge — durable understanding of how something works
    • observation — what you noticed during a session
    • summary — distilled takeaway from a longer thread
  3. Pick scope (default: user) — most personal facts/preferences are user-scoped; project knowledge often isn't.
  4. Suggest a 1-line title if missing.
  5. Show the user the proposed {type, scope, title, content} and ask for a single y to write, or any other key to abort.
  6. On y: call m3:memory_write with those fields.
  7. On abort: say "skipped" and stop.

Reasoning for the choices is fine to include but keep it short — the user wants speed, not a treatise.

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. 2d ago First seen · 29 lines · 17 tokens per session scan A 6a538c2cc2a2

Subscribe to this mod's changes

save is a command published in the GitHub repository skynetcmd/m3-memory (22 stars, last pushed 3d ago), licensed Apache-2.0. It adds 17 tokens to every session and 343 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.