save-global

save-global is a command for coding agents from SukinShetty/Nemp-memory. It costs 7 tokens per session (721 once invoked), scanned A, original, MIT.

A command for saving a memory note in global storage rather than in one project. Global notes are kept in ~/.nemp/memories.json and can be available across all projects.

In plain words
What is it for?
Use /nemp:save-global with a unique key and value to store editor preferences, Git habits, tool choices, or other facts that apply to every project.
Why use it?
It prevents cross-project preferences and working habits from being tied to a single repository. This is useful for information that should remain available wherever you work.

Command

Part of the Nemp-memory plugin — 1 skill, 24 commands, 1 hook shipped together

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/sukinshetty/nemp-memory/save-global
Clone the repo
git clone --depth 1 https://github.com/SukinShetty/Nemp-memory

Or install Nemp-memory, the plugin that ships this one along with the rest of its 1 skill, 24 commands, 1 hook.

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-global

README.md
[![agentmods](https://agentmods.dev/badge/commands/sukinshetty/nemp-memory/save-global.svg)](https://agentmods.dev/commands/sukinshetty/nemp-memory/save-global)
Your own site
<a href="https://agentmods.dev/commands/sukinshetty/nemp-memory/save-global"><img src="https://agentmods.dev/badge/commands/sukinshetty/nemp-memory/save-global.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 721 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.00007 $0.00721
Opus 5 $0.00003 $0.00360
Sonnet 5 $0.00001 $0.00144
Haiku 4.5 $0.00001 $0.00072

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

Security

Grade A, and why

save-global 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 3d 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-global.md · 106 lines

How it starts

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

/nemp:save-global

Save a memory to global storage that persists across all projects.

Usage

/nemp:save-global <key> <value>

Arguments

  • key: A unique identifier for this memory (use kebab-case, e.g., preferred-editor, git-workflow)
  • value: The content to remember (string, can be multi-word)

Instructions

When the user invokes /nemp:save-global, follow these steps:

1. Parse Arguments

Extract the key (first argument) and value (everything after the key).

2. Storage Location

Always use global storage: ~/.nemp/memories.json

This memory will be available in ALL projects.

3. Ensure Directory Exists

Create the ~/.nemp directory if it doesn't exist:

mkdir -p "$HOME/.nemp"

4. Read or Initialize Storage

Check if the storage file exists and read it:

if [ -f "$HOME/.nemp/memories.json" ]; then
  cat "$HOME/.nemp/memories.json"
else
  echo '{"memories":[]}' > "$HOME/.nemp/memories.json"
  echo '{"memories":[]}'
fi

5. Create Memory Entry

Create a memory object with this structure:

{
  "key": "<user-provided-key>",
  "value": "<user-provided-value>",
  "created": "<ISO-8601-timestamp>",
  "updated": "<ISO-8601-timestamp>",
  "projectPath": null,
  "tags": [],
  "scope": "global"
}

6. Update or Insert

  • If a memory with the same key exists, UPDATE it (preserve created, update updated and value)
  • If no memory with that key exists, INSERT the new memory

7. Write Back to Storage

Write the updated memories array back to ~/.nemp/memories.json using the Write tool.

8. Confirm to User

Tell the user:

  • Memory saved globally: <key>
  • Storage location: ~/.nemp/memories.json
  • Total global memories: N

Example

User: /nemp:save-global preferred-editor VS Code with Vim keybindings and Monokai theme

Response:

Memory saved globally: preferred-editor
  Value: "VS Code with Vim keybindings and Monokai theme"
  Location: ~/.nemp/memories.json (global)
  Total global memories: 3

Read the full file on GitHub · 106 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. 3d ago First seen · 106 lines · 7 tokens per session scan A 6976f9208d5e

Subscribe to this mod's changes

save-global is a command published in the GitHub repository SukinShetty/Nemp-memory (128 stars, last pushed 2mo ago), licensed MIT. It adds 7 tokens to every session and 721 once invoked, about $0.0000 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.