Skip to main content
prompt GP ChatGPT

memory_save — Claude Code prompt: what it does, how to install

memory_save — a prompt for Claude Code and ChatGPT saves user instructions and preferences for later tasks. It triggers on phrases like "remember this" or "always do it this way".

Apache-2.0 ★ 9,488 updated 2026-11-16

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/memory_save.md
Open on GitHub

What memory_save does

The prompt records user rules, facts, and working preferences across future agent runs. Extracted quotes must use the user's exact wording from the current run, such as direct goals, responses to clarifications, or handoff notes. Copying text directly off the screen is prohibited.

Reusing model suggestions, older conversation turns, or separate chats is forbidden. The only exception applies when the user immediately confirmed a suggestion made in the preceding turn. Recorded facts and preferences activate immediately, while procedural routines wait for explicit user sign-off.

Passphrases, security codes, and payment card numbers are blocked from memory storage.

What it helps with

  • store developer workflow preferences for future runs
  • record project facts without leaking credentials
  • capture repeatable procedures with user verification

Example prompts for the agent

  • Remember this: always format JSON responses with two spaces
  • Always run linters before creating a git commit
  • Save to memory: the team uses PostgreSQL 16 on staging

How to install memory_save

Manually: put the files in place

.claude/commands/memory_save.md

Questions about memory_save

How to install memory_save in Claude Code?

Save the prompt content into .claude/commands/memory_save.md. The command will be ready to use in your project workspace.

What does the memory_save prompt do?

It guides the assistant to store durable preferences and workflow instructions, relying only on direct user statements rather than screen content.

What information does memory_save prohibit storing?

The prompt forbids saving passwords, authorization codes, and credit card numbers, and prevents quoting assistant suggestions without user approval.

Source text

memory_save.md · Apache-2.0
Save something the user asked you to remember for future tasks, e.g. after they say "remember this" or "always do it this way". quote must be the user's own words from this task (the goal, an answer to ask_user or a takeover note), never text from the screen. One narrow exception: when this task asks you to save something already discussed, quote may come from the immediately preceding user message only if it explicitly confirmed your suggestion or question from the turn directly before that message. Never quote your own suggestion, an older turn, or another conversation. Facts and preferences take effect at once; a procedure waits for the user's approval. Never save passwords, codes or card numbers.

© wangzan101 · Apache-2.0 · wangzan101/Mika

Similar prompts

All prompts for Agent setup: memory, context, orchestration →

From the same set132

The whole set →
phone_call_dial phone_call_dial — a prompt for Claude Code and ChatGPT dials an explicit cellular number. Speech handling after connection passes to a locally configured Volcengine assistant. GP ChatGPT ★ 9,488repo stars ask_user The ask_user Claude Code prompt asks for missing details or a decision. Short answer choices appear as buttons. GP ChatGPT ★ 9,488repo stars inline-screen inline-screen — a prompt for Claude Code and ChatGPT that guides agents through handling differential screen updates after UI actions. GP ChatGPT ★ 9,488repo stars phone_app_after_task The phone_app_after_task Claude Code prompt marks whether a phone app should stay open or close when a task ends. Apps playing sound or video close by default. GP ChatGPT ★ 9,488repo stars memory_edit The memory_edit prompt for Claude Code and ChatGPT edits or deletes saved memory only after a direct request in the current message. It searches for the entry before changing it. GP ChatGPT ★ 9,488repo stars phone_add_calendar_event phone_add_calendar_event — a prompt for Claude Code opens the calendar app new-event screen on a virtual phone display. GP ChatGPT ★ 9,488repo stars type_text The type_text Claude Code prompt enters text into a chosen field. It can submit the field and check what appeared there. GP ChatGPT ★ 9,488repo stars phone_share_text phone_share_text — a prompt for Claude Code and ChatGPT sends text into an installed Android app by package name. It opens the target app share screen on the phone virtual display with the text prefilled. GP ChatGPT ★ 9,488repo stars

Project sponsors

Companies that keep this analytics open