← Back to Skills Marketplace
moozechen

Veritas Memory

by moozechen · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
26
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install veritas-memory
Description
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...
README (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

  1. 对话是记忆本体。 新会话先读 sessions_history,不依赖二手笔记。
  2. 不打断写文件。 手工 WAL 必然漏。自动同步比勤奋可靠。
  3. 小文件大索引。 STATE.md 保持 ≤50 行、MEMORY.md ≤100 行。信息膨胀就删旧留新。
  4. 冲突时对话赢。 文件过期了就修文件,不要用过期信息反驳对话。

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.

Usage Guidance
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/.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install veritas-memory
  3. After installation, invoke the skill by name or use /veritas-memory
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: log-as-truth agent memory system
Metadata
Slug veritas-memory
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 26 downloads so far.

How do I install Veritas Memory?

Run "/install veritas-memory" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Veritas Memory free?

Yes, Veritas Memory is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Veritas Memory support?

Veritas Memory is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Veritas Memory?

It is built and maintained by moozechen (@moozechen); the current version is v1.0.0.

💬 Comments