BluePointDigital

Smart Memory

AI 智能体v3.1.0
作者:BluePointDigital更新于 2026-05-18共 5 个版本 · 最新版本发布于 2026-03-24smart-memory@clawhub_bluepointdigital/smart-memory
Agent 框架上下文管理记忆增强

据 AlphaMoat 统计,截至 2026-10,Smart Memory 累计下载 13,033 次、获 3 个星标,按累计下载量在本次参与排名的 10,914 个 AI 技能中排名第 2,128 位,在「AI 智能体」分类(1,632 个)中排名第 285 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
1.3万
星标
3
全站下载量排名
#2,128
全站前 20% · 「AI 智能体」前 18%
平台累计下载星标评论
ClawHub ↗8,3533-
SkillHub ↗1.3万3—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

技能以逐条转录为基础做记忆摄入与检索,支持偏好、身份与任务状态等类型的长期记忆,并用带证据的修订链管理记忆更替。它还能从转录历史确定性重建,并把提示词组装限制在 token 预算内、附带追溯元数据。 不得将凭证或密钥存入记忆;定期检视持久化内容并移除敏感或过期资料。

资料发布于 2026-10-29

可以用来做什么

  • 给 agent 加一层可追溯的本地记忆与检索
  • 按偏好与任务状态分类存放长期记忆并管理更替

什么时候用

  • 需要一个不依赖外部服务的长时记忆层时
  • 希望记忆内容能回溯到原始转录时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

帮我规划这套记忆的目录结构,说明转录、长期记忆与工作区各放什么
检索关于某项偏好的历史记忆时,怎样确认它确实来自原始转录

月度数据趋势

累计下载1.3万
5,2609,4351.4万2026-03 · 累计下载 5,8362026-05 · 累计下载 7,5272026-06 · 累计下载 7,8252026-07 · 累计下载 8,1662026-08 · 累计下载 8,3962026-09 · 累计下载 9,2462026-10 · 累计下载 1.3万26-0326-0926-10
星标3
2342026-03 · 星标 32026-05 · 星标 32026-06 · 星标 32026-07 · 星标 32026-08 · 星标 32026-09 · 星标 32026-10 · 星标 326-0326-0926-10

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。 该技能有同名的其他版本,调整前的数据归属当前下载量最大的这一个。

月份累计下载环比星标
2026-101.3万—3
2026-099,246—3
2026-088,396+2.8%3
2026-078,166+4.4%3
2026-067,825+4.0%3
2026-057,527—3
2026-035,836—3

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.1 KB · ClawHub v3.1.0
---
name: smart-memory
description: Persistent local transcript-first memory for OpenClaw via a Node adapter and FastAPI engine.
---

# 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:
展开全部(共 97 行)
- 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

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

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

「AI 智能体」分类下的热门技能

BluePointDigital 的其他技能

数据月份:2026-10 · 下载/星标数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。