← 返回
AI智能 中文

Smart Memory

Persistent local transcript-first memory for OpenClaw via a Node adapter and FastAPI engine.
为 OpenClaw 提供通过 Node 适配器和 FastAPI 引擎的持久本地转录优先内存
bluepointdigital
AI智能 clawhub v3.1.0 3 版本 98514.9 Key: 无需
★ 3
Stars
📥 7,635
下载
💾 1,610
安装
3
版本
#latest

概述

Smart Memory v3.1 Skill

Smart Memory v3.1 is a local transcript-first cognitive memory runtime with revision-aware derivation, pinned context lanes, entity-aware retrieval, and bounded prompt composition.

Core runtime:

  • Node adapter: smart-memory/index.js
  • Local API: server.py
  • System facade: cognitive_memory_system.py
  • Canonical store: storage/sqlite_memory_store.py plus transcripts/

Core Capabilities

  • transcript-first ingest and per-message transcript logging
  • typed long-term memory including preference, identity, and task_state
  • evidence-backed revision lifecycle decisions and supersession chains
  • explicit core and working memory lanes
  • entity-aware retrieval with lightweight relationship hints
  • deterministic rebuild from transcript history
  • hot-memory compatibility projection for working context
  • strict token-bounded prompt composition with trace metadata
  • inspection endpoints for transcripts, evidence, history, lanes, and eval runs

OpenClaw Integration

Use the native wrapper package in skills/smart-memory-openclaw/.

Primary exports:

  • createSmartMemorySkill(options)
  • createOpenClawHooks({ skill, agentIdentity, summarizeWithLLM })

The wrapper remains stable while the backend is now transcript-first under the hood.

Tool Interface

  1. memory_search
    • purpose: query relevant memory through /retrieve
    • supports query, type, limit, min_relevance, and optional conversation_history
    • health-checks the backend before execution
  1. memory_commit
    • purpose: persist important facts, decisions, beliefs, goals, or session summaries
    • health-checks the backend before execution
    • serializes commits to protect local embedding throughput
    • queues failed commits in .memory_retry_queue.json
  1. memory_insights
    • purpose: surface pending background insights
    • health-checks the backend before execution
    • calls /insights/pending

API Endpoints

Core endpoints:

  • GET /health
  • POST /ingest
  • POST /retrieve
  • POST /compose
  • POST /run_background
  • GET /memories
  • GET /memory/{memory_id}
  • GET /insights/pending

Transcript and inspection endpoints:

  • POST /transcripts/message
  • GET /transcripts/{session_id}
  • GET /transcript/message/{message_id}
  • GET /memory/{memory_id}/evidence
  • POST /revise
  • GET /memory/{memory_id}/history
  • GET /memory/{memory_id}/active
  • GET /memory/{memory_id}/chain
  • GET /lanes/{lane_name}
  • POST /lanes/{lane_name}/{memory_id}
  • DELETE /lanes/{lane_name}/{memory_id}
  • POST /rebuild
  • POST /rebuild/{session_id}
  • GET /eval/suite/{suite_name}
  • GET /eval/case/{case_id}

Operating guidance

  • query memory before speaking when continuity matters
  • do not claim prior context unless retrieval actually supports it
  • transcripts are canonical, memories are derived
  • treat SQLite as canonical runtime storage
  • treat JSON as offline export or backup only
  • keep CPU-only PyTorch policy intact

Deprecated

Legacy vector-memory CLI artifacts remain deprecated and should not be revived.

版本历史

共 3 个版本

  • v3.1.0 当前
    2026-04-30 06:21 安全 安全
  • v2.5.0
    2026-03-28 12:39 安全
  • v2.1.2
    2026-03-07 11:41

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,349 📥 317,697
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,055 📥 795,905
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 833 📥 212,776