搜索

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 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install 1kalin/afrexai-agent-memory

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/1kalin/afrexai-agent-memory
Version
—
Commit
a3a3bfadcdfb3f771e201e00c576d11cfc905a24
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

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

来源内容

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...

相关技能

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...