← 返回 Skills 市场
26
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install veritas-memory
功能描述
Veritas Memory v2 — log-as-truth agent memory. Conversation is ground truth, files are cache. Session auto-sync replaces manual WAL. Use when: agent forgets...
使用说明 (SKILL.md)
Veritas Memory v2 🧠
Conversation is ground truth. Files are cache.
v1 问题:STATE.md 被当作记忆本体,手动维护必然漏。v2 反转:对话即记忆,文件是自动同步的索引。
Architecture
PRIMARY: sessions_history (last 30 messages) ← Ground truth
INDEX: STATE.md (auto-synced) ← Hot cache, ≤2000 tokens
LONG-TERM: MEMORY.md ← Curated, ≤100 lines
RAW: memory/YYYY-MM-DD.md ← Manual notes on demand
Quick Start
1. AGENTS.md 启动协议 v3
新会话启动时:
1. sessions_history(your_last_session, limit=30) → 读对话原文
2. STATE.md 当前状态区 → 快速索引
3. MEMORY.md → 长期上下文
4. 冲突 → 对话为准,修正 STATE.md
2. 去掉手动 WAL,改为会话结束自动同步
对话中不打断写文件。会话结束时:
## Session End Auto-Sync
spawn sub-agent with:
task: "Read this conversation transcript. Extract key changes:
- Decisions made
- Company/project status changes
- System/infrastructure changes
- New todos or completed todos
Append to STATE.md event timeline. Update MEMORY.md if long-term facts changed."
3. Memory Tender(可选,每 2-3 天)
合并旧事件、清理过时记忆、交叉验证。
Core Files
| File | Purpose | Writer |
|---|---|---|
sessions_history |
Ground truth memory | System (auto) |
STATE.md |
Event timeline + current state | Auto-sync agent |
MEMORY.md |
Curated long-term memory | Auto-sync + Tender |
memory/YYYY-MM-DD.md |
Optional raw notes | Agent (on demand) |
Lessons from v1
- 对话是记忆本体。 新会话先读 sessions_history,不依赖二手笔记。
- 不打断写文件。 手工 WAL 必然漏。自动同步比勤奋可靠。
- 小文件大索引。 STATE.md 保持 ≤50 行、MEMORY.md ≤100 行。信息膨胀就删旧留新。
- 冲突时对话赢。 文件过期了就修文件,不要用过期信息反驳对话。
ClawHub Package
veritas-memory/
SKILL.md ← This file
templates/
STATE.md ← Template
MEMORY.md ← Template
AGENTS_startup.md ← Startup protocol snippet
scripts/
auto-sync.md ← Sub-agent prompt for session-end sync
memory-tender.md ← Periodic maintenance prompt
Bidirectional Verification
Logs are the referee between user and agent.
Agent says X, user says Y:
→ Check sessions_history
→ Agent wrong → "You're right. I misremembered." → Fix cache
→ User wrong → "According to our conversation on [date], we said X. Want to change?"
→ Both right, different times → Clarify timeline
Never say "You're wrong." Present facts neutrally.
安全使用建议
Install only if you want the agent to maintain durable local memory from conversations. Before relying on it, add or require a review step for proposed memory changes, exclude secrets and credentials, avoid storing sensitive account or trading details unless necessary, and keep backups or version control for STATE.md, MEMORY.md, and memory/.
能力评估
Purpose & Capability
The stated purpose and behavior align: it builds agent memory from session history into STATE.md, MEMORY.md, and memory notes. The capability is sensitive because it includes company/project status, accounts, infrastructure, todos, and trading positions.
Instruction Scope
The runtime prompts direct a sub-agent to read the parent transcript, update memory files, delete stale information, and return only a terse count rather than a visible diff or detailed summary.
Install Mechanism
The shell scripts create local memory directories and template files and provide a status check. No network calls, package installation, credential access, or external execution path was found.
Credentials
Reading session history and full parent transcripts is coherent for a memory skill, but the scope is broad and includes private operational and financial context without clear redaction or user approval boundaries.
Persistence & Privilege
The skill intentionally persists long-term memory and authorizes automated cleanup, stale-info deletion, and completed-todo deletion. That is purpose-aligned but under-controlled without backups, review, or explicit retention rules.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install veritas-memory - 安装完成后,直接呼叫该 Skill 的名称或使用
/veritas-memory触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: log-as-truth agent memory system
元数据
常见问题
Veritas Memory 是什么?
Veritas Memory v2 — log-as-truth agent memory. Conversation is ground truth, files are cache. Session auto-sync replaces manual WAL. Use when: agent forgets... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 26 次。
如何安装 Veritas Memory?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install veritas-memory」即可一键安装,无需额外配置。
Veritas Memory 是免费的吗?
是的,Veritas Memory 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Veritas Memory 支持哪些平台?
Veritas Memory 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Veritas Memory?
由 moozechen(@moozechen)开发并维护,当前版本 v1.0.0。
推荐 Skills