save

A command for saving agent output into organized workspace files, with separate locations for company information, memory, artifacts, and commands.

In plain words
What is it for?
Use it to save emails, sequences, PRDs, specifications, call preparation, templates, and other generated artifacts.
Why use it?
It prevents saved content from being placed in the wrong directory and preserves existing file content when adding notes.

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/bundl-ai/bundl-cli/save
Clone the repo
git clone --depth 1 https://github.com/Bundl-AI/bundl-cli
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 361 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.00000 $0.00361
Opus 5 $0.00000 $0.00180
Sonnet 5 $0.00000 $0.00072
Haiku 4.5 $0.00000 $0.00036

Measured 2d ago against content hash 35941c76cb7e, 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.

workspace/commands/save.md · 30 lines

What it actually says

Path rules — read first

  • Company files: workspace/company/[name].md NEVER workspace/[name].md (wrong) ALWAYS workspace/company/[name].md (correct)
  • Memory files: workspace/memory/[name].md
  • Artifact files: workspace/artifacts/[type]/[name].md
  • Commands files: workspace/commands/[name].md
  • Use >> to append when the file already has real content. If the file still only has the stub "# Title" and "Not yet defined.", use > to overwrite with the title, a blank line, and your content (do not leave the stub). Exception: /save always uses > for new artifact files.
  • Maximum 2 tool calls for /note: call 1 cat target file, call 2 echo >> append (or echo > if file is still stub-only). Do not mkdir, do not check if file exists. Files are guaranteed to exist.

/save [optional name]

What it does

Saves the agent's most recent output as a named artifact. 2-3 tool calls max.

Identify artifact type

email or sequence → workspace/artifacts/sequences/ PRD or spec → workspace/artifacts/prds/ call prep → workspace/artifacts/call-prep/ template → workspace/artifacts/templates/ anything else → workspace/artifacts/

Exact steps

If name provided in args: use it. If no name: ask once "What should I call this?"

  1. Determine folder from type above
  2. echo "[content]" > workspace/artifacts/[type]/[name].md (> is correct here — new file, not appending)

Confirm

"Saved to artifacts/[type]/[name].md"

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 · 30 lines · 0 tokens per session scan A 35941c76cb7e

Subscribe to this mod's changes

save is a command published in the GitHub repository Bundl-AI/bundl-cli (7 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 361 tokens. 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.