Skill

Anima Aios

An AI Agent cognitive growth system built on the native OpenClaw architecture. It provides agents with persistent memory management, visual EXP progression,...

anima-aios
Install
openclaw skills install anima-aios
Latest Release
Version 6.0.0
Compatibility
{}
Capabilities
{}
Verification
{}
Tags
{
  "latest": "6.0.0"
}

name: anima-aios description: "An AI Agent cognitive growth system built on the native OpenClaw architecture. It provides agents with persistent memory management, visual EXP progression, a 5-dimensional cognitive profile, gamified daily quests, team leaderboards, and a 5-layer memory architecture with Knowledge Palace, Pyramid thinking, and Ebbinghaus decay function. 基于 OpenClaw 原生架构的 AI Agent 认知成长体系,为 Agent 提供五层记忆架构、知识宫殿、金字塔知识组织、记忆衰减函数、LLM 智能处理、永久化记忆管理、可视化经验值成长、五维认知画像、游戏化每日任务和团队排行榜。" use_when:

  • cognitive profile
  • EXP
  • level
  • daily quest
  • memory sync
  • team ranking
  • growth tracking
  • agent abilities
  • knowledge palace
  • memory palace
  • pyramid thinking
  • memory decay
  • health check
  • evolution
  • 认知画像
  • 经验值
  • 等级
  • 每日任务
  • 记忆同步
  • 团队排行
  • 知识宫殿
  • 记忆衰减
  • 健康检查
  • 进化

Anima-AIOS v6.0

让成长可见,让认知可量 | Making Growth Visible, Making Cognition Measurable

为你的 AI Agent 添加五层记忆架构、知识宫殿、认知成长和自动进化能力。


✨ v6.0 新增功能

🏗️ 五层记忆架构

  • L1 工作记忆:自动监听 OpenClaw memory/ 目录变化,零侵入同步
  • L2 情景记忆:事件归档,LLM 质量评估(S/A/B/C)
  • L3 语义记忆:LLM 驱动的知识提炼 + 语义去重
  • L4 知识宫殿:空间化知识组织 + 金字塔知识提炼(实例→规则→模式→本体)
  • L5 元认知层:记忆衰减函数 + 健康系统 + 五维画像

🔌 与 OpenClaw 原生打通

  • memory_watcher:基于 watchdog 库,自动识别 inotify/FSEvents/WinAPI
  • Agent 日常写 memory 自动触发 Anima 同步,完全无感知
  • 解决 FB-008:记忆同步断裂问题

🏛️ 知识宫殿(Knowledge Palace)

  • 宫殿 → 楼层 → 房间 → 位置 → 物品,五级空间结构
  • 默认 4 个知识房间 + _inbox 兜底
  • LLM 智能分类 + 延迟防抖调度器(等笔停了再整理)

🔺 金字塔知识组织

  • 实例 → 规则 → 模式 → 本体,四层自底向上提炼
  • 同一主题 ≥ 3 条实例时可触发自动提炼
  • 保守模式:默认 auto_distill=false,config 开关控制

📉 记忆衰减函数

  • 基于 Ebbinghaus 遗忘曲线 + AI 场景适配
  • 复习 = 访问:每次 memory_search 命中自动刷新
  • 复习推荐 + 即将遗忘提醒 + 可归档标记

🏥 健康系统(5 个模块)

  • manager:总调度,Doctor 命令入口
  • hygiene:数据完整性检查 + 去重 + 清理
  • correction:自动检测并修复常见数据问题
  • evolution:每日凌晨自动提炼(L2→L3 + 宫殿分类 + 金字塔提炼)
  • abstraction:跨房间知识关联发现

🤖 LLM 智能处理

  • 质量评估 / 去重分析 / 宫殿分类均支持 LLM
  • 多模型配置:默认用当前 Agent 模型(最准),可按任务���置不同模型
  • LLM 不可用时自动降级为规则模式

✨ 保留功能(v5)

🧠 增强记忆管理

  • 多层同步:OpenClaw Memory + Anima Facts + EXP History
  • EXP 奖励:写记忆自动获得经验值
  • 智能去重:自动避免重复记录

📊 五维认知画像

  • 内化力:知识吸收和理解能力
  • 应用力:知识迁移和实践能力
  • 创造力:知识整合和创新能力
  • 元认知:自我反思和监控能力
  • 协作力:团队合作和互助能力

🎮 游戏化成长

  • 等级系统:从 Lv.1 新手到 Lv.100 终身成就
  • 每日任务:每天 3 个挑战,完成获得额外 EXP
  • 进度追踪:可视化升级进度条

🏆 团队排行榜

  • EXP 排行:基于公平归一化算法排名
  • 实时竞争:追踪排名变化和差距

🛠️ 架构

Agent 日常工作(OpenClaw write/edit/memory_write)
       │
       ▼  watchdog 监听,零侵入
 L1 工作记忆 ── workspace/memory/*.md
       │ 沉淀
       ▼
 L2 情景记忆 ── facts/episodic/(LLM 质量评估)
       │ 提炼
       ▼
 L3 语义记忆 ── facts/semantic/(LLM 去重 + 关联)
       │ 结构化
       ▼
 L4 知识宫殿 ── palace/rooms/(LLM 分类 + 延迟防抖)
    金字塔   ── pyramid/(实例→规则→模式→本体)
       │ 反思
       ▼
 L5 元认知层 ── 五维画像 + EXP + 衰减 + 健康

📁 模块清单

core/(核心模块)

模块版本说明
memory_watcher.pyv6.0OpenClaw 记忆文件监听 + 自动同步
fact_store.pyv6.0L2/L3 统一事实存储层
distill_engine.pyv6.0L2→L3 LLM 驱动提炼引擎
palace_index.pyv6.0记忆宫殿空间索引
pyramid_engine.pyv6.0金字塔知识组织引擎
palace_classifier.pyv6.0宫殿分类调度器(延迟防抖)
decay_function.pyv6.0Ebbinghaus 记忆衰减计算
cognitive_profile.pyv5→v6五维认知画像生成器
exp_tracker.pyv5EXP 经验值追踪
level_system.pyv5等级系统
daily_quest.pyv5每日任务
memory_sync.pyv5→v6记忆同步(已修复路径硬编码)

health/(健康系统)

模块版本说明
managerv6.0总调度 + Doctor 入口
hygienev6.0数据卫生(完整性 + 去重 + 清理)
correctionv6.0自动纠错
evolutionv6.0每日进化(凌晨自动提炼)
abstractionv6.0知识抽象(跨房间关联)

⚙️ 配置

配置文件路径:~/.anima/config/anima_config.json

{
  "facts_base": "/home/画像",
  "agent_name": "auto",
  "llm": {
    "provider": "current_agent",
    "models": {
      "quality_assess": "current_agent",
      "dedup_analyze": "current_agent",
      "palace_classify": "current_agent"
    }
  },
  "palace": {
    "classify_mode": "deferred",
    "poll_interval_minutes": 30,
    "quiet_threshold_seconds": 60,
    "retry_delay_seconds": 60
  },
  "pyramid": {
    "auto_distill": false,
    "distill_threshold": 3
  }
}

🧪 测试

# 安装依赖(memory_watcher 需要)
pip install "watchdog>=3.0.0"

# 运行集成测试(37 项检查)
python3 tests/test_integration_v6.py

架构只能演进,不能退化。—— 立文铁律 先诚实,再迭代。代码要配得上宣传。—— 清禾