AL

Agent Durable Memory and Correction Loop

Add a persistent memory file and a self-correction log so a Claude agent stops re-forgetting your rules every week.

AI Systemsai-systemsp4
Or just install the prompt above — no subscription needed

About this skill


name: agent-durable-memory-loop description: Add a persistent memory file and a self-correction log so a Claude agent stops re-forgetting your rules every week. Use when working on agent durable memory and correction loop.

Agent Durable Memory and Correction Loop

Autonomous agents summarize old messages to keep the context window small, which almost always deletes the exact rules you spent hours teaching them. This skill installs two patterns: a persistent memory file that captures decisions before compression, and a correction log that appends every rule change so behavior improves over time. Use once per long-running agent to stop the day-7 memory-loss failure.

What you get

  • memory.md template
  • Pre-compression extraction prompt
  • corrections.md log template
  • Retrieval prompt the agent runs at conversation start
  • Audit checklist
  • Weekly rule-drift report

Customize your output

  • Categories to track: voice, brand, workflows, contacts
  • Memory file location: dir
  • Retrieval trigger phrase: default, custom
  • Compression threshold (tokens): 50k, 80k, 120k
  • Redaction rules: names, emails, none
  • Backup cadence: daily, weekly

Example output

'Installed memory.md and corrections.md. Extraction hook fires when session tokens > 80k. Retrieval loads top-20 rules on new session. First correction logged: never use em dashes in customer emails.'

Best for

Anyone running a persistent agent (Claude Code, OpenClaude, custom SDK loop) that keeps forgetting preferences.


Note: Distinct from cross-session-project-memory in that this is for standalone autonomous agents, not Claude Code project state. High confidence.

Source: OpenClaude on Hostinger (unnamed) · https://www.youtube.com/watch?v=iSLruYDGT58 Category: AI Systems · Priority: P4

SKILL.md preview

---
name: agent-durable-memory-loop
description: Add a persistent memory file and a self-correction log so a Claude agent stops re-forgetting your rules every week. Use when working on agent durable memory and correction loop.
---

# Agent Durable Memory and Correction Loop

Autonomous agents summarize old messages to keep the context window small, which almost always deletes the exact rules you spent hours teaching them. This skill installs two patterns: a persistent memory file that captures decisions before compression, and a correction log that appends every rule change so behavior improves over time. Use once per long-running agent to stop the day-7 memory-loss failure.

## What you get

- memory.md template
- Pre-compression extraction prompt
- corrections.md log...