memory-management

Manage and persist agent memory across tasks using a READ-UPDATE protocol.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/Ayub-Khan/immortal_agent_swarm --skill memory-management-ayub-khan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-management
Source: https://github.com/Ayub-Khan/immortal_agent_swarm/tree/main/.agents/skills/memory-management
Command: npx skills add https://github.com/Ayub-Khan/immortal_agent_swarm --skill memory-management-ayub-khan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Manage and persist agent memory across tasks using a READ-UPDATE protocol. This approach ensures memory persistence, context optimization, and cross-task learning.

Core Features & Use Cases

  • Pre-task memory retrieval and identity loading
  • Post-task memory updates to experiences, learnings, and relationships
  • Automatic memory activation for new tasks and maintenance

Quick Start

Initialize memory by reading identity.md, experiences.md, learnings.md, and relationships.md, then enable automatic pre-task reads for new tasks.

Frequently Asked Questions about memory-management

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

FAQPage Schema
How do I persist agent memory across multiple tasks?

You can persist agent memory across multiple tasks by applying a READ-UPDATE protocol that handles pre-task retrieval and post-task updates. This ensures context, identity, and learned insights remain coherent between sessions.

How does the READ-UPDATE protocol work for context management?

The READ-UPDATE protocol manages context by reading identity, experiences, learnings, and relationships before a task starts, then updating these files with new insights after the task completes to maintain memory persistence.

What is the best way to maintain collaboration history across multiple agents?

Maintaining collaboration history across multiple agents requires a memory persistence system that stores shared experiences, learnings, and relationships, allowing all agents to read and update a common context.

Can I enable automatic memory activation for new agent tasks?

Yes, you can enable automatic memory activation for new tasks by setting up auto-activation hooks. These hooks trigger pre-task reads to load identity and context automatically before processing begins.

Do I need specific markdown templates to initialize agent memory?

Yes, initializing agent memory requires reading specific markdown templates like identity.md, experiences.md, learnings.md, and relationships.md to establish the baseline context and validate the memory structure.

Why does agent context break down without memory persistence?

Agent context breaks down without memory persistence because there is no mechanism to carry experiences, learnings, and relationships forward, causing the agent to lose its identity and previously acquired knowledge across tasks.