Rechercher

PythonReactSEOPDF
OpenClaw

Agent Memory Architecture

Complete zero-dependency memory system for AI agents — file-based architecture, daily notes, long-term curation, context management, heartbeat integration, and memory hygiene. No APIs, no databases, no external tools. Works with any agent framework.

1kalin0 installations selon la source☆ 0 Étoiles du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install 1kalin/afrexai-agent-memory

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

Instructions

Agent Memory Architecture

Complete memory system for AI agents using only files. No APIs. No databases. No external dependencies. Just smart file structures and disciplined practices that give your agent perfect recall.


1. Memory Architecture Overview

workspace/
├── MEMORY.md              ← Long-term curated memory (the brain)
├── ACTIVE-CONTEXT.md      ← Hot working memory (what matters NOW)
├── AGENTS.md              ← Operating manual (how you work)
├── memory/
│   ├── 2026-01-15.md      ← Daily notes (raw event log)
│   ├── 2026-01-16.md
│   ├── heartbeat-state.json  ← Heartbeat tracking state
│   ├── topics/
│   │   ├── project-alpha.md  ← Topic-specific deep context
│   │   ├── client-acme.md
│   │   └── tech-stack.md
│   └── archive/
│       ├── 2025-Q4.md       ← Quarterly archive summaries
│       └── 2025-Q3.md
The 5 Memory Layers
Layer File Purpose Read Frequency Write Frequency
1. Hot ACTIVE-CONTEXT.md Current priorities, blockers, in-flight work Every session Multiple times/day
2. Warm MEMORY.md Curated long-term knowledge, decisions, people Every main session Weekly curation
3. Daily memory/YYYY-MM-DD.md Raw event log, conversations, actions taken Today + yesterday Throughout the day
4. Topic memory/topics/*.md Deep context on specific subjects When topic comes up As knowledge grows
5. Cold memory/archive/*.md Historical summaries, rarely accessed On explicit search Quarterly rollup
Core Principle: Write It Down

Memory is limited. Files are permanent.

  • "Mental notes" don't survive session restarts. Files do.
  • If someone says "remember this" → write to a file
  • If you learn a lesson → update the relevant file
  • If you make a mistake → document it so future-you doesn't repeat it
  • Text > Brain 📝

2. Layer 1: Hot Memory (ACTIVE-CONTEXT.md)

Your workin...

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/1kalin/afrexai-agent-memory
Version
—
Commit
a3a3bfadcdfb3f771e201e00c576d11cfc905a24
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

README

Agent Memory Architecture 🧠

Complete zero-dependency memory system for AI agents. No APIs, no databases, no external tools — just smart file structures that give your agent perfect recall.

What This Skill Does

  • 5-Layer Memory Architecture — hot, warm, daily, topic, and archive layers
  • Session Startup Protocol — what to read and when, optimized for token cost
  • Write-Ahead Protocol — never lose critical info mid-session
  • Memory Hygiene Schedule — daily, weekly, monthly, quarterly maintenance
  • Context Window Management — progressive loading, overflow handling, handoff protocol
  • Heartbeat Integration — automated memory maintenance during agent wake-ups
  • Security Rules — what to store, what never to store, privacy in shared contexts
  • Migration Guides — from no system, from MEMORY.md-only, from external tools

Install

clawhub install afrexai-agent-memory-system

Quick Start

/memory-status   → Check your memory system health
/memory-review   → Run weekly review and curation
/remember [fact] → Instantly save something important
/handoff         → Prepare for clean session transition

Why Zero Dependencies?

Every other memory skill requires APIs, databases, or cloud services. This one works with plain markdown files. Benefits:

  • $0 cost — no API calls, no subscriptions
  • Works offline — no internet required
  • No vendor lock-in — your files, your control
  • Any framework — OpenClaw, Cursor, Claude Code, anything
  • Instant setup — create a few .md files and go

⚡ Level Up

Want production-ready agent architectures? Our $47 Context Packs include complete agent configurations for your industry:

👉 Browse Context Packs

🔗 More Free Skills by AfrexAI

Contenu extrait

SKILL.md
# Agent Memory Architecture

Complete memory system for AI agents using only files. No APIs. No databases. No external dependencies. Just smart file structures and disciplined practices that give your agent perfect recall.

---

## 1. Memory Architecture Overview

```
workspace/
├── MEMORY.md              ← Long-term curated memory (the brain)
├── ACTIVE-CONTEXT.md      ← Hot working memory (what matters NOW)
├── AGENTS.md              ← Operating manual (how you work)
├── memory/
│   ├── 2026-01-15.md      ← Daily notes (raw event log)
│   ├── 2026-01-16.md
│   ├── heartbeat-state.json  ← Heartbeat tracking state
│   ├── topics/
│   │   ├── project-alpha.md  ← Topic-specific deep context
│   │   ├── client-acme.md
│   │   └── tech-stack.md
│   └── archive/
│       ├── 2025-Q4.md       ← Quarterly archive summaries
│       └── 2025-Q3.md
```

### The 5 Memory Layers

| Layer | File | Purpose | Read Frequency | Write Frequency |
|-------|------|---------|----------------|-----------------|
| **1. Hot** | ACTIVE-CONTEXT.md | Current priorities, blockers, in-flight work | Every session | Multiple times/day |
| **2. Warm** | MEMORY.md | Curated long-term knowledge, decisions, people | Every main session | Weekly curation |
| **3. Daily** | memory/YYYY-MM-DD.md | Raw event log, conversations, actions taken | Today + yesterday | Throughout the day |
| **4. Topic** | memory/topics/*.md | Deep context on specific subjects | When topic comes up | As knowledge grows |
| **5. Cold** | memory/archive/*.md | Historical summaries, rarely accessed | On explicit search | Quarterly rollup |

### Core Principle: Write It Down

**Memory is limited. Files are permanent.**

- "Mental notes" don't survive session restarts. Files do.
- If someone says "remember this" → write to a file
- If you learn a lesson → update the relevant file
- If you make a mistake → document it so future-you doesn't repeat it
- **Text > Brain** 📝

---

## 2. Layer 1: Hot Memory (ACTIVE-CONTEXT.md)

Your workin...
README
# Agent Memory Architecture 🧠

Complete zero-dependency memory system for AI agents. No APIs, no databases, no external tools — just smart file structures that give your agent perfect recall.

## What This Skill Does

- **5-Layer Memory Architecture** — hot, warm, daily, topic, and archive layers
- **Session Startup Protocol** — what to read and when, optimized for token cost
- **Write-Ahead Protocol** — never lose critical info mid-session
- **Memory Hygiene Schedule** — daily, weekly, monthly, quarterly maintenance
- **Context Window Management** — progressive loading, overflow handling, handoff protocol
- **Heartbeat Integration** — automated memory maintenance during agent wake-ups
- **Security Rules** — what to store, what never to store, privacy in shared contexts
- **Migration Guides** — from no system, from MEMORY.md-only, from external tools

## Install

```bash
clawhub install afrexai-agent-memory-system
```

## Quick Start

```
/memory-status   → Check your memory system health
/memory-review   → Run weekly review and curation
/remember [fact] → Instantly save something important
/handoff         → Prepare for clean session transition
```

## Why Zero Dependencies?

Every other memory skill requires APIs, databases, or cloud services. This one works with plain markdown files. Benefits:

- **$0 cost** — no API calls, no subscriptions
- **Works offline** — no internet required
- **No vendor lock-in** — your files, your control
- **Any framework** — OpenClaw, Cursor, Claude Code, anything
- **Instant setup** — create a few .md files and go

## ⚡ Level Up

Want production-ready agent architectures? Our **$47 Context Packs** include complete agent configurations for your industry:

👉 [Browse Context Packs](https://afrexai-cto.github.io/context-packs/)

## 🔗 More Free Skills by AfrexAI

- [afrexai-agent-engineering](https://clawhub.com/skills/afrexai-agent-engineering) — Complete agent design system
- [afrexai-productivity-system](https://clawhub.com/skills...

Skills associés

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

dojo.md

edholofy

University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning req...

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...