Memory Tool

Give Claude agents persistent memory across conversations with the Claude API memory tool — a client-side file store under /memories that Claude reads and writes through commands your application executes. Covers setup, the six commands, SDK helpers, path-traversal protection, and pairing memory with compaction or context editing. Use this skill when an agent must remember preferences, project state, or decisions between sessions, when implementing a memory handler, or when reviewing a memory implementation for security. Activate when: Claude memory tool, memory_20250818, agent memory, persistent memory, /memories directory, cross-session state, long-term memory agent, BetaLocalFilesystemMemoryTool.

latestaiagents Updated 6 repo stars

File contents

latestaiagents/agent-skills commit 8014eb5538

Frequently asked questions

npx get-skill add latestaiagents/memory-tool-2