Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

agent-memory-architectAgent 内存架构师

Agent Skill

agent-memory-architect 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

13,077

周安装

556

GitHub Stars

公开资料未说明

下载量

4,581
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agent-memory-architect(Agent 内存架构师)
来源仓库:https://github.com/ironmanc2014/agent-memory-architect
安装命令:
openclaw skills install agent-memory-architect
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install agent-memory-architect

简介

构建分层(HOT/WARM/COLD)代理内存架构。

  • 支持自动修正学习与自我反思机制。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 适用于多代理共享内存与知识沉淀。
  • 涉及存储路由与冷热数据调度逻辑。
  • 建议根据负载调整各层容量阈值。agent-memory-architect 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
agent-memory-architect
description
>

Agent Memory Architect

Persistent, self-organizing memory for AI agents. Learn from corrections, remember preferences, share knowledge across agents, and get smarter over time.

Quick Start

Automated Setup

Run the bootstrap script to initialize everything:

python <skill-dir>/scripts/bootstrap.py

This creates the full directory structure, hot.md, corrections.log, and index.md — ready to go.

Manual Setup

If you prefer manual setup:

mkdir -p ~/agent-memory/{projects,domains,agents,archive}

Then create ~/agent-memory/hot.md:

# HOT Memory — Always Loaded

## Preferences
<!-- User-confirmed rules. Never decay. -->

## Patterns
<!-- Observed 3+ times. Decay after 30 days unused. -->

## Recent
<!-- New corrections. Promote after 3x confirmation. -->

Create ~/agent-memory/corrections.log:

# Corrections Log (last 50)

<!-- Format:
[DATE] WHAT → WHY
  Type: preference|technical|workflow|communication
  Count: N/3
  Status: pending|confirmed|archived
-->

Done. Memory is active. Everything below is automatic.

Architecture

Three-tier storage inspired by CPU cache hierarchies:

🔥 HOT  — hot.md (≤100 lines, always loaded)
    Confirmed preferences + high-frequency patterns. Never decays.

🌡️ WARM — projects/, domains/, agents/ (≤200 lines each, loaded on context)
    Per-project and per-domain knowledge. Decays after 90 days unused.

❄️ COLD — archive/ (unlimited, loaded on explicit query)
    Historical reference. Never auto-deleted.

See references/architecture.md for full design details including file formats, lifecycle rules, namespace inheritance, and compaction pipelines.

How It Works

Detection — What Triggers Learning

SignalConfidenceAction
"No, do X instead"HighLog correction
"I told you before"HighBump priority, flag repeated
"Always/Never do X"ConfirmedPromote to preference
Same correction 3xAutoAsk to confirm as rule
"For this project…"ScopedWrite to projects/{name}.md

Ignore — What Does NOT Trigger Learning

  • Silence (never infer from no response)
  • One-time instructions ("do X now")
  • Hypotheticals ("what if…")
  • Third-party preferences ("John likes…")
  • Context-specific ("in this file…")

Auto-Promotion / Demotion

RuleTrigger
Promote to HOTPattern applied 3x in 7 days
Demote to WARMUnused 30 days
Archive to COLDUnused 90 days
DeleteNever (unless user says "forget X")

Self-Reflection

After completing significant work, evaluate:

  1. Did it meet expectations? — Compare outcome vs intent
  2. What could be better? — Identify improvements
  3. Is this a pattern? — If yes, log to corrections

Log format:

CONTEXT: [task type]
REFLECTION: [what I noticed]
LESSON: [what to do differently]

Applying Memory

When using a learned pattern, always cite the source:

Using bullet format (from hot.md:12, confirmed 2026-01)

Conflict Resolution

  1. Most specific wins: project > domain > global
  2. Most recent wins (same level)
  3. If ambiguous → ask user

User Commands

Say thisAgent does
"What do you know about X?"Search all tiers, report findings
"Show my patterns"Display hot.md contents
"Memory stats"Show tier sizes, health, recent activity
"Forget X"Remove from all tiers (confirm first)
"Export memory"ZIP all memory files
"记住这个" / "Remember this"Log to corrections or promote to preference

Memory Stats

On "memory stats", report:

📊 Agent Memory

🔥 HOT: hot.md — X entries (≤100 line limit)
🌡️ WARM: projects/ (N files), domains/ (N files)
❄️ COLD: archive/ (N files)

Recent 7 days: X corrections, Y promotions, Z demotions

Multi-Agent Setup

For teams with multiple agents, see references/multi-agent.md. Each agent gets its own HOT memory while sharing WARM knowledge:

~/agent-memory/
├── hot.md              # Main agent HOT (always loaded)
├── agents/
│   ├── coder.md        # Coder agent HOT
│   ├── writer.md       # Writer agent HOT
│   └── daily.md        # Daily agent HOT
├── domains/            # Shared domain knowledge
├── projects/           # Per-project patterns
└── archive/            # Decayed patterns

Security

See references/security.md for complete boundaries.

Never store: passwords, API keys, financial data, health info, biometrics. Store with caution: work context (decay after project ends), schedules (general patterns only).

Compaction

When hot.md exceeds 100 lines:

  1. Merge similar corrections into single rules
  2. Archive unused patterns
  3. Summarize verbose entries
  4. Never lose confirmed preferences

Troubleshooting

ProblemCauseSolution
Memory not loadingDirectory doesn't existRun bootstrap script or mkdir -p ~/agent-memory
hot.md too largeOver 100 lines, slow loadingRun compaction: merge similar entries, archive unused
Corrections not promotingHaven't hit 3x thresholdRepeat correction or say "Always do X" to force
Agent forgot a preferenceEntry decayed to COLDRetrieve from archive/ and re-add to hot.md
Multi-agent conflictsTwo agents learned opposite rulesCheck agents/*.md for conflicts, set explicit override
"Memory stats" shows 0Fresh install, no corrections yetNormal — memory builds over time from interactions
Permission denied on ~/agent-memoryOS file permissionschmod -R 755 ~/agent-memory (Linux/Mac)

Scope

This skill ONLY:

  • Learns from explicit user corrections and self-reflection
  • Stores preferences in local files (~/agent-memory/)
  • Reads its own memory files

This skill NEVER:

  • Accesses external services
  • Infers preferences from silence
  • Stores sensitive data
  • Modifies its own SKILL.md

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

86.51%
按下载量换算3,963

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills