pin

Pins or unpins memories to protect them from pruning during dream consolidation.

Updated Jun 29, 2026
One-click install
npx skills add https://github.com/nhatnguyen1122/Agent-Memory-Eval --skill pin-nhatnguyen1122
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pin
Source: https://github.com/nhatnguyen1122/Agent-Memory-Eval/tree/main/mem0/integrations/pi-agent-plugin/skills/pin
Command: npx skills add https://github.com/nhatnguyen1122/Agent-Memory-Eval --skill pin-nhatnguyen1122

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Important memories such as core preferences, key decisions, or immutable personal facts can be removed during dream consolidation pruning. This Skill marks critical memories so they are never deleted. ## Core Features & Use Cases - Pin existing memories: Search for a memory by query or ID, then mark it with a [PINNED] prefix so consolidation skips it. - Pin new content: Store new text directly as a pinned memory in one step. - Unpin memories: Remove the pinned marker when a memory no longer needs protection. - Use Case: A user wants their dietary restriction or a major project decision to persist forever; pinning ensures the memory survives every pruning cycle. ## Quick Start Pin the memory about my preferred programming language so it is never removed during consolidation.

Frequently Asked Questions about pin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I pin a memory in mem0?

Search for the memory with the mem0_memory tool using action search, then re-add its content with a [PINNED] prefix and delete the original entry. The marker tells dream consolidation to skip it during pruning.

How do I unpin a pinned memory?

Find the pinned memory by search or ID, create a new memory with the same content but without the [PINNED] prefix, then delete the pinned version. The memory remains stored but is no longer protected from pruning.

Can I pin text that is not stored as a memory yet?

Yes. Use the mem0_memory tool with action add and content formatted as [PINNED] followed by your text. This creates a new memory that is immediately protected from consolidation pruning.

What happens to pinned memories during dream consolidation?

Pinned memories are skipped during pruning because the [PINNED] prefix signals the consolidation process to exclude them. They persist indefinitely until explicitly unpinned or deleted.

When should I not pin a memory?

Avoid pinning temporary or frequently changing information, since pinned memories are never pruned and can accumulate stale data. Reserve pinning for stable facts like core preferences, major decisions, or immutable personal details.