[Docs]: Recommend explicit memory-write workflow for important long-term facts in OpenClaw integrations
Problem Statement
When integrating OpenClaw with OpenViking, important short long-term facts may not become available in long-term memory in a timely and reliable way.
In the current design, long-term memory extraction runs after session commit. For ordinary chat turns, this means important facts can remain only in session until commit happens. In practice, users may explicitly say things like:
- "remember this long-term fact"
- "this is my long-term preference"
- "this is my main project"
but still find that the information is not available when they immediately ask for recall.
This creates a documentation and integration gap: integrators may assume explicit memory-worthy facts will reliably persist through normal chat flow, while in practice that depends on delayed commit/extraction behavior.
Related discussion:
- #1682
- #969
- #630
- #1410
Proposed Solution
Please add a best-practice section for OpenClaw + OpenViking integrations recommending an explicit memory-write workflow for important long-term facts.
Suggested guidance:
- auto-capture should be treated as best-effort and commit/extraction dependent
- important explicit long-term-memory intents may need an explicit write path
- this can be implemented via a dedicated memory skill, a dedicated tool, or another explicit integration-side persistence workflow
- explicit write should be documented as a complement to auto-capture, not necessarily a replacement
We implemented this as an integration-side explicit memory skill and found it much more reliable in practice for important long-term facts:
https://github.com/EasionF/openviking-agent-skills
Alternatives Considered
No response
Feature Area
Core (Client/Engine)
Use Case
In OpenClaw + OpenViking integrations, we want important long-term facts to be persisted reliably when the user explicitly expresses memory intent.
Typical examples:
- "remember this long-term fact"
- "this is my long-term preference"
- "this is my main project"
In practice, relying only on normal chat flow plus delayed commit/extraction can make these facts unavailable for immediate recall. A documented explicit memory-write workflow would let integrators handle these important cases in a more reliable way while still keeping auto-capture for general conversation.
We implemented this as an integration-side explicit memory skill and found it much more reliable for important long-term facts: https://github.com/EasionF/openviking-agent-skills
Example API (Optional)
Additional Context
No response
Contribution
- [ ] I am willing to contribute to implementing this feature
感谢反馈。这个方向是对的:重要的“请记住”类事实,不应该只依赖 session commit 后的自动提取。
不过这个 issue 更像 OpenClaw / integration 侧的工作流建议,不是 OpenViking core 里一个明确的 bug 或 API 缺口。需要强保证、立即持久化的集成,应该走显式写入路径,比如由集成层提供专门的 skill/tool 调 OpenViking memory API。
这里先关闭。后续如果要补 OpenClaw 集成文档,可以开一个更聚焦的 docs PR / issue。
这种快速写 memory 的方式可以集成 MCP。openclaw新版 plugin 接入了
已合入 #2323,收口方式如下:
- 在 OpenClaw 插件 README / README_CN 中明确说明:
afterTurn自动捕获只是把消息追加到 OpenViking session,长期记忆抽取仍依赖阈值 commit、/compact或显式写入。 - 在安装 skill 的成功提示和 reference 文档里同步更新用户可见说明,避免继续引导用户只靠
/compact理解记忆生效路径。 - 强化
memory_store工具描述:当用户明确说“记住 / 保存 / store”长期事实、偏好、项目或决定时,agent 应优先调用memory_store,它会写入 session 并commit(wait=true),让重要信息尽快进入长期记忆管线。 - 补了工具描述相关单测,防止后续提示语义退回模糊状态。
因此 #1683 这个“文档/集成指引层面推荐显式 memory-write workflow”的诉求已经完成。另:#1682 里提到的 auto-capture 默认阈值导致短记忆不自动 commit 的行为本身还没有改,只是通过本次文档和显式写入路径做了规避说明,建议作为单独问题继续评估。
补充更新:#2323 合入后,后续 #2654 对 OpenClaw 插件做了结构重构,部分 #2323 的用户/agent 指引被迁移或覆盖回旧表述。
已开 follow-up PR #2746 重新补齐这些入口:
- 恢复
memory_store工具描述:明确用户说“记住 / 保存 / store”长期事实、偏好、项目或决定时应优先调用该工具;auto-capture 仍是 threshold/commit dependent。 - 同步
README_CN.md的工作原理和工具说明。 - 同步安装 skill 的成功提示与 Reference,避免继续只引导用户通过
/compact验证记忆。 - 更新
openviking-context-databaseskill 的排障建议。 - 增加工具描述回归断言,防止提示语义再次退回。
说明:#2746 仍然是文档/集成指引修复,不改变 auto-capture 的默认 commit 策略;#1682 描述的短重要事实低于默认阈值时不自动 commit 的行为仍应单独评估。