智能体结构化记忆
对话式智能体记忆管理
Smart Memory 是面向 AI 代理的上下文感知记忆系统,采用 SQLite 单文件数据库,支持 FTS5 关键词搜索与语义向量搜索的混合检索,无需外部服务或 API 密钥。
安装指令:
npx clawhub install smart-memory
或通过 ClawHub 安装:https://clawhub.ai/BluePointDigital/smart-memory
基础使用:
node smart-memory/smart_memory.js --syncnode smart-memory/smart_memory.js --search "查询内容"node smart-memory/smart_memory.js --focus,然后执行搜索node smart-memory/smart_memory.js --unfocus工具调用:
memory_search({query, maxResults}) — 执行搜索memory_get({path, from, lines}) — 获取指定片段memory_mode('focus'|'fast') — 切换或查询模式见下方输入与输出表格。
| 项目 | 内容 |
|---|---|
| 输入 | 自然语言查询;可选参数 maxResults(默认5);模式切换指令 –focus/–fast/–unfocus |
| 输出 | Fast模式:片段数组(path/from/lines/score/snippet);Focus模式:结构化对象(confidence/sources/synthesis/facts) |
| 适用人群 | AI代理开发者、知识管理用户、本地优先隐私敏感场景 |
| 不包含 | 云端托管方案、多租户权限体系、自动归档清理机制 |
原始链接:https://github.com/openclaw/skills/tree/main/skills/bluepointdigital/smart-memory/SKILL.md
来源类型:GitHub 仓库