memory-loop

Automate staged memory consolidation cycles for persistent memory systems.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ste-bah/archon --skill memory-loop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-loop
Source: https://github.com/ste-bah/archon/tree/main/.claude/skills/memory-loop
Command: npx skills add https://github.com/ste-bah/archon --skill memory-loop

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the memory consolidation loop for persistent memory systems, ensuring periodic refinement of stored memories by cycling through staged processing (decay, duplicates, merge, relationships, and briefing) and updating the consolidation cursor.

Core Features & Use Cases

  • Stage orchestration: coordinates five consolidation stages (Decay, Duplicates, Merge, Relationships, Briefing) in a deterministic cycle.
  • Persistent memory hygiene: improves memory graph quality by pruning, de-duplication, and structured linking based on tags and importance.
  • Automated reporting: emits concise progress updates and maintains a persistent cursor to resume cycles reliably.

Quick Start

Use the memory-loop to run the consolidation cycle every 30 minutes.

Frequently Asked Questions about memory-loop

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

FAQPage Schema
How do I automate memory consolidation for long-running agents?

Automated memory consolidation runs a deterministic cycle through decay, duplicates, merge, relationships, and briefing stages to refine persistent memory graphs. It updates a consolidation cursor each cycle so long-running agents resume reliably without manual cleanup.

What is memory consolidation in a persistent memory system?

Memory consolidation is the staged processing of stored memories to improve graph quality. It applies decay to prune stale entries, deduplicates overlapping memories, clusters related items, discovers relationships based on tags, and generates briefings for ongoing agent context.

How do I set up a persistent memory loop that runs every 30 minutes?

Run the memory-loop on a 30-minute interval to trigger the consolidation cycle. It requires a consolidation cursor, stage controller logic, and a .persistent-memory directory for reporting, coordinating all five stages automatically each cycle.

Can I run memory deduplication and relationship discovery without manual intervention?

Yes, the consolidation loop coordinates deduplication and relationship discovery automatically as stages two and four. The stage controller applies deterministic logic based on tags and importance, pruning duplicates and linking related memories without manual intervention.

Does memory consolidation work with memory graphs for long-running agents?

Yes, the consolidation loop is designed for long-running agents and memory graphs. It performs staged decay, deduplication, clustering, and relationship discovery to maintain persistent memory hygiene, then emits progress updates and updates the cursor for reliable resumption.

Why does my persistent memory system need a consolidation cursor?

A consolidation cursor tracks the last processed position in the memory loop, allowing staged cycles to resume reliably after interruptions. Without it, long-running agents risk reprocessing memories or skipping consolidation stages during decay, merge, and relationship discovery.