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 ↗83533-
SkillHub ↗1.3萬3—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

技能以逐條轉錄為基礎做記憶攝入與檢索,支援偏好、身份與任務狀態等型別的長期記憶,並用帶證據的修訂鏈管理記憶更替。它還能從轉錄歷史確定性重建,並把提示片語裝限制在 token 預算內、附帶追溯後設資料。 不得將憑證或金鑰存入記憶;定期檢視持久化內容並移除敏感或過期資料。

資料釋出於 2026-10-29

可以用來做什麼

  • 給 agent 加一層可追溯的本地記憶與檢索
  • 按偏好與任務狀態分類存放長期記憶並管理更替

什麼時候用

  • 需要一個不依賴外部服務的長時記憶層時
  • 希望記憶內容能回溯到原始轉錄時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

幫我規劃這套記憶的目錄結構,說明轉錄、長期記憶與工作區各放什麼
檢索關於某項偏好的歷史記憶時,怎樣確認它確實來自原始轉錄

月度資料趨勢

累計下載1.3萬
526094351.4萬2026-03 · 累計下載 58362026-05 · 累計下載 75272026-06 · 累計下載 78252026-07 · 累計下載 81662026-08 · 累計下載 83962026-09 · 累計下載 92462026-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-099246—3
2026-088396+2.8%3
2026-078166+4.4%3
2026-067825+4.0%3
2026-057527—3
2026-035836—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),按月更新。口徑說明見資料方法。