memory-refresh

Archive session files and convert recurring knowledge into summaries.

157|28|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/Fr-e-d/GAAI-framework --skill memory-refresh-fr-e-d
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-refresh
Source: https://github.com/Fr-e-d/GAAI-framework/tree/main/.gaai/core/skills/cross/memory-refresh
Command: npx skills add https://github.com/Fr-e-d/GAAI-framework --skill memory-refresh-fr-e-d

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the challenge of ever-growing AI memory, which can lead to performance degradation and increased costs. It ensures that memory remains efficient, relevant, and manageable.

Core Features & Use Cases

  • Memory Archiving: Safely archives raw session files, preventing context window bloat.
  • Knowledge Summarization: Converts recurring or validated information into concise summary files for long-term retention.
  • Index Maintenance: Updates the memory index to accurately reflect the current state of active and archived memory.
  • Use Case: After a complex development sprint, activate this skill to clean up old session data, summarize key decisions made, and ensure the memory index is up-to-date, preparing for the next phase of work.

Quick Start

Run memory refresh to archive old sessions and summarize key decisions.

Frequently Asked Questions about memory-refresh

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

FAQPage Schema
How do I optimize AI agent memory when session files bloat the context window?

To optimize AI agent memory, you can archive raw session files and convert recurring knowledge into concise summaries. This prevents context window bloat while ensuring long-term information retention and keeping the memory index current.

What is the best way to archive AI session files for active projects?

Archiving AI session files involves safely moving raw session data out of the active memory directory. This process prevents context window bloat and updates the memory index to accurately reflect the division between active and archived project states.

How does knowledge summarization work for long-term AI memory retention?

Knowledge summarization converts recurring or validated session information into concise summary files. This mechanism retains essential long-term project decisions without consuming active memory space or degrading AI performance.

Do I need filesystem access to perform memory management and update the memory index?

Yes, filesystem access is required to read and write to memory directories and update index files. The memory management process directly manipulates these directories to archive sessions and store generated knowledge summaries.

When should I run a memory refresh on my AI agent's memory directory?

You should run a memory refresh after a complex development sprint or when active project memory grows large. This cleans up old session data, summarizes key decisions, and prepares optimized memory for the next phase of work.

Why does AI performance degrade without periodic memory maintenance?

AI performance degrades without periodic memory maintenance because ever-growing session files bloat the context window. Archiving old sessions and maintaining an updated memory index ensures memory remains efficient, relevant, and manageable.