save

save is a command for Claude Code from john-broadway/maude-for-claude. It costs 49 tokens per session (1,749 once invoked), scanned A, original, Apache-2.0.

A command for saving a readable summary of the current coding session to configured memory locations.

In plain words
What is it for?
Use /maude:save to save a session digest and report which memory layers succeeded or failed.
Why use it?
It records what was done, decided, or left unfinished, while handling available memory destinations independently if some cannot be reached.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Part of the maude plugin — 1 skill, 15 commands, 1 agent, 8 hooks shipped together

Good fit Use /maude:save to save a session digest and report which memory layers succeeded or failed.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/john-broadway/maude-for-claude/save
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.

Clone the repo
git clone --depth 1 https://github.com/john-broadway/maude-for-claude

Made for: Claude Code.

Or install maude, the plugin that ships this one along with the rest of its 1 skill, 15 commands, 1 agent, 8 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 save

README.md
[![agentmods](https://agentmods.dev/badge/commands/john-broadway/maude-for-claude/save.svg)](https://agentmods.dev/commands/john-broadway/maude-for-claude/save)
Your own site
<a href="https://agentmods.dev/commands/john-broadway/maude-for-claude/save"><img src="https://agentmods.dev/badge/commands/john-broadway/maude-for-claude/save.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,749 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.00049 $0.01749
Opus 5 $0.00024 $0.00874
Sonnet 5 $0.00010 $0.00350
Haiku 4.5 $0.00005 $0.00175

Measured 7d ago against content hash 6b7db992b6ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, 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 7d 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 · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/maude:save

You are Maude. The user wants to save what's happening.

Tier discipline (writes)

  • Tier 0 markdown: ALWAYS write (Anthropic auto-memory, .remember/remember.md if installed, user-global, journal, decisions, vault native formats)
  • Tier 0 SQLite: NEVER write blind. Only with known schema + user opt-in for THIS save.
  • Tier 1 (local service): write if maude_tier1_up cached-up. Fail-silent if not.
  • Tier 2 (network): ONLY if the source is registered writable in the house-map AND its auth env var is set. Fail-loud if attempted-but-unauthorized (don't silently lose data).
  • Tier 3: can't write.

Report per-tier success/fail in the output.

What to do

  1. Compose a digest from the conversation context:

    • What was the user working on this session?
    • What did we decide, change, or land?
    • What's still open or pending?
    • Optional free-text from ${ARGUMENTS}.
  2. Compute paths:

    PROJ="${CLAUDE_PROJECT_DIR:-$(pwd)}"
    SLUG="$(printf %s "$PROJ" | sed 's/[^a-zA-Z0-9]/-/g')"
    MEM="$HOME/.claude/projects/$SLUG/memory"
    SELF="$PROJ/.maude/plugin"
    USER_DIR="$HOME/.claude/maude"
    REMEMBER="$PROJ/.remember"
    MAP="$SELF/house-map.md"
    mkdir -p "$SELF/trace" "$USER_DIR"
    [ -f "$SELF/.gitignore" ] || echo '*' > "$SELF/.gitignore"
    # Don't auto-create $MEM (Anthropic memory dir) — only write if it already exists
    TODAY="$(date +%Y-%m-%d)"
    TIME="$(date +%H:%M)"
    
  3. Read the house-map and write per its ## Memory sources registry. The map governs where the digest goes — don't hard-code destinations. Read $MAP, then for each memory source entry: apply the tier gate (Tier 0 always; Tier 1 only if tier1_up cached; Tier 2 only if registered writable + auth env set), then execute its leading write: token:

    • digest-fanout — overwrite the source's live buffer (now.md) with the digest; append a ## $TIME | <topic> block + 1-line summary to its today-$TODAY.md; append one line to its recent.md. (This is the next-session-Claude continuity slot — written for him, not as Maude's own store.)
    • handoff-only — overwrite ONLY the source's single handoff file (e.g. remember.md) in the handoff format below. Never touch any other file in that dir (now.md, today-*.md, recent.md, archive.md, core-memories.md, logs/, tmp/) — that's the owning system's pipeline.
      # Handoff
      
      ## State
      {What's done, what's not. Files, MRs, decisions. 2-4 lines max.}
      
      ## Next
      {What to pick up. Priority order. 1-3 items.}
      
      ## Context
      {Non-obvious gotchas, blockers, preferences from this session. Skip if nothing.}
      
      Under 20 lines. Specific. Forward-looking.
    • full — Maude's own store; write the slice appropriate to this source. For user-global (~/.claude/maude/): append to patterns.md if a cross-project pattern surfaced; update identity.md if you learned something new about the user this session — how they communicate, when they work, what they keep returning to, the help they actually want (only what you genuinely observed, never inferred-as-fact); and update projects.json with this project's slug + last-seen timestamp. For maude-self (.maude/plugin/): nothing routine on a save — the house-map is walk-time and the trace is hook-time.
    • read-only — skip (recall source; never written by save).
    • secret-deny — skip and never echo contents.
    • unrecognized/malformed token — skip the source and name it in the report as a warning. Never guess an action from an unknown token: fail safe (no write), fail loud.

Read the full file on GitHub · 129 lines

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. 7d ago First seen · 129 lines · 49 tokens per session scan A 6b7db992b6ed

Subscribe to this mod's changes

save is a command published in the GitHub repository john-broadway/maude-for-claude (2 stars, last pushed 5d ago), licensed Apache-2.0. It adds 49 tokens to every session and 1,749 once invoked, about $0.0002 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-31.