pin

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

1|Updated Jan 13, 2022
One-click install
npx skills add https://github.com/jayho-k/TIL --skill pin-jayho-k
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pin
Source: https://github.com/jayho-k/TIL/tree/main/AI/mem0/code/mem0_code_analize/mem0/integrations/pi-agent-plugin/skills/pin
Command: npx skills add https://github.com/jayho-k/TIL --skill pin-jayho-k

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 prepend a [PINNED] marker so dream consolidation skips it during pruning. - Pin new content: Store new text directly as a pinned memory when it is not yet saved. - Unpin memories: Remove the [PINNED] marker to make a memory eligible for pruning again. - Use Case: A user wants their dietary restriction or a major project decision to persist forever; pinning it guarantees the memory survives automated cleanup cycles. ## 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 using the mem0_memory tool with action search, select it from the numbered results, then add a new memory with the [PINNED] prefix and delete the original. 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 becomes eligible for pruning again.

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 pinned memory directly without needing an existing entry.

What happens to pinned memories during dream consolidation?

Pinned memories are skipped during pruning. The [PINNED] prefix acts as a marker that tells the dream consolidation process to exclude those entries from removal, preserving them indefinitely.

When should I not pin a memory?

Avoid pinning temporary, outdated, or low-value information, since pinned memories are never pruned and accumulate over time. Reserve pinning for core preferences, important decisions, and immutable personal facts.