← 返回 Skills 市场
paudyyin

TDaí Memory Suite

作者 paudyyin · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
37
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install tdai-memory-suite
功能描述
Complete local memory system for OpenClaw: 4-layer memory pipeline (L0→L1→L2→L3) + local vector search (nomic-embed-text) + ontology knowledge graph + Nomic...
使用说明 (SKILL.md)

TDaí Memory Suite

A complete, fully-local memory system for OpenClaw agents. Four components work together to give your AI agent persistent memory, semantic search, structured knowledge, and visual introspection.

Components

1. TDaí Core — 4-Layer Memory Pipeline

Path: components/tdai-core/

The heart of the system. Automatically captures conversations and extracts structured memories through a 4-layer pipeline:

Layer Name Description
L0 Conversation Recording Raw message capture → SQLite + JSONL
L1 Memory Extraction LLM extracts structured memories (persona/episodic/instruction) with vector dedup
L2 Scene Induction LLM归纳场景块 (Scene Blocks) from conversation clusters
L3 User Persona LLM generates/updates user personality profile → persona.md

Key features:

  • Gateway-integrated LLM extraction (no separate API key needed)
  • Local SQLite + sqlite-vec storage backend
  • Optional Tencent Cloud Vector Database backend
  • Auto-recall: semantic search injects relevant memories into system context
  • BM25 + vector hybrid search

Memory types:

  • persona: Stable user attributes, preferences, skills, values
  • episodic: Actions, decisions, plans, outcomes that occurred
  • instruction: Long-term behavioral rules the user set for the AI

2. TDaí Vector — Local Vector Search

Configuration: memorySearch.provider: "local"

Uses nomic-embed-text-v1.5.Q4_K_M.gguf (quantized, ~270MB) for fully-local embeddings. No external embedding API needed.

Setup:

  1. Download the model to your OpenClaw models directory
  2. Set memorySearch.provider: "local" in openclaw.json
  3. The system automatically uses local embeddings for memory search

3. TDaí Ontology — Knowledge Graph

Path: components/tdai-ontology/

Typed knowledge graph for structured agent memory. Stores entities and relationships as JSONL with schema validation.

Supported entity types:

  • People: Person, Organization
  • Work: Project, Task, Goal
  • Time/Place: Event, Location
  • Information: Document, Note, Message
  • Meta: Technology, Skill, Action, Policy

Key features:

  • Entity CRUD with constraint validation
  • Relation creation with cardinality checks
  • Auto-sync from daily memory files
  • Backup memory fallback when primary search fails
  • CLI tools: ontology.py and ontology_sync.py

4. TDaí Atlas — Memory Visualization

Path: components/tdai-atlas/nomic_atlas_visualizer.py

Interactive HTML visualization of your agent's memory using sentence-transformers + UMAP dimensionality reduction.

Features:

  • 768-dimensional semantic embeddings via nomic-embed-text-v1.5
  • UMAP projection to 2D
  • Interactive HTML output (zoom, pan, hover for details)
  • Fully local — no data leaves your machine
  • TF-IDF fallback when model unavailable

Installation

Option A: Full Suite (Recommended)

clawhub install tdai-memory-suite

Option B: Individual Components

# Core memory pipeline (required)
clawhub install tdai-core

# Ontology knowledge graph (optional)
clawhub install tdai-ontology

# Atlas visualization (optional)
clawhub install tdai-atlas

Configuration

Minimal Setup (TDaí Core only)

Add to your openclaw.json:

{
  "plugins": {
    "allow": ["mx", "memory-tencentdb"],
    "load": {
      "paths": ["\x3Cpath-to-tdai-core>"]
    },
    "entries": {
      "memory-tencentdb": {
        "enabled": true,
        "config": {
          "pipeline": {
            "everyNConversations": 3,
            "enableWarmup": true,
            "l1IdleTimeoutSeconds": 10
          }
        }
      }
    }
  }
}

Full Setup (Core + Local Vector + Ontology)

{
  "plugins": {
    "allow": ["mx", "memory-tencentdb"],
    "load": {
      "paths": ["\x3Cpath-to-tdai-core>"]
    },
    "entries": {
      "memory-tencentdb": {
        "enabled": true,
        "config": {
          "pipeline": {
            "everyNConversations": 3,
            "enableWarmup": true,
            "l1IdleTimeoutSeconds": 10
          },
          "store": {
            "backend": "sqlite"
          }
        }
      }
    }
  },
  "memorySearch": {
    "provider": "local",
    "model": "nomic-embed-text-v1.5.Q4_K_M.gguf"
  }
}

Ontology Auto-Sync (Cron)

{
  "name": "Ontology Daily Sync",
  "schedule": { "kind": "cron", "expr": "0 22 * * *", "tz": "Asia/Shanghai" },
  "payload": {
    "kind": "agentTurn",
    "message": "Run ontology sync: python scripts/ontology_sync.py --days 7"
  },
  "sessionTarget": "isolated"
}

Usage Examples

Memory Search (automatic after installation)

Memories are automatically recalled and injected into context. You can also search manually:

"Search my memories for information about project X"
"What do you remember about my preferences?"

Ontology Operations

# Create an entity
python components/tdai-ontology/scripts/ontology.py create --type Project --props '{"name":"New Product","status":"active"}'

# Query entities
python components/tdai-ontology/scripts/ontology.py query --type Task --where '{"status":"open"}'

# Create relations
python components/tdai-ontology/scripts/ontology.py relate --from proj_001 --rel has_task --to task_001

# Auto-sync from memory files
python components/tdai-ontology/scripts/ontology_sync.py --days 7

Memory Visualization

# Generate interactive visualization
python components/tdai-atlas/nomic_atlas_visualizer.py

# Output: output/memory_visualization.html

Architecture

┌─────────────────────────────────────────────────────────────┐
│                    TDaí Memory Suite                         │
├─────────────┬──────────────┬──────────────┬────────────────┤
│  TDaí Core  │ TDaí Vector  │ TDaí Ontology│  TDaí Atlas    │
│  (L0→L3     │ (nomic-embed │ (Knowledge   │  (UMAP +       │
│  Pipeline)  │  -text local)│  Graph)      │   HTML viz)    │
├─────────────┼──────────────┼──────────────┼────────────────┤
│ SQLite+FTS  │ GGUF Model   │ JSONL+Schema │ sentence-      │
│ JSONL Store │ BM25+Vector  │ Entity/Rel   │ transformers   │
└─────────────┴──────────────┴──────────────┴────────────────┘
         │              │              │              │
         └──────────────┴──────┬───────┴──────────────┘
                               │
                    ┌──────────┴──────────┐
                    │  OpenClaw Gateway    │
                    │  (LLM Extraction)    │
                    └─────────────────────┘

Memory Fallback Hierarchy

When searching for memories, the system follows this priority:

  1. TDaí Core (tdai_memory_search) — primary structured memory
  2. TDaí Ontology (graph query) — structured entities and relations
  3. TDaí Atlas (visualization) — for browsing and exploration

Requirements

  • OpenClaw Gateway with model configured (for LLM extraction)
  • Node.js v18+ (for Core plugin)
  • Python 3.9+ (for Ontology and Atlas scripts)
  • ~300MB disk for nomic-embed-text model (optional, for local vector search)

Troubleshooting

L1 extraction returns empty

  1. Check plugins.allow includes "memory-tencentdb"
  2. Check plugins.load.paths points to the correct directory
  3. Verify Gateway model is configured (models.providers and agents.defaults.model)

Local vector search not working

  1. Ensure model file exists: nomic-embed-text-v1.5.Q4_K_M.gguf in models directory
  2. Check memorySearch.provider is set to "local"
  3. Restart Gateway after config changes

Ontology sync fails

  1. Ensure memory/ontology/ directory exists
  2. Check Python dependencies: pip install --user pyyaml
  3. Run with --dry-run to preview changes

License

MIT

Changelog

v1.0.0 (2026-06-09)

  • Initial release
  • TDaí Core v0.3.8: 4-layer pipeline with Gateway-integrated LLM extraction
  • TDaí Vector: local nomic-embed-text embeddings
  • TDaí Ontology: typed knowledge graph with 20+ entity types
  • TDaí Atlas: interactive memory visualization with UMAP
安全使用建议
Install only if you are comfortable with a memory plugin that records conversations persistently and may alter OpenClaw behavior. Use the default SQLite mode for local storage, avoid enabling Tencent Cloud, remote embedding, or offload unless you intentionally want memory data sent to those services, and review the postinstall patch script before allowing it to modify your OpenClaw installation.
能力标签
cryptorequires-sensitive-credentials
能力评估
Purpose & Capability
Persistent conversation memory, recall, SQLite storage, ontology, and visualization are purpose-aligned, but the suite is marketed as fully local while also including Tencent Cloud VectorDB, remote embedding, remote offload, and remote-code model loading paths.
Instruction Scope
The runtime scope includes automatic conversation capture, prompt/context injection, and host config patching; these are related to memory features but are high-impact and not consistently surfaced in the top-level skill instructions.
Install Mechanism
The tdai-core package defines a postinstall script that runs a patcher to discover and modify an installed OpenClaw dist directory, which is broader than normal skill installation behavior and lacks clear pre-install consent.
Credentials
The default SQLite memory path is proportionate for a memory tool, but optional remote storage/offload and embedding paths can transmit private conversation-derived data and credentials off-host despite local-first positioning.
Persistence & Privilege
The skill persists long-term memories, raw conversations, profiles, backups, config changes, and optional backend credentials; it also can alter OpenClaw hook policy and installed package files.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install tdai-memory-suite
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /tdai-memory-suite 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: complete local memory system with 4-layer pipeline (L0-L3), local vector search (nomic-embed-text), ontology knowledge graph, and Nomic Atlas visualization
元数据
Slug tdai-memory-suite
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

TDaí Memory Suite 是什么?

Complete local memory system for OpenClaw: 4-layer memory pipeline (L0→L1→L2→L3) + local vector search (nomic-embed-text) + ontology knowledge graph + Nomic... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 37 次。

如何安装 TDaí Memory Suite?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install tdai-memory-suite」即可一键安装,无需额外配置。

TDaí Memory Suite 是免费的吗?

是的,TDaí Memory Suite 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

TDaí Memory Suite 支持哪些平台?

TDaí Memory Suite 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 TDaí Memory Suite?

由 paudyyin(@paudyyin)开发并维护,当前版本 v1.0.0。

💬 留言讨论