adam-framework

GitHub

为OpenClaw代理提供5层持久化记忆架构,解决AI失忆与会话漂移问题。通过身份注入、实时搜索、神经图谱关联召回及夜间合并等机制,确保跨会话上下文连续性与推理一致性。

Trigger Scenarios

需要构建或配置具备长期记忆能力的AI代理 遇到AI在多轮对话中丢失上下文或身份不一致的问题 希望实现Agent的持久化存储与状态恢复

Install

npx skills add strangeadvancedmarketing/Adam --skill adam-framework -g -y
More Options

Use without installing

npx skills use strangeadvancedmarketing/Adam@adam-framework

指定 Agent (Claude Code)

npx skills add strangeadvancedmarketing/Adam --skill adam-framework -a claude-code -g -y

安装 repo 全部 skill

npx skills add strangeadvancedmarketing/Adam --all -g -y

预览 repo 内 skill

npx skills add strangeadvancedmarketing/Adam --list

SKILL.md

Frontmatter
{
    "name": "adam-framework",
    "tags": [
        "memory",
        "persistence",
        "identity",
        "coherence",
        "vault",
        "neural-graph",
        "local-first"
    ],
    "description": "5-layer persistent memory and coherence architecture for OpenClaw agents. Solves AI amnesia and within-session drift. Built and validated over 353 sessions on a live business. No CS degree required."
}

Adam Framework

AI Amnesia — Solved. Within-Session Coherence Degradation — Solved.

The Adam Framework is a 5-layer persistent memory architecture for OpenClaw agents, developed over 8 months across 353 sessions on a live business by a non-coder running consumer hardware.

OpenClaw just got acquired by OpenAI. Your memory layer shouldn't be.

What It Solves

  • AI Amnesia — your agent wakes up blank every session, forcing you to re-explain context, projects, and goals that should already be known
  • Within-Session Drift — as a session accumulates context, the model's reasoning consistency quietly degrades before compaction triggers

The 5 Layers

Layer Component What It Does
1 Vault injection via SENTINEL Identity files loaded at every boot. Agent wakes up knowing who it is.
2 memory-core plugin Live memory search mid-session via memory_search / memory_get tools
3 Neural graph (nmem_context) Associative recall — 12,393 neurons, 40,532 synapses. Concepts link to concepts.
4 Nightly reconciliation Gemini merges daily logs into CORE_MEMORY.md while you sleep. Nothing lost.
5 Coherence monitor Scratchpad dropout detector — fires re-anchor before drift causes damage. 33 tests passing.

The Key Insight

The memory is in the files. The model is just the reader.

When the system was completely wiped and rebuilt from scratch, the agent came back online with full continuity — because the identity files survived. Swap the LLM, keep the Vault. Memory persists.

Setup

Two paths — pick one:

Path 1 — You do it yourself (30–60 min) Read SETUP_HUMAN.md. Plain English, no technical background assumed.

Path 2 — Let your agent handle it Paste SETUP_AI.md into your OpenClaw chat. It asks 8 questions and does the install itself.

Prerequisites

  • OpenClaw running with any model
  • Python 3.10+
  • npm install -g mcporter
  • NVIDIA Developer free tier API key (Kimi K2.5, 131K context, free)
  • Gemini API key (free) for nightly reconciliation

Links

Version History

  • 191f95a Current 2026-07-25 05:08

Metadata

Files
0
Version
191f95a
Hash
402aac04
Indexed
2026-07-25 05:08

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-24 15:07
浙ICP备14020137号-1 $Carte des visiteurs$